10#ifndef CBMMCEVENTLIST_H
11#define CBMMCEVENTLIST_H 1
131 bool Insert(uint32_t event, uint32_t file,
double time);
135 virtual void Print(Option_t* opt =
"")
const;
149 std::string
ToString(
const char* option =
"")
const;
170 std::vector<CbmMCEventInfo>::iterator
Find(uint32_t file, uint32_t event);
Container class for MC events with number, file and start time.
std::vector< CbmMCEventInfo > fEvents
CbmLink GetEventLinkByIndex(uint32_t index)
Event file and event indices as CbmLink.
Int_t GetEventIndex(const CbmLink &link)
Event index.
int32_t GetFileIdByIndex(uint32_t index)
File number by index @value File number for event at given index in list.
std::string ToString(const char *option="") const
bool Check()
Check for double occurrences of events in list @value true is no double occurrences,...
virtual ~CbmMCEventList()
Destructor.
virtual void Print(Option_t *opt="") const
double GetEventTimeByIndex(uint32_t index)
Event time by index @value Event time for event at given index in list.
void Sort()
Sort the list.
int32_t GetEventIdByIndex(uint32_t index)
Event number by index @value Event number for event at given index in list.
Int_t GetEventIndex(UInt_t event, UInt_t file)
Event index.
ClassDef(CbmMCEventList, 3)
virtual void Clear(Option_t *)
Delete all event entries.
std::size_t GetNofEvents() const
Number of events in the list @value Number of events.
double GetEventTime(uint32_t event, uint32_t file)
Event start time.
CbmMCEventList()
Standard constructor.
Double_t GetEventTime(const CbmLink &link)
Event start time.
std::vector< CbmMCEventInfo >::iterator Find(uint32_t file, uint32_t event)
Find an element in the list.
bool Insert(uint32_t event, uint32_t file, double time)