GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TGo4CompositeEvent Class Reference

#include <TGo4CompositeEvent.h>

+ Inheritance diagram for TGo4CompositeEvent:

Public Member Functions

 TGo4CompositeEvent ()
 
 TGo4CompositeEvent (const char *aName, const char *aTitle, Short_t aBaseCat=0)
 
virtual ~TGo4CompositeEvent ()
 
TGo4EventElementGetChild (const char *name) override
 
void makeBranch (TBranch *parent) override
 
Int_t activateBranch (TBranch *branch, Int_t init=0, TGo4EventElement **var_ptr=nullptr) override
 
void deactivate () override
 
void activate () override
 
Bool_t addEventElement (TGo4EventElement *aElement, Bool_t reading=kFALSE)
 
TTree * CreateSampleTree (TGo4EventElement **sample=nullptr) override
 
TGo4EventElementgetEventElement (Int_t idx)
 
TGo4EventElementgetEventElement (const char *name, Int_t final_element=0)
 
void Clear (Option_t *opt="") override
 
Short_t getNElements () const
 
Short_t getMaxIndex () const
 
Bool_t isComposed () override
 
TObjArray * getElements () const
 
TObjArray * getListOfComposites (Bool_t toplevel=kTRUE)
 
TGo4EventElementoperator[] (Int_t i) override
 
- 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 SetValid (Bool_t on)
 
Bool_t IsValid () const
 
void SetEventSource (TGo4EventSource *src)
 
void SetParent (TGo4EventElement *par)
 
void SetKeepContents (Bool_t on=kTRUE)
 
TGo4EventElementGetParent () const
 
TGo4EventSourceGetEventSource () const
 
Bool_t CheckEventSource (const char *classname)
 
virtual Int_t Fill ()
 
virtual Int_t Init ()
 
virtual void PrintEvent ()
 
void Clear (Option_t *opt="") override
 
virtual void clearAll (Int_t)
 
virtual Short_t getId ()
 
virtual void setDebug (Bool_t debug)
 
void Print (Option_t *option="") const override
 
virtual void synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=nullptr)
 
void ShowSampleTree ()
 

Protected Member Functions

void ProvideArray ()
 

Protected Attributes

Short_t fNElements {0}
 
TObjArray * fEventElements {nullptr}
 
Short_t fMaxIndex {0}
 
- Protected Attributes inherited from TGo4EventElement
Short_t fIdentifier {-1}
 
Bool_t fDebug {kFALSE}
 
Bool_t fbKeepContents {kFALSE}
 Debug level. More...
 

Detailed Description

Base type for object composition

Definition at line 23 of file TGo4CompositeEvent.h.

Constructor & Destructor Documentation

◆ TGo4CompositeEvent() [1/2]

TGo4CompositeEvent::TGo4CompositeEvent ( )

Definition at line 24 of file TGo4CompositeEvent.cxx.

Referenced by TXXXCrate::TXXXCrate().

◆ TGo4CompositeEvent() [2/2]

TGo4CompositeEvent::TGo4CompositeEvent ( const char *  aName,
const char *  aTitle,
Short_t  aBaseCat = 0 
)

Definition at line 32 of file TGo4CompositeEvent.cxx.

◆ ~TGo4CompositeEvent()

TGo4CompositeEvent::~TGo4CompositeEvent ( )
virtual

Definition at line 40 of file TGo4CompositeEvent.cxx.

References fEventElements.

Member Function Documentation

◆ activate()

void TGo4CompositeEvent::activate ( )
overridevirtual

Reimplemented from TGo4EventElement.

Definition at line 265 of file TGo4CompositeEvent.cxx.

References TGo4EventElement::activate(), and fEventElements.

◆ activateBranch()

Int_t TGo4CompositeEvent::activateBranch ( TBranch *  branch,
Int_t  init = 0,
TGo4EventElement **  var_ptr = nullptr 
)
overridevirtual

◆ addEventElement()

Bool_t TGo4CompositeEvent::addEventElement ( TGo4EventElement aElement,
Bool_t  reading = kFALSE 
)

◆ Clear()

void TGo4CompositeEvent::Clear ( Option_t *  opt = "")
override

Definition at line 175 of file TGo4CompositeEvent.cxx.

References TGo4EventElement::Clear(), and fEventElements.

◆ CreateSampleTree()

TTree * TGo4CompositeEvent::CreateSampleTree ( TGo4EventElement **  sample = nullptr)
overridevirtual

Reimplemented from TGo4EventElement.

Definition at line 324 of file TGo4CompositeEvent.cxx.

References makeBranch().

◆ deactivate()

void TGo4CompositeEvent::deactivate ( )
overridevirtual

Reimplemented from TGo4EventElement.

Definition at line 254 of file TGo4CompositeEvent.cxx.

References TGo4EventElement::deactivate(), and fEventElements.

◆ GetChild()

TGo4EventElement * TGo4CompositeEvent::GetChild ( const char *  name)
overridevirtual

Reimplemented from TGo4EventElement.

Definition at line 52 of file TGo4CompositeEvent.cxx.

References fEventElements, and TGo4EventElement::GetChild().

◆ getElements()

TObjArray* TGo4CompositeEvent::getElements ( ) const
inline

◆ getEventElement() [1/2]

TGo4EventElement * TGo4CompositeEvent::getEventElement ( Int_t  idx)

◆ getEventElement() [2/2]

TGo4EventElement * TGo4CompositeEvent::getEventElement ( const char *  name,
Int_t  final_element = 0 
)

Definition at line 239 of file TGo4CompositeEvent.cxx.

References TGo4Log::Debug(), and fEventElements.

◆ getListOfComposites()

TObjArray * TGo4CompositeEvent::getListOfComposites ( Bool_t  toplevel = kTRUE)

◆ getMaxIndex()

Short_t TGo4CompositeEvent::getMaxIndex ( ) const
inline

Definition at line 57 of file TGo4CompositeEvent.h.

References fMaxIndex.

◆ getNElements()

Short_t TGo4CompositeEvent::getNElements ( ) const
inline

◆ isComposed()

Bool_t TGo4CompositeEvent::isComposed ( )
inlineoverridevirtual

Reimplemented from TGo4EventElement.

Definition at line 58 of file TGo4CompositeEvent.h.

◆ makeBranch()

void TGo4CompositeEvent::makeBranch ( TBranch *  parent)
overridevirtual

Reimplemented from TGo4EventElement.

Definition at line 63 of file TGo4CompositeEvent.cxx.

References fEventElements, and TGo4EventElement::makeBranch().

Referenced by CreateSampleTree().

◆ operator[]()

TGo4EventElement & TGo4CompositeEvent::operator[] ( Int_t  i)
overridevirtual

Reimplemented from TGo4EventElement.

Definition at line 297 of file TGo4CompositeEvent.cxx.

References TGo4Log::Error(), and fEventElements.

Referenced by getElements().

◆ ProvideArray()

void TGo4CompositeEvent::ProvideArray ( )
protected

Member Data Documentation

◆ fEventElements

TObjArray* TGo4CompositeEvent::fEventElements {nullptr}
protected

◆ fMaxIndex

Short_t TGo4CompositeEvent::fMaxIndex {0}
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().

◆ fNElements

Short_t TGo4CompositeEvent::fNElements {0}
protected

Number of Elements in composite

Definition at line 27 of file TGo4CompositeEvent.h.

Referenced by activateBranch(), addEventElement(), and getNElements().


The documentation for this class was generated from the following files: