CbmRoot
|
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 |
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.
|
default |
Default Constructor.
|
inline |
Constructor.
time | Measurement time [ns] |
charge | Measured charge] |
address | [32b CbmAddress] |
Definition at line 42 of file CbmBmonDigi.h.
CbmBmonDigi::CbmBmonDigi | ( | const CbmTofDigi & | digi | ) |
Constructor.
reference | to CbmTofDigi (equivalent content) |
Definition at line 9 of file CbmBmonDigi.cxx.
CbmBmonDigi::CbmBmonDigi | ( | const CbmTofDigi * | digi | ) |
Constructor.
pointer | to const CbmTofDigi object (equivalent content) |
Definition at line 16 of file CbmBmonDigi.cxx.
|
inline |
Destructor.
Definition at line 58 of file CbmBmonDigi.h.
|
private |
|
inline |
Address.
Definition at line 80 of file CbmBmonDigi.h.
References fAddress.
Referenced by compareBmonDigiDataMembers(), CbmAlgoBuildRawEvents::getNofFilteredBmonDigis(), and CbmAlgoBuildRawEvents::SetBmonEventTime().
|
inlinestatic |
Get the desired name of the branch for this objects in the cbm output tree (static)
Definition at line 63 of file CbmBmonDigi.h.
Referenced by CbmRecoT0::Init(), and CbmDeviceDigiEventSink::InitTask().
|
inline |
Charge.
Definition at line 92 of file CbmBmonDigi.h.
References fCharge.
Referenced by compareBmonDigiDataMembers().
|
inlinestatic |
Class name (static)
Definition at line 69 of file CbmBmonDigi.h.
Referenced by TEST().
|
inlinestatic |
System ID (static)
Definition at line 75 of file CbmBmonDigi.h.
References kBmon.
Referenced by compareBmonDigiDataMembers().
|
inline |
Time.
Definition at line 86 of file CbmBmonDigi.h.
References fTime.
Referenced by compareBmonDigiDataMembers(), and CbmAlgoBuildRawEvents::SetBmonEventTime().
|
inlineprivate |
Definition at line 121 of file CbmBmonDigi.h.
|
inline |
Set the address.
address | [32b CbmAddress] |
Definition at line 98 of file CbmBmonDigi.h.
References fAddress.
Referenced by TEST().
|
inline |
Set the measured charge.
charge | Charge |
Definition at line 110 of file CbmBmonDigi.h.
References fCharge.
Referenced by TEST().
|
inline |
Set the measurement time.
time | Measurement time [ns] |
Definition at line 104 of file CbmBmonDigi.h.
References fTime.
Referenced by TEST().
|
friend |
Definition at line 118 of file CbmBmonDigi.h.
|
private |
Unique CBM address.
Definition at line 114 of file CbmBmonDigi.h.
Referenced by GetAddress(), serialize(), and SetAddress().
|
private |
Charge.
Definition at line 116 of file CbmBmonDigi.h.
Referenced by GetCharge(), serialize(), and SetCharge().
|
private |
Time of signal in BMON [ns].
Definition at line 115 of file CbmBmonDigi.h.
Referenced by GetTime(), serialize(), and SetTime().