GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Base type for object composition. More...
#include <TGo4CompositeEvent.h>
Public Member Functions | |
TGo4CompositeEvent () | |
TGo4CompositeEvent (const char *aName, const char *aTitle, Short_t aBaseCat=0) | |
virtual | ~TGo4CompositeEvent () |
void | activate () override |
Int_t | activateBranch (TBranch *branch, Int_t init=0, TGo4EventElement **var_ptr=nullptr) override |
Bool_t | addEventElement (TGo4EventElement *aElement, Bool_t reading=kFALSE) |
void | Clear (Option_t *opt="") override |
TTree * | CreateSampleTree (TGo4EventElement **sample=nullptr) override |
void | deactivate () override |
TGo4EventElement * | GetChild (const char *name) override |
TObjArray * | getElements () const |
TGo4EventElement * | getEventElement (const char *name, Int_t final_element=0) |
TGo4EventElement * | getEventElement (Int_t idx) |
TObjArray * | getListOfComposites (Bool_t toplevel=kTRUE) |
Short_t | getMaxIndex () const |
Short_t | getNElements () const |
Bool_t | isComposed () override |
void | makeBranch (TBranch *parent) override |
TGo4EventElement & | operator[] (Int_t i) override |
![]() | |
TGo4EventElement () | |
TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0) | |
TGo4EventElement (const char *name) | |
virtual | ~TGo4EventElement () |
Bool_t | CheckEventSource (const char *classname) |
Check if event source is valid. | |
void | Clear (Option_t *opt="") override |
virtual void | clearAll (Int_t) |
virtual Int_t | Fill () |
Method called by the event owner (analysis step) to fill the event element from the set event source. | |
TGo4EventSource * | GetEventSource () const |
virtual Short_t | getId () |
TGo4EventElement * | GetParent () const |
virtual Int_t | Init () |
Method called on initialization of event classes. | |
Bool_t | IsValid () const |
Returns the valid state of this event. | |
void | Print (Option_t *option="") const override |
virtual void | PrintEvent () |
Method prints content of the event. | |
virtual void | setDebug (Bool_t debug) |
void | SetEventSource (TGo4EventSource *src) |
Setter for the event source that is currently used by the Fill method. | |
void | SetKeepContents (Bool_t on=kTRUE) |
void | SetParent (TGo4EventElement *par) |
Setter for the parent event structure reference. | |
void | SetValid (Bool_t on) |
Switches the valid state of this event. | |
void | ShowSampleTree () |
virtual void | synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=nullptr) |
Use this method to map event structure with the Tree branch(es) | |
Protected Member Functions | |
void | ProvideArray () |
Protected Attributes | |
TObjArray * | fEventElements {nullptr} |
Sub-Events list for this event. | |
Short_t | fMaxIndex {0} |
Maximum index (i.e. | |
Short_t | fNElements {0} |
Number of Elements in composite. | |
![]() | |
Bool_t | fbKeepContents {kFALSE} |
Debug level. | |
Bool_t | fDebug {kFALSE} |
Short_t | fIdentifier {-1} |
Base type for object composition.
Definition at line 25 of file TGo4CompositeEvent.h.
TGo4CompositeEvent::TGo4CompositeEvent | ( | ) |
Definition at line 24 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), fEventElements, fMaxIndex, and fNElements.
Referenced by TXXXCrate::TXXXCrate(), TXXXCrate::TXXXCrate(), TXXXUnpackEvent::TXXXUnpackEvent(), CreateSampleTree(), getEventElement(), and getListOfComposites().
TGo4CompositeEvent::TGo4CompositeEvent | ( | const char * | aName, |
const char * | aTitle, | ||
Short_t | aBaseCat = 0 ) |
Definition at line 32 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), fEventElements, fMaxIndex, and fNElements.
|
virtual |
Definition at line 40 of file TGo4CompositeEvent.cxx.
References fEventElements.
|
overridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 265 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), TGo4EventElement::activate(), and fEventElements.
|
overridevirtual |
while
Reimplemented from TGo4EventElement.
Definition at line 78 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), TGo4EventElement::activateBranch(), addEventElement(), TGo4Log::Debug(), TGo4Log::Error(), TGo4EventElement::fDebug, fEventElements, fNElements, getEventElement(), TGo4EventElement::getId(), TGo4EventElement::isComposed(), and ProvideArray().
Bool_t TGo4CompositeEvent::addEventElement | ( | TGo4EventElement * | aElement, |
Bool_t | reading = kFALSE ) |
Definition at line 186 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), TGo4Log::Debug(), TGo4Log::Error(), TGo4EventElement::fDebug, fEventElements, fMaxIndex, fNElements, getEventElement(), TGo4EventElement::getId(), and ProvideArray().
Referenced by TXXXCrate::TXXXCrate(), and activateBranch().
|
override |
Definition at line 175 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), TGo4EventElement::Clear(), and fEventElements.
|
overridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 324 of file TGo4CompositeEvent.cxx.
References TGo4CompositeEvent(), TGo4EventElement::TGo4EventElement(), and makeBranch().
|
overridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 254 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), TGo4EventElement::deactivate(), and fEventElements.
|
overridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 52 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), fEventElements, and TGo4EventElement::GetChild().
|
inline |
Definition at line 61 of file TGo4CompositeEvent.h.
References fEventElements.
TGo4EventElement * TGo4CompositeEvent::getEventElement | ( | const char * | name, |
Int_t | final_element = 0 ) |
Definition at line 239 of file TGo4CompositeEvent.cxx.
References TGo4CompositeEvent(), TGo4EventElement::TGo4EventElement(), TGo4Log::Debug(), and fEventElements.
TGo4EventElement * TGo4CompositeEvent::getEventElement | ( | Int_t | idx | ) |
Definition at line 230 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), and fEventElements.
Referenced by activateBranch(), addEventElement(), and TGo4HDF5Adapter::BuildDataType().
TObjArray * TGo4CompositeEvent::getListOfComposites | ( | Bool_t | toplevel = kTRUE | ) |
Definition at line 275 of file TGo4CompositeEvent.cxx.
References TGo4CompositeEvent(), TGo4EventElement::TGo4EventElement(), and fEventElements.
Referenced by TGo4AnalysisObjectManager::CreateCompositeBranchFolder().
|
inline |
Definition at line 59 of file TGo4CompositeEvent.h.
References fMaxIndex.
|
inline |
Definition at line 58 of file TGo4CompositeEvent.h.
References fNElements.
Referenced by TGo4HDF5Adapter::BuildDataType(), and TGo4AnalysisObjectManager::CreateCompositeBranchFolder().
|
inlineoverridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 60 of file TGo4CompositeEvent.h.
|
overridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 63 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), fEventElements, and TGo4EventElement::makeBranch().
Referenced by CreateSampleTree().
|
overridevirtual |
Reimplemented from TGo4EventElement.
Definition at line 297 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::TGo4EventElement(), TGo4Log::Error(), and fEventElements.
|
protected |
Definition at line 308 of file TGo4CompositeEvent.cxx.
References TGo4Log::Debug(), TGo4EventElement::fDebug, fEventElements, and fMaxIndex.
Referenced by activateBranch(), and addEventElement().
|
protected |
Sub-Events list for this event.
Definition at line 32 of file TGo4CompositeEvent.h.
Referenced by TGo4CompositeEvent(), TGo4CompositeEvent(), ~TGo4CompositeEvent(), activate(), activateBranch(), addEventElement(), Clear(), deactivate(), GetChild(), getElements(), getEventElement(), getEventElement(), getListOfComposites(), makeBranch(), operator[](), and ProvideArray().
|
protected |
Maximum index (i.e.
array size to provide when reading back tree)
Definition at line 35 of file TGo4CompositeEvent.h.
Referenced by TGo4CompositeEvent(), TGo4CompositeEvent(), addEventElement(), getMaxIndex(), and ProvideArray().
|
protected |
Number of Elements in composite.
Definition at line 29 of file TGo4CompositeEvent.h.
Referenced by TGo4CompositeEvent(), TGo4CompositeEvent(), activateBranch(), addEventElement(), and getNElements().