GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4SimpleEvent.h>
Public Member Functions | |
TGo4SimpleEvent () | |
TGo4SimpleEvent (Int_t subevtnum) | |
virtual | ~TGo4SimpleEvent () |
virtual Int_t | Fill () |
virtual void | Clear (Option_t *t="") |
void | ResetIterator () |
TGo4SimpleSubEvent * | NextSubEvent () |
void | PrintEvent () |
TGo4SimpleSubEvent * | GetSubEvent (Short_t procid) |
TGo4SimpleSubEvent * | AddSubEvent (Short_t procid) |
Int_t | GetCount () const |
Public Member Functions inherited from TGo4EventElement | |
TGo4EventElement () | |
TGo4EventElement (const char *name) | |
TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0) | |
virtual | ~TGo4EventElement (void) |
void | SetValid (Bool_t on) |
Bool_t | IsValid () const |
void | SetEventSource (TGo4EventSource *src) |
void | SetParent (TGo4EventElement *par) |
void | SetKeepContents (Bool_t on=kTRUE) |
TGo4EventElement * | GetParent () const |
virtual TGo4EventElement * | GetChild (const char *name) |
TGo4EventSource * | GetEventSource () const |
Bool_t | CheckEventSource (const char *classname) |
virtual Int_t | Init () |
virtual void | makeBranch (TBranch *parent) |
virtual void | deactivate () |
virtual void | activate () |
virtual void | clearAll (Int_t) |
virtual Bool_t | isComposed () |
virtual Short_t | getId () |
virtual void | setDebug (Bool_t debug) |
virtual TGo4EventElement & | operator[] (Int_t) |
virtual void | Print (Option_t *option="") const |
virtual void | synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=0) |
virtual Int_t | activateBranch (TBranch *branch, Int_t index=0, TGo4EventElement **var_ptr=0) |
virtual TTree * | CreateSampleTree (TGo4EventElement **sample=0) |
void | ShowSampleTree () |
Private Attributes | |
Int_t | fiCount |
Int_t | fiLastSlot |
Int_t | fiMaxSlot |
TClonesArray * | fxSubEventArray |
Int_t | fiArrLen |
Int_t | fiTestArray [10] |
char | fcTestCharArr [10] |
TIterator * | fxIterator |
Friends | |
class | TGo4SimpleEventProcessor |
Additional Inherited Members | |
Protected Attributes inherited from TGo4EventElement | |
Short_t | fIdentifier |
Bool_t | fDebug |
Bool_t | fbKeepContents |
Debug level. More... | |
Simple Event structure containing a fixed size TClonesArray of subevents. Each subevent has integer data members corresponding to the first n longwords of the TMbsSubEvent dynamic data field. May be used to work with quasi raw event data within the root TTreeViewer.
Definition at line 33 of file TGo4SimpleEvent.h.
TGo4SimpleEvent::TGo4SimpleEvent | ( | ) |
Definition at line 22 of file TGo4SimpleEvent.cxx.
References fiMaxSlot, fxIterator, fxSubEventArray, and GO4TRACE.
TGo4SimpleEvent::TGo4SimpleEvent | ( | Int_t | subevtnum | ) |
Definition at line 36 of file TGo4SimpleEvent.cxx.
References fiArrLen, fiTestArray, fxIterator, fxSubEventArray, and GO4TRACE.
|
virtual |
Definition at line 61 of file TGo4SimpleEvent.cxx.
References fxIterator, fxSubEventArray, and GO4TRACE.
TGo4SimpleSubEvent * TGo4SimpleEvent::AddSubEvent | ( | Short_t | procid | ) |
Add subevent ito clonesarray with new procid. The pointer to the new subevent is returned. If entry for procid already existed, this entry is returned and the clonesarray is left as is.
Definition at line 202 of file TGo4SimpleEvent.cxx.
References TGo4Log::Debug(), TGo4Log::Error(), fiLastSlot, fiMaxSlot, TGo4SimpleSubEvent::fsProcid, GetSubEvent(), and GO4TRACE.
Referenced by TGo4SimpleEventProcessor::BuildSimpleEvent().
|
virtual |
Method called by the event owner (analysis step) to clear the event element.
Reimplemented from TGo4EventElement.
Definition at line 86 of file TGo4SimpleEvent.cxx.
References TGo4SimpleSubEvent::Clear(), fiCount, fiMaxSlot, fxSubEventArray, and GO4TRACE.
|
virtual |
Method called by the event owner (analysis step) to fill the event element from the set event source. Event source can be the source of the analysis step (if this is a raw event) or the event processor (if this is a reduced event). Fill method has to specify how the event source writes to the members of this event structure. Either by calling methods of the source (like myevent.a=GetEventSource()->GetA(); etc ), or by direct copy to the member (like GetEventSource()->FillMemoryAt(&myevent.a);)
Reimplemented from TGo4EventElement.
Definition at line 108 of file TGo4SimpleEvent.cxx.
References TGo4TreeSource::BuildEvent(), TGo4FileSource::BuildEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), TGo4EventElement::CheckEventSource(), Clear(), TGo4EventElement::GetEventSource(), and GO4TRACE.
Referenced by main().
Int_t TGo4SimpleEvent::GetCount | ( | ) | const |
TGo4SimpleSubEvent * TGo4SimpleEvent::GetSubEvent | ( | Short_t | procid | ) |
Access to subevent in list by procid. Returns zero if no subevent of this procid is found
Definition at line 165 of file TGo4SimpleEvent.cxx.
References fiMaxSlot, TGo4SimpleSubEvent::fsProcid, fxSubEventArray, and GO4TRACE.
Referenced by AddSubEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), and main().
TGo4SimpleSubEvent * TGo4SimpleEvent::NextSubEvent | ( | ) |
Iterator for subevent array. If reset is kTRUE, the iteration starts at the first TObjArray slot, otherwise we continue at the position after the last call of this method.
Definition at line 241 of file TGo4SimpleEvent.cxx.
References fxIterator, and GO4TRACE.
Referenced by PrintEvent().
|
virtual |
Method prints content of the event
Reimplemented from TGo4EventElement.
Definition at line 70 of file TGo4SimpleEvent.cxx.
References TGo4Log::Debug(), GetCount(), GO4TRACE, NextSubEvent(), TGo4EventElement::PrintEvent(), TGo4SimpleSubEvent::PrintEvent(), and ResetIterator().
Referenced by main().
void TGo4SimpleEvent::ResetIterator | ( | ) |
Set the internal iterator of the subevent array to the beginning of the array.
Definition at line 232 of file TGo4SimpleEvent.cxx.
References fxIterator, fxSubEventArray, and GO4TRACE.
Referenced by PrintEvent().
|
friend |
Definition at line 35 of file TGo4SimpleEvent.h.
|
private |
Definition at line 114 of file TGo4SimpleEvent.h.
|
private |
Definition at line 110 of file TGo4SimpleEvent.h.
Referenced by TGo4SimpleEvent().
|
private |
Definition at line 91 of file TGo4SimpleEvent.h.
Referenced by TGo4SimpleEventProcessor::BuildSimpleEvent(), Clear(), and GetCount().
|
private |
Index of last used slot in the clonesarray.
Definition at line 96 of file TGo4SimpleEvent.h.
Referenced by AddSubEvent().
|
private |
Index of last existing slot in the clonesarray.
Definition at line 101 of file TGo4SimpleEvent.h.
Referenced by AddSubEvent(), Clear(), GetSubEvent(), and TGo4SimpleEvent().
|
private |
Definition at line 112 of file TGo4SimpleEvent.h.
Referenced by TGo4SimpleEvent().
|
private |
Iterator for array.
Definition at line 118 of file TGo4SimpleEvent.h.
Referenced by NextSubEvent(), ResetIterator(), TGo4SimpleEvent(), and ~TGo4SimpleEvent().
|
private |
Definition at line 108 of file TGo4SimpleEvent.h.
Referenced by Clear(), GetSubEvent(), ResetIterator(), TGo4SimpleEvent(), and ~TGo4SimpleEvent().