CbmRoot
|
Allows to access an MC event in the source file. More...
#include <CbmMCEventInfo.h>
Public Member Functions | |
CbmMCEventInfo (Int_t fileId=-1, Int_t eventId=-1, Double_t time=0.) | |
Constructor. More... | |
virtual | ~CbmMCEventInfo () |
Destructor. More... | |
Int_t | GetFileId () const |
File index @value File index. More... | |
Int_t | GetEventId () const |
Event index @value Event index. More... | |
Double_t | GetTime () const |
Event time @value Event time [ns]. More... | |
std::string | ToString () const |
bool | operator< (const CbmMCEventInfo &other) const |
Comparison operator. More... | |
Private Member Functions | |
ClassDef (CbmMCEventInfo, 1) | |
Private Attributes | |
Int_t | fFileId |
Int_t | fEventId |
Double_t | 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 27 of file CbmMCEventInfo.h.
CbmMCEventInfo::CbmMCEventInfo | ( | Int_t | fileId = -1 , |
Int_t | eventId = -1 , |
||
Double_t | time = 0. |
||
) |
Constructor.
fileId | Input file index |
eventId | MC event index (entry in ROOT tree) |
time | Event start time [ns] |
Definition at line 14 of file CbmMCEventInfo.cxx.
|
virtual |
Destructor.
Definition at line 20 of file CbmMCEventInfo.cxx.
|
private |
|
inline |
Event index @value Event index.
Definition at line 51 of file CbmMCEventInfo.h.
References fEventId.
|
inline |
|
inline |
Event time @value Event time [ns].
Definition at line 57 of file CbmMCEventInfo.h.
References fTime.
|
inline |
Comparison operator.
Definition at line 65 of file CbmMCEventInfo.h.
string CbmMCEventInfo::ToString | ( | ) | const |
Status to string
Definition at line 25 of file CbmMCEventInfo.cxx.
|
private |
Definition at line 73 of file CbmMCEventInfo.h.
Referenced by GetEventId(), operator<(), and ToString().
|
private |
Definition at line 72 of file CbmMCEventInfo.h.
Referenced by GetFileId(), operator<(), and ToString().
|
private |
Definition at line 74 of file CbmMCEventInfo.h.
Referenced by GetTime(), and ToString().