CbmRoot
Loading...
Searching...
No Matches
CbmBmonDigi Class Reference

Data class for a signal in the t-zero detector. More...

#include <CbmBmonDigi.h>

Public Member Functions

 CbmBmonDigi ()=default
 Default Constructor.
 
 CbmBmonDigi (int32_t addr, double time, float charge)
 Constructor.
 
 CbmBmonDigi (const CbmTofDigi &digi)
 Constructor.
 
 CbmBmonDigi (const CbmTofDigi *digi)
 Constructor.
 
 ~CbmBmonDigi ()
 Destructor.
 
int32_t GetAddress () const
 Address.
 
double GetTime () const
 Time.
 
double GetCharge () const
 Charge.
 
void SetAddress (int32_t addr)
 Set the address.
 
void SetTime (double time)
 Set the measurement time.
 
void SetCharge (float charge)
 Set the measured charge.
 

Static Public Member Functions

static const char * GetBranchName ()
 Get the desired name of the branch for this objects in the cbm output tree (static)
 
static const char * GetClassName ()
 Class name (static)
 
static ECbmModuleId GetSystem ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 
 ClassDefNV (CbmBmonDigi, 1)
 

Private Attributes

int32_t fAddress = ToIntegralType<ECbmModuleId>(ECbmModuleId::kBmon)
 Unique CBM address.
 
double fTime = -1.
 Time of signal in BMON [ns].
 
float fCharge = -1.
 Charge.
 

Friends

class boost::serialization::access
 

Detailed Description

Data class for a signal in the t-zero detector.

The current implementation is a placeholder, storing just the event time. To be replaced with a real detector measurement model once available.

Definition at line 30 of file CbmBmonDigi.h.

Constructor & Destructor Documentation

◆ CbmBmonDigi() [1/4]

CbmBmonDigi::CbmBmonDigi ( )
default

Default Constructor.

◆ CbmBmonDigi() [2/4]

CbmBmonDigi::CbmBmonDigi ( int32_t addr,
double time,
float charge )
inline

Constructor.

Parameters
timeMeasurement time [ns]
chargeMeasured charge]
address[32b CbmAddress]

Definition at line 42 of file CbmBmonDigi.h.

◆ CbmBmonDigi() [3/4]

CbmBmonDigi::CbmBmonDigi ( const CbmTofDigi & digi)

Constructor.

Parameters
referenceto CbmTofDigi (equivalent content)

Definition at line 9 of file CbmBmonDigi.cxx.

◆ CbmBmonDigi() [4/4]

CbmBmonDigi::CbmBmonDigi ( const CbmTofDigi * digi)

Constructor.

Parameters
pointerto const CbmTofDigi object (equivalent content)

Definition at line 16 of file CbmBmonDigi.cxx.

◆ ~CbmBmonDigi()

CbmBmonDigi::~CbmBmonDigi ( )
inline

Destructor.

Definition at line 58 of file CbmBmonDigi.h.

Member Function Documentation

◆ ClassDefNV()

CbmBmonDigi::ClassDefNV ( CbmBmonDigi ,
1  )
private

◆ GetAddress()

int32_t CbmBmonDigi::GetAddress ( ) const
inline

◆ GetBranchName()

static const char * CbmBmonDigi::GetBranchName ( )
inlinestatic

Get the desired name of the branch for this objects in the cbm output tree (static)

Returns
"BmonDigi"

Definition at line 63 of file CbmBmonDigi.h.

Referenced by CbmRecoT0::Init(), and CbmDeviceDigiEventSink::InitTask().

◆ GetCharge()

double CbmBmonDigi::GetCharge ( ) const
inline

Charge.

Returns
Charge

Definition at line 92 of file CbmBmonDigi.h.

References fCharge.

Referenced by compareBmonDigiDataMembers().

◆ GetClassName()

static const char * CbmBmonDigi::GetClassName ( )
inlinestatic

Class name (static)

Returns
CbmBmonDigi

Definition at line 69 of file CbmBmonDigi.h.

Referenced by TEST().

◆ GetSystem()

static ECbmModuleId CbmBmonDigi::GetSystem ( )
inlinestatic

System ID (static)

Returns
System identifier (EcbmModuleId)

Definition at line 75 of file CbmBmonDigi.h.

References kBmon.

Referenced by compareBmonDigiDataMembers().

◆ GetTime()

double CbmBmonDigi::GetTime ( ) const
inline

Time.

Returns
Time of measurement [ns]

Definition at line 86 of file CbmBmonDigi.h.

References fTime.

Referenced by compareBmonDigiDataMembers(), and CbmAlgoBuildRawEvents::SetBmonEventTime().

◆ serialize()

template<class Archive >
void CbmBmonDigi::serialize ( Archive & ar,
const unsigned int  )
inlineprivate

Definition at line 121 of file CbmBmonDigi.h.

References fAddress, fCharge, and fTime.

◆ SetAddress()

void CbmBmonDigi::SetAddress ( int32_t addr)
inline

Set the address.

Parameters
address[32b CbmAddress]

Definition at line 98 of file CbmBmonDigi.h.

References fAddress.

Referenced by TEST().

◆ SetCharge()

void CbmBmonDigi::SetCharge ( float charge)
inline

Set the measured charge.

Parameters
chargeCharge

Definition at line 110 of file CbmBmonDigi.h.

References fCharge.

Referenced by TEST().

◆ SetTime()

void CbmBmonDigi::SetTime ( double time)
inline

Set the measurement time.

Parameters
timeMeasurement time [ns]

Definition at line 104 of file CbmBmonDigi.h.

References fTime.

Referenced by TEST().

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 118 of file CbmBmonDigi.h.

Member Data Documentation

◆ fAddress

int32_t CbmBmonDigi::fAddress = ToIntegralType<ECbmModuleId>(ECbmModuleId::kBmon)
private

Unique CBM address.

Definition at line 114 of file CbmBmonDigi.h.

Referenced by GetAddress(), serialize(), and SetAddress().

◆ fCharge

float CbmBmonDigi::fCharge = -1.
private

Charge.

Definition at line 116 of file CbmBmonDigi.h.

Referenced by GetCharge(), serialize(), and SetCharge().

◆ fTime

double CbmBmonDigi::fTime = -1.
private

Time of signal in BMON [ns].

Definition at line 115 of file CbmBmonDigi.h.

Referenced by GetTime(), serialize(), and SetTime().


The documentation for this class was generated from the following files: