CbmRoot
Loading...
Searching...
No Matches
CbmMCEventInfo Class Reference

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
 

Detailed Description

Allows to access an MC event in the source file.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
16.06.2018

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.

Constructor & Destructor Documentation

◆ CbmMCEventInfo()

CbmMCEventInfo::CbmMCEventInfo ( int32_t fileId = -1,
int32_t eventId = -1,
double time = 0. )

Constructor.

Parameters
fileIdInput file index
eventIdMC event index (entry in ROOT tree)
timeEvent start time [ns]

Definition at line 18 of file CbmMCEventInfo.cxx.

◆ ~CbmMCEventInfo()

CbmMCEventInfo::~CbmMCEventInfo ( )
virtual

Destructor.

Definition at line 28 of file CbmMCEventInfo.cxx.

Member Function Documentation

◆ ClassDef()

CbmMCEventInfo::ClassDef ( CbmMCEventInfo ,
1  )
private

◆ GetCbmLink()

CbmLink CbmMCEventInfo::GetCbmLink ( ) const
inline

Event file and event indices as CbmLink @value Event time [ns].

Definition at line 68 of file CbmMCEventInfo.h.

References fEventId, and fFileId.

◆ GetEventId()

int32_t CbmMCEventInfo::GetEventId ( ) const
inline

Event index @value Event index.

Definition at line 57 of file CbmMCEventInfo.h.

References fEventId.

◆ GetFileId()

int32_t CbmMCEventInfo::GetFileId ( ) const
inline

File index @value File index.

Definition at line 51 of file CbmMCEventInfo.h.

References fFileId.

◆ GetTime()

double CbmMCEventInfo::GetTime ( ) const
inline

Event time @value Event time [ns].

Definition at line 63 of file CbmMCEventInfo.h.

References fTime.

◆ operator<()

bool CbmMCEventInfo::operator< ( const CbmMCEventInfo & other) const
inline

Comparison operator.

Definition at line 75 of file CbmMCEventInfo.h.

References fEventId, and fFileId.

◆ ToString()

string CbmMCEventInfo::ToString ( ) const

Status to string

Definition at line 33 of file CbmMCEventInfo.cxx.

References fEventId, fFileId, and fTime.

Member Data Documentation

◆ fEventId

int32_t CbmMCEventInfo::fEventId
private

Definition at line 84 of file CbmMCEventInfo.h.

Referenced by GetCbmLink(), GetEventId(), operator<(), and ToString().

◆ fFileId

int32_t CbmMCEventInfo::fFileId
private

Definition at line 83 of file CbmMCEventInfo.h.

Referenced by GetCbmLink(), GetFileId(), operator<(), and ToString().

◆ fTime

double CbmMCEventInfo::fTime
private

Definition at line 85 of file CbmMCEventInfo.h.

Referenced by GetTime(), and ToString().


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