11#ifndef CBMEVENTSTORE_H
12#define CBMEVENTSTORE_H 1
24#include <boost/any.hpp>
77 LOG(fatal) <<
"CbmEventStore: Trying to add digi without match!";
86 digis->AddDigi(digi,
nullptr);
103 LOG(fatal) <<
"CbmEventStore: Trying to add digi without match!";
113 digis->AddDigi(digi, match);
131 return boost::any_cast<const Digi*>(digis->GetDigi(index));
@ kNofSystems
For loops over active systems.
Abstract container for digis in CBM.
std::vector implementation of CbmDigiContainer
Storable event class for CBM.
uint32_t GetNofDigis(ECbmModuleId system) const
Number of digis for a given system.
const Digi * GetDigi(uint32_t index) const
Get a digi object.
CbmEventStore(CbmEventStore &&)=default
Move constructor.
bool HasMatches() const
Presence of match objects.
void AddDigi(const Digi *digi)
Add a digi object to the event.
void MatchToMC(CbmMatch &result) const
Match to MC event.
CbmEventStore(uint32_t eventId=0, bool hasMatches=false)
Default constructor.
std::map< ECbmModuleId, TObject * > fDigis
Map of CbmDigiVector.
CbmEventStore & operator=(const CbmEventStore &)=delete
Assignment operator.
ClassDef(CbmEventStore, 2)
uint32_t fEventId
Event identifier.
std::string ToString() const
bool IsEmpty() const
Indicate whether event contains no digis.
uint32_t GetEventId() const
Get event ID.
bool fHasMatches
Presence of matches to MC.
void AddDigi(const Digi *digi, const CbmMatch *match)
Add a digi and its match object to the event.
virtual ~CbmEventStore()
Destructor.