FairRoot
|
Singleton which reads in the event times stored in the event headers of each event in the Init() and provides this data. More...
#include <FairGetEventTime.h>
Public Member Functions | |
InitStatus | Init () |
std::pair< int, double > | GetEvent (double simTime) const |
std::vector< double > | GetTimes () const |
Static Public Member Functions | |
static FairGetEventTime & | Instance () |
Singleton which reads in the event times stored in the event headers of each event in the Init() and provides this data.
Definition at line 21 of file FairGetEventTime.h.
std::pair< int, double > FairGetEventTime::GetEvent | ( | double | simTime | ) | const |
Returns the index and the time of the event which has happened before the given simTim
simTime | time in ns for which the matching event is searched |
Definition at line 43 of file FairGetEventTime.cxx.
|
inline |
Definition at line 39 of file FairGetEventTime.h.
InitStatus FairGetEventTime::Init | ( | ) |
Has to be called in the Init() method of a task to fill the fEventTime array
Definition at line 24 of file FairGetEventTime.cxx.
|
inlinestatic |
Definition at line 24 of file FairGetEventTime.h.