25 GO4TRACE((12,
"TGo4SimpleEvent::TGo4SimpleEvent()",__LINE__, __FILE__));
36 GO4TRACE((12,
"TGo4SimpleEvent::TGo4SimpleEvent(Int_t)",__LINE__, __FILE__));
43 for (Int_t z = 0; z < 10; ++z) {
48 for (Int_t t = 0; t < subevtnum; ++t) {
55 GO4TRACE((12,
"TGo4SimpleEvent::~TGo4SimpleEvent()",__LINE__, __FILE__));
64 GO4TRACE((11,
"TGo4SimpleEvent::PrintEvent()",__LINE__, __FILE__));
77 GO4TRACE((11,
"TGo4SimpleEvent::Clear()",__LINE__, __FILE__));
95 GO4TRACE((11,
"TGo4SimpleEvent::Fill()",__LINE__, __FILE__));
102 if (proc->BuildSimpleEvent(
this))
111 if(source->BuildEvent(
this))
120 if(source->BuildEvent(
this))
133 GO4TRACE((11,
"TGo4SimpleEvent::GetSubEvent(Short_t)",__LINE__, __FILE__));
145 if (sub->fsProcid == procid)
159 GO4TRACE((11,
"TGo4SimpleEvent::AddSubEvent(Short_t)",__LINE__, __FILE__));
169 TGo4Log::Debug(
" SimpleEvent: Added subevent with procid %d: ", procid);
173 TGo4Log::Error(
"simple event: clonesarray is full, cannot add another subevent");
183 GO4TRACE((11,
"TGo4SimpleEvent::ResetIterator()",__LINE__, __FILE__));
192 GO4TRACE((11,
"TGo4SimpleEvent::NextSubEvent()",__LINE__, __FILE__));
TGo4EventSource * GetEventSource() const
virtual void PrintEvent()
Method prints content of the event.
Bool_t CheckEventSource(const char *classname)
Check if event source is valid.
Raw event source which reads entries from a root TTree in a TFile.
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
static void Error(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 3.
TClonesArray * fxSubEventArray
aggregation 1 1..* TClonesArray
Int_t Fill() override
Method called by the event owner (analysis step) to fill the event element from the set event source.
void PrintEvent() override
Method prints content of the event.
virtual ~TGo4SimpleEvent()
void ResetIterator()
Set the internal iterator of the subevent array to the beginning of the array.
TGo4SimpleSubEvent * NextSubEvent()
Iterator for subevent array.
Int_t fiMaxSlot
Index of last existing slot in the clonesarray.
friend class TGo4SimpleEventProcessor
TGo4SimpleSubEvent * GetSubEvent(Short_t procid)
Access to subevent in list by procid.
TIterator * fxIterator
Iterator for array.
TGo4SimpleSubEvent * AddSubEvent(Short_t procid)
Add subevent ito clonesarray with new procid.
void Clear(Option_t *opt="") override
Method called by the event owner (analysis step) to clear the event element.
Int_t fiLastSlot
Index of last used slot in the clonesarray.
void Clear(Option_t *opt="") override
Method called by the event owner (analysis step) to clear the event element.
Short_t fsProcid
Processor ID [from setup].
Raw event source which reads entries from a root TTree.