EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Base class for persistent representation of digital information. More...
#include <EicRoot/blob/master/cbmdata/CbmDigi.h>
Public Member Functions | |
CbmDigi () | |
virtual | ~CbmDigi () |
virtual Int_t | GetAddress () const =0 |
virtual Double_t | GetCharge () const |
FairMultiLinkedData * | GetLinks () const |
virtual Int_t | GetSystemId () const =0 |
virtual Double_t | GetTime () const =0 |
void | SetLinks (FairMultiLinkedData *links) |
Protected Member Functions | |
CbmDigi (const CbmDigi &) | |
CbmDigi & | operator= (const CbmDigi &) |
ClassDef (CbmDigi, 2) | |
Protected Attributes | |
FairMultiLinkedData * | fLinks |
Monte-Carlo link collection. | |
Base class for persistent representation of digital information.
CbmDigi is an abstract base class for the ROOT representation of the smallest information unit delivered by the detector front-ends. It is equivalent to the message of a single electronics channel. The information content is the channel address (unique identifier), the time stamp and (optionally) the charge (ADC).
Unlike the data class used to actually transport the information through the data acquisition ("message"), the digi contains context-free information, i.e. absolute time and unique address.
The class contains a pointer to an object of type FairMultiLinkedData, where the link information to MCPoints can be stored and retrieved. If there is no such information (as in case of real data), the pointer will be NULL.
Note that the Digi class is not responsible for the validity of the pointer. Copy constructor and assignment operator will perform a shallow copy only. It is the user's responsibility to ensure the validity of the pointer and to delete the FairMultiLinkedData wherever appropriate.
Definition at line 43 of file CbmDigi.h.
View newest version in sPHENIX GitHub at line 43 of file CbmDigi.h
CbmDigi::CbmDigi | ( | ) |
Default constructor
Definition at line 13 of file CbmDigi.cxx.
View newest version in sPHENIX GitHub at line 13 of file CbmDigi.cxx
|
inlinevirtual |
|
protected |
Definition at line 20 of file CbmDigi.cxx.
View newest version in sPHENIX GitHub at line 20 of file CbmDigi.cxx
References fLinks.
|
protected |
|
pure virtual |
Unique channel address
|
inlinevirtual |
|
inline |
|
pure virtual |
System (enum DetectorId)
Referenced by CbmDigiManager::Exec().
|
pure virtual |
Absolute time [ns]
Definition at line 29 of file CbmDigi.cxx.
View newest version in sPHENIX GitHub at line 29 of file CbmDigi.cxx
References fLinks.
|
inline |
|
protected |
Monte-Carlo link collection.
Definition at line 83 of file CbmDigi.h.
View newest version in sPHENIX GitHub at line 83 of file CbmDigi.h
Referenced by CbmDigi(), GetLinks(), operator=(), and SetLinks().