Go to the documentation of this file.
6 #ifndef CBMMCEVENTLIST_H
7 #define CBMMCEVENTLIST_H 1
10 #include <RtypesCore.h>
105 Bool_t
Insert(UInt_t event, UInt_t file, Double_t time);
109 virtual void Print(Option_t* opt =
"")
const;
123 std::string
ToString(
const char* option =
"")
const;
144 std::vector<CbmMCEventInfo>::iterator
Find(UInt_t file, UInt_t event);
Int_t GetFileIdByIndex(UInt_t index)
File number by index @value File number for event at given index in list.
void Sort()
Sort the list.
Bool_t Insert(UInt_t event, UInt_t file, Double_t time)
Double_t GetEventTimeByIndex(UInt_t index)
Event time by index @value Event time for event at given index in list.
std::vector< CbmMCEventInfo > fEvents
std::size_t GetNofEvents() const
Number of events in the list @value Number of events.
Double_t GetEventTime(UInt_t event, UInt_t file)
Event start time.
std::string ToString(const char *option="") const
Container class for MC events with number, file and start time.
CbmMCEventList()
Standard constructor.
ClassDef(CbmMCEventList, 3)
std::vector< CbmMCEventInfo >::iterator Find(UInt_t file, UInt_t event)
Find an element in the list.
Int_t GetEventIdByIndex(UInt_t index)
Event number by index @value Event number for event at given index in list.
virtual void Clear(Option_t *)
Delete all event entries.
virtual ~CbmMCEventList()
Destructor.
virtual void Print(Option_t *opt="") const
Bool_t Check()
Check for double occurrences of events in list @value kTRUE is no double occurrences,...