#include <TGo4CompositeEvent.h>
Public Member Functions | |
| TGo4CompositeEvent () | |
| TGo4CompositeEvent (const char *aName, const char *aTitle, Short_t aBaseCat=0) | |
| virtual | ~TGo4CompositeEvent () |
| virtual TGo4EventElement * | GetChild (const char *name) |
| void | makeBranch (TBranch *parent) |
| virtual Int_t | activateBranch (TBranch *branch, Int_t init=0, TGo4EventElement **var_ptr=0) |
| virtual void | deactivate () |
| virtual void | activate () |
| Bool_t | addEventElement (TGo4EventElement *aElement, Bool_t reading=kFALSE) |
| TGo4EventElement * | getEventElement (Int_t idx) |
| TGo4EventElement * | getEventElement (const char *name, Int_t final=0) |
| void | Clear (Option_t *opt="") |
| Short_t | getNElements () const |
| Short_t | getMaxIndex () const |
| virtual Bool_t | isComposed () |
| TObjArray * | getElements () |
| TObjArray * | getListOfComposites (Bool_t toplevel=kTRUE) |
| TGo4EventElement & | operator[] (Int_t i) |
Protected Member Functions | |
| void | ProvideArray () |
Protected Attributes | |
| Short_t | fNElements |
| TObjArray * | fEventElements |
| Short_t | fMaxIndex |
Base type for object composition
Definition at line 23 of file TGo4CompositeEvent.h.
| TGo4CompositeEvent::TGo4CompositeEvent | ( | ) |
Definition at line 24 of file TGo4CompositeEvent.cxx.
| TGo4CompositeEvent::TGo4CompositeEvent | ( | const char * | aName, | |
| const char * | aTitle, | |||
| Short_t | aBaseCat = 0 | |||
| ) |
Definition at line 32 of file TGo4CompositeEvent.cxx.
| TGo4CompositeEvent::~TGo4CompositeEvent | ( | ) | [virtual] |
Definition at line 40 of file TGo4CompositeEvent.cxx.
References fEventElements.
| void TGo4CompositeEvent::activate | ( | ) | [virtual] |
Reimplemented from TGo4EventElement.
Definition at line 269 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::activate(), and fEventElements.
| Int_t TGo4CompositeEvent::activateBranch | ( | TBranch * | branch, | |
| Int_t | init = 0, |
|||
| TGo4EventElement ** | var_ptr = 0 | |||
| ) | [virtual] |
while
Reimplemented from TGo4EventElement.
Definition at line 78 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::activateBranch(), addEventElement(), b, 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 188 of file TGo4CompositeEvent.cxx.
References TGo4Log::Debug(), TGo4Log::Error(), TGo4EventElement::fDebug, fEventElements, fMaxIndex, fNElements, getEventElement(), TGo4EventElement::getId(), and ProvideArray().
Referenced by activateBranch(), and TXXXCrate::TXXXCrate().
| void TGo4CompositeEvent::Clear | ( | Option_t * | opt = "" |
) | [virtual] |
Reimplemented from TGo4EventElement.
Definition at line 176 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::Clear(), and fEventElements.
| void TGo4CompositeEvent::deactivate | ( | ) | [virtual] |
Reimplemented from TGo4EventElement.
Definition at line 258 of file TGo4CompositeEvent.cxx.
References TGo4EventElement::deactivate(), and fEventElements.
| TGo4EventElement * TGo4CompositeEvent::GetChild | ( | const char * | name | ) | [virtual] |
Reimplemented from TGo4EventElement.
Definition at line 52 of file TGo4CompositeEvent.cxx.
References fEventElements.
| TObjArray* TGo4CompositeEvent::getElements | ( | ) | [inline] |
Definition at line 57 of file TGo4CompositeEvent.h.
References fEventElements.
| TGo4EventElement * TGo4CompositeEvent::getEventElement | ( | const char * | name, | |
| Int_t | final = 0 | |||
| ) |
Definition at line 242 of file TGo4CompositeEvent.cxx.
References TGo4Log::Debug(), fEventElements, and TGo4EventElement::isComposed().
| TGo4EventElement * TGo4CompositeEvent::getEventElement | ( | Int_t | idx | ) |
Definition at line 232 of file TGo4CompositeEvent.cxx.
References fEventElements.
Referenced by activateBranch(), and addEventElement().
| TObjArray * TGo4CompositeEvent::getListOfComposites | ( | Bool_t | toplevel = kTRUE |
) |
Definition at line 281 of file TGo4CompositeEvent.cxx.
References fEventElements, and TGo4EventElement::isComposed().
Referenced by TGo4AnalysisObjectManager::CreateCompositeBranchFolder().
| Short_t TGo4CompositeEvent::getMaxIndex | ( | ) | const [inline] |
Definition at line 55 of file TGo4CompositeEvent.h.
References fMaxIndex.
| Short_t TGo4CompositeEvent::getNElements | ( | ) | const [inline] |
Definition at line 54 of file TGo4CompositeEvent.h.
References fNElements.
Referenced by TGo4AnalysisObjectManager::CreateCompositeBranchFolder().
| virtual Bool_t TGo4CompositeEvent::isComposed | ( | ) | [inline, virtual] |
Reimplemented from TGo4EventElement.
Definition at line 56 of file TGo4CompositeEvent.h.
| void TGo4CompositeEvent::makeBranch | ( | TBranch * | parent | ) | [virtual] |
Reimplemented from TGo4EventElement.
Definition at line 63 of file TGo4CompositeEvent.cxx.
References b, and fEventElements.
| TGo4EventElement & TGo4CompositeEvent::operator[] | ( | Int_t | i | ) | [virtual] |
Reimplemented from TGo4EventElement.
Definition at line 303 of file TGo4CompositeEvent.cxx.
References TGo4Log::Error(), and fEventElements.
| void TGo4CompositeEvent::ProvideArray | ( | ) | [protected] |
Definition at line 314 of file TGo4CompositeEvent.cxx.
References TGo4Log::Debug(), TGo4EventElement::fDebug, fEventElements, and fMaxIndex.
Referenced by activateBranch(), and addEventElement().
TObjArray* TGo4CompositeEvent::fEventElements [protected] |
Sub-Events list for this event
Definition at line 30 of file TGo4CompositeEvent.h.
Referenced by activate(), activateBranch(), addEventElement(), Clear(), deactivate(), GetChild(), getElements(), getEventElement(), getListOfComposites(), makeBranch(), operator[](), ProvideArray(), and ~TGo4CompositeEvent().
Short_t TGo4CompositeEvent::fMaxIndex [protected] |
Maximum index (i.e. array size to provide when reading back tree)
Definition at line 33 of file TGo4CompositeEvent.h.
Referenced by addEventElement(), getMaxIndex(), and ProvideArray().
Short_t TGo4CompositeEvent::fNElements [protected] |
Number of Elements in composite
Definition at line 27 of file TGo4CompositeEvent.h.
Referenced by activateBranch(), addEventElement(), and getNElements().
1.7.1