CbmRoot
CbmMCEventInfo Class Reference

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
 

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 27 of file CbmMCEventInfo.h.

Constructor & Destructor Documentation

◆ CbmMCEventInfo()

CbmMCEventInfo::CbmMCEventInfo ( Int_t  fileId = -1,
Int_t  eventId = -1,
Double_t  time = 0. 
)

Constructor.

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

Definition at line 14 of file CbmMCEventInfo.cxx.

◆ ~CbmMCEventInfo()

CbmMCEventInfo::~CbmMCEventInfo ( )
virtual

Destructor.

Definition at line 20 of file CbmMCEventInfo.cxx.

Member Function Documentation

◆ ClassDef()

CbmMCEventInfo::ClassDef ( CbmMCEventInfo  ,
 
)
private

◆ GetEventId()

Int_t CbmMCEventInfo::GetEventId ( ) const
inline

Event index @value Event index.

Definition at line 51 of file CbmMCEventInfo.h.

References fEventId.

◆ GetFileId()

Int_t CbmMCEventInfo::GetFileId ( ) const
inline

File index @value File index.

Definition at line 45 of file CbmMCEventInfo.h.

References fFileId.

◆ GetTime()

Double_t CbmMCEventInfo::GetTime ( ) const
inline

Event time @value Event time [ns].

Definition at line 57 of file CbmMCEventInfo.h.

References fTime.

◆ operator<()

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

Comparison operator.

Definition at line 65 of file CbmMCEventInfo.h.

References fEventId, and fFileId.

◆ ToString()

string CbmMCEventInfo::ToString ( ) const

Status to string

Definition at line 25 of file CbmMCEventInfo.cxx.

References fEventId, fFileId, and fTime.

Member Data Documentation

◆ fEventId

Int_t CbmMCEventInfo::fEventId
private

Definition at line 73 of file CbmMCEventInfo.h.

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

◆ fFileId

Int_t CbmMCEventInfo::fFileId
private

Definition at line 72 of file CbmMCEventInfo.h.

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

◆ fTime

Double_t CbmMCEventInfo::fTime
private

Definition at line 74 of file CbmMCEventInfo.h.

Referenced by GetTime(), and ToString().


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