FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGetEventTime Class Reference

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>

Inheritance diagram for FairGetEventTime:

Public Member Functions

InitStatus Init ()
 
std::pair< int, double > GetEvent (double simTime) const
 
std::vector< double > GetTimes () const
 

Static Public Member Functions

static FairGetEventTimeInstance ()
 

Detailed Description

Singleton which reads in the event times stored in the event headers of each event in the Init() and provides this data.

FairGetEventTime.h

Date
07.12.2020
Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

Definition at line 21 of file FairGetEventTime.h.

Member Function Documentation

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

Parameters
simTimetime in ns for which the matching event is searched

Definition at line 43 of file FairGetEventTime.cxx.

std::vector<double> FairGetEventTime::GetTimes ( ) const
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.

static FairGetEventTime& FairGetEventTime::Instance ( )
inlinestatic

Definition at line 24 of file FairGetEventTime.h.


The documentation for this class was generated from the following files: