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. | |
int32_t | GetChannel () const |
Gets channel ID. | |
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 31 of file CbmBmonDigi.h.
|
default |
Default Constructor.
|
inline |
Constructor.
time | Measurement time [ns] |
charge | Measured charge] |
address | [32b CbmAddress] |
Definition at line 43 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 59 of file CbmBmonDigi.h.
|
private |
|
inline |
Address.
Definition at line 81 of file CbmBmonDigi.h.
References fAddress.
Referenced by compareBmonDigiDataMembers(), CbmAlgoBuildRawEvents::getNofFilteredBmonDigis(), cbm::algo::bmon::Clusterizer::SelectDigi(), and CbmAlgoBuildRawEvents::SetBmonEventTime().
|
inlinestatic |
Get the desired name of the branch for this objects in the cbm output tree (static)
Definition at line 64 of file CbmBmonDigi.h.
Referenced by CbmRecoT0::Init(), and CbmDeviceDigiEventSink::InitTask().
|
inline |
Gets channel ID.
Definition at line 93 of file CbmBmonDigi.h.
References fAddress, and CbmTofAddress::GetChannelId().
|
inline |
Charge.
Definition at line 98 of file CbmBmonDigi.h.
References fCharge.
Referenced by compareBmonDigiDataMembers(), cbm::algo::bmon::Hit::Hit(), and cbm::algo::bmon::Calibrate::operator()().
|
inlinestatic |
Class name (static)
Definition at line 70 of file CbmBmonDigi.h.
Referenced by TEST().
|
inlinestatic |
System ID (static)
Definition at line 76 of file CbmBmonDigi.h.
References kBmon.
Referenced by compareBmonDigiDataMembers().
|
inline |
Time.
Definition at line 87 of file CbmBmonDigi.h.
References fTime.
Referenced by compareBmonDigiDataMembers(), cbm::algo::bmon::Hit::Hit(), cbm::algo::bmon::Hit::Hit(), cbm::algo::bmon::Calibrate::operator()(), and CbmAlgoBuildRawEvents::SetBmonEventTime().
|
inlineprivate |
Definition at line 128 of file CbmBmonDigi.h.
|
inline |
Set the address.
address | [32b CbmAddress] |
Definition at line 104 of file CbmBmonDigi.h.
References fAddress.
Referenced by cbm::algo::bmon::Calibrate::operator()(), and TEST().
|
inline |
Set the measured charge.
charge | Charge |
Definition at line 116 of file CbmBmonDigi.h.
References fCharge.
Referenced by cbm::algo::bmon::Calibrate::operator()(), and TEST().
|
inline |
Set the measurement time.
time | Measurement time [ns] |
Definition at line 110 of file CbmBmonDigi.h.
References fTime.
Referenced by cbm::algo::bmon::Calibrate::operator()(), and TEST().
|
friend |
Definition at line 125 of file CbmBmonDigi.h.
|
private |
Unique CBM address.
Definition at line 121 of file CbmBmonDigi.h.
Referenced by GetAddress(), GetChannel(), serialize(), and SetAddress().
|
private |
Charge.
Definition at line 123 of file CbmBmonDigi.h.
Referenced by GetCharge(), serialize(), and SetCharge().
|
private |
Time of signal in BMON [ns].
Definition at line 122 of file CbmBmonDigi.h.
Referenced by GetTime(), serialize(), and SetTime().