CbmRoot
|
Allows to access an MC event in the source file. More...
#include <CbmMCEventInfo.h>
Public Member Functions | |
CbmMCEventInfo (int32_t fileId=-1, int32_t eventId=-1, double time=0.) | |
Constructor. | |
virtual | ~CbmMCEventInfo () |
Destructor. | |
int32_t | GetFileId () const |
File index @value File index. | |
int32_t | GetEventId () const |
Event index @value Event index. | |
double | GetTime () const |
Event time @value Event time [ns]. | |
CbmLink | GetCbmLink () const |
Event file and event indices as CbmLink @value Event time [ns]. | |
std::string | ToString () const |
bool | operator< (const CbmMCEventInfo &other) const |
Comparison operator. | |
Private Member Functions | |
ClassDef (CbmMCEventInfo, 1) | |
Private Attributes | |
int32_t | fFileId |
int32_t | fEventId |
double | fTime |
Allows to access an MC event in the source file.
During digitization, an event time is generated for each input MC event obtained from transport simulations. This event time is stored in this class and saved to the output (raw) tree using the container CbmMCEventList. File number and event number allow to access the input MC event in its respective file, using CbmMCDataManager. The MC event time can be used for QA of reconstructed data, i.e., comparing the time of the reconstructed event with the MC truth time.
Definition at line 33 of file CbmMCEventInfo.h.
CbmMCEventInfo::CbmMCEventInfo | ( | int32_t | fileId = -1, |
int32_t | eventId = -1, | ||
double | time = 0. ) |
Constructor.
fileId | Input file index |
eventId | MC event index (entry in ROOT tree) |
time | Event start time [ns] |
Definition at line 18 of file CbmMCEventInfo.cxx.
|
virtual |
Destructor.
Definition at line 28 of file CbmMCEventInfo.cxx.
|
private |
|
inline |
Event file and event indices as CbmLink @value Event time [ns].
Definition at line 68 of file CbmMCEventInfo.h.
|
inline |
Event index @value Event index.
Definition at line 57 of file CbmMCEventInfo.h.
References fEventId.
|
inline |
|
inline |
Event time @value Event time [ns].
Definition at line 63 of file CbmMCEventInfo.h.
References fTime.
|
inline |
Comparison operator.
Definition at line 75 of file CbmMCEventInfo.h.
string CbmMCEventInfo::ToString | ( | ) | const |
Status to string
Definition at line 33 of file CbmMCEventInfo.cxx.
|
private |
Definition at line 84 of file CbmMCEventInfo.h.
Referenced by GetCbmLink(), GetEventId(), operator<(), and ToString().
|
private |
Definition at line 83 of file CbmMCEventInfo.h.
Referenced by GetCbmLink(), GetFileId(), operator<(), and ToString().
|
private |
Definition at line 85 of file CbmMCEventInfo.h.
Referenced by GetTime(), and ToString().