|
BmnRoot
|
Base class for persistent representation of digital information. More...
#include <BmnDigi.h>
Public Member Functions | |
| BmnDigi () | |
| BmnDigi (const BmnDigi &) | |
| BmnDigi (BmnDigi &&) | |
| virtual | ~BmnDigi () |
| BmnDigi & | operator= (const BmnDigi &) |
| BmnDigi & | operator= (BmnDigi &&) |
| virtual Int_t | GetAddress () const =0 |
| virtual Double_t | GetCharge () const |
| BmnMatch * | GetMatch () const |
| virtual Int_t | GetSystemId () const =0 |
| virtual Double_t | GetTime () const =0 |
| void | SetMatch (BmnMatch *match) |
| virtual std::string | ToString () const |
Protected Member Functions | |
| ClassDef (BmnDigi, 2) | |
Protected Attributes | |
| BmnMatch * | fMatch |
| Monte-Carlo match information. | |
Base class for persistent representation of digital information.
BmnDigi 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.
| BmnDigi::BmnDigi | ( | ) |
Default constructor
Definition at line 24 of file BmnDigi.cxx.
| BmnDigi::BmnDigi | ( | const BmnDigi & | rhs | ) |
Copy constructor
Definition at line 34 of file BmnDigi.cxx.
References BmnMatch::AddLinks(), and fMatch.
| BmnDigi::BmnDigi | ( | BmnDigi && | other | ) |
|
virtual |
|
protected |
|
pure virtual |
Unique channel address
Implemented in BmnSsdDigi.
Definition at line 111 of file BmnDigi.cxx.
Referenced by BmnDaqBuffer::InsertData(), and ToString().
|
inlinevirtual |
|
inline |
Get pointer to MC match
Definition at line 76 of file BmnDigi.h.
References fMatch.
Referenced by BmnSsdDigitize::WriteDigi().
|
pure virtual |
System (enum DetectorId)
Implemented in BmnSsdDigi.
Definition at line 116 of file BmnDigi.cxx.
Referenced by BmnDaqBuffer::InsertData().
|
pure virtual |
Absolute time [ns]
Implemented in BmnSsdDigi.
Definition at line 121 of file BmnDigi.cxx.
Referenced by BmnDaqBuffer::GetNextData(), BmnDaqBuffer::InsertData(), and ToString().
Assignment operator
Definition at line 60 of file BmnDigi.cxx.
References BmnMatch::AddLinks(), and fMatch.
|
inline |
Set pointer to link collection
Definition at line 88 of file BmnDigi.h.
References fMatch.
Referenced by BmnSsdDigitize::CreateDigi().
|
virtual |
Output information
Reimplemented in BmnSsdDigi.
Definition at line 101 of file BmnDigi.cxx.
References GetAddress(), and GetTime().
|
protected |
Monte-Carlo match information.
Definition at line 97 of file BmnDigi.h.
Referenced by BmnDigi(), BmnDigi(), GetMatch(), operator=(), operator=(), SetMatch(), and ~BmnDigi().