Go to the documentation of this file.
7 #ifndef CBMEVENTSTORE_H
8 #define CBMEVENTSTORE_H 1
11 #include <RtypesCore.h>
12 #include <TObjArray.h>
15 #include <FairLogger.h>
17 #include <boost/any.hpp>
46 CbmEventStore(UInt_t eventId = 0, Bool_t hasMatches = kFALSE);
72 LOG(fatal) <<
"CbmEventStore: Trying to add digi without match!";
81 digis->AddDigi(digi,
nullptr);
97 LOG(fatal) <<
"CbmEventStore: Trying to add digi without match!";
107 digis->AddDigi(digi, match);
124 return boost::any_cast<const Digi*>(digis->GetDigi(index));
UInt_t fEventId
Event identifier.
Storable event class for CBM.
Abstract container for digis in CBM.
Bool_t IsEmpty() const
Indicate whether event contains no digis.
std::vector implementation of CbmDigiContainer
void MatchToMC(CbmMatch &result) const
Match to MC event.
CbmEventStore(CbmEventStore &&)=default
Move constructor.
CbmEventStore(UInt_t eventId=0, Bool_t hasMatches=kFALSE)
Default constructor.
std::map< ECbmModuleId, TObject * > fDigis
Map of CbmDigiVector.
void AddDigi(const Digi *digi)
Add a digi object to the event.
UInt_t GetNofDigis(ECbmModuleId system) const
Number of digis for a given system.
@ kNofSystems
For loops over active systems.
Bool_t HasMatches() const
Presence of match objects.
Bool_t fHasMatches
Presence of matches to MC.
UInt_t GetEventId() const
Get event ID.
CbmEventStore & operator=(const CbmEventStore &)=delete
Assignment operator.
ClassDef(CbmEventStore, 2)
void AddDigi(const Digi *digi, const CbmMatch *match)
Add a digi and its match object to the event.
std::string ToString() const
virtual ~CbmEventStore()
Destructor.
const Digi * GetDigi(UInt_t index) const
Get a digi object.