GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4CompositeEvent Class Reference

Base type for object composition. More...

#include <TGo4CompositeEvent.h>

Inheritance diagram for TGo4CompositeEvent:

Public Member Functions

 TGo4CompositeEvent ()
 TGo4CompositeEvent ()
 TGo4CompositeEvent (const char *aName, const char *aTitle, Short_t aBaseCat=0)
 TGo4CompositeEvent (const char *aName, const char *aTitle, Short_t aBaseCat=0)
virtual ~TGo4CompositeEvent ()
virtual ~TGo4CompositeEvent ()
void activate () override
void activate () override
Int_t activateBranch (TBranch *branch, Int_t init=0, TGo4EventElement **var_ptr=nullptr) override
Int_t activateBranch (TBranch *branch, Int_t init=0, TGo4EventElement **var_ptr=nullptr) override
Bool_t addEventElement (TGo4EventElement *aElement, Bool_t reading=kFALSE)
Bool_t addEventElement (TGo4EventElement *aElement, Bool_t reading=kFALSE)
void Clear (Option_t *opt="") override
void Clear (Option_t *opt="") override
TTree * CreateSampleTree (TGo4EventElement **sample=nullptr) override
TTree * CreateSampleTree (TGo4EventElement **sample=nullptr) override
void deactivate () override
void deactivate () override
TGo4EventElementGetChild (const char *name) override
TGo4EventElementGetChild (const char *name) override
TObjArray * getElements () const
TObjArray * getElements () const
TGo4EventElementgetEventElement (const char *name, Int_t final_element=0)
TGo4EventElementgetEventElement (const char *name, Int_t final_element=0)
TGo4EventElementgetEventElement (Int_t idx)
TGo4EventElementgetEventElement (Int_t idx)
TObjArray * getListOfComposites (Bool_t toplevel=kTRUE)
TObjArray * getListOfComposites (Bool_t toplevel=kTRUE)
Short_t getMaxIndex () const
Short_t getMaxIndex () const
Short_t getNElements () const
Short_t getNElements () const
Bool_t isComposed () override
Bool_t isComposed () override
void makeBranch (TBranch *parent) override
void makeBranch (TBranch *parent) override
TGo4EventElementoperator[] (Int_t i) override
TGo4EventElementoperator[] (Int_t i) override
Public Member Functions inherited from TGo4EventElement
 TGo4EventElement ()
 TGo4EventElement ()
 TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0)
 TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0)
 TGo4EventElement (const char *name)
 TGo4EventElement (const char *name)
virtual ~TGo4EventElement ()
virtual ~TGo4EventElement ()
Bool_t CheckEventSource (const char *classname)
 Check if event source is valid.
Bool_t CheckEventSource (const char *classname)
 Check if event source is valid.
void Clear (Option_t *opt="") override
void Clear (Option_t *opt="") override
virtual void clearAll (Int_t)
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.
virtual Int_t Fill ()
 Method called by the event owner (analysis step) to fill the event element from the set event source.
TGo4EventSourceGetEventSource () const
TGo4EventSourceGetEventSource () const
virtual Short_t getId ()
virtual Short_t getId ()
TGo4EventElementGetParent () const
TGo4EventElementGetParent () const
virtual Int_t Init ()
 Method called on initialization of event classes.
virtual Int_t Init ()
 Method called on initialization of event classes.
Bool_t IsValid () const
 Returns the valid state of this event.
Bool_t IsValid () const
 Returns the valid state of this event.
void Print (Option_t *option="") const override
void Print (Option_t *option="") const override
virtual void PrintEvent ()
 Method prints content of the event.
virtual void PrintEvent ()
 Method prints content of the event.
virtual void setDebug (Bool_t debug)
virtual void setDebug (Bool_t debug)
void SetEventSource (TGo4EventSource *src)
 Setter for the event source that is currently used by the Fill method.
void SetEventSource (TGo4EventSource *src)
 Setter for the event source that is currently used by the Fill method.
void SetKeepContents (Bool_t on=kTRUE)
void SetKeepContents (Bool_t on=kTRUE)
void SetParent (TGo4EventElement *par)
 Setter for the parent event structure reference.
void SetParent (TGo4EventElement *par)
 Setter for the parent event structure reference.
void SetValid (Bool_t on)
 Switches the valid state of this event.
void SetValid (Bool_t on)
 Switches the valid state of this event.
void ShowSampleTree ()
void ShowSampleTree ()
virtual void synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=nullptr)
 Use this method to map event structure with the Tree branch(es).
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 ()
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.
Protected Attributes inherited from TGo4EventElement
Bool_t fbKeepContents {kFALSE}
 Debug level.
Bool_t fDebug {kFALSE}
Short_t fIdentifier {-1}

Detailed Description

Base type for object composition.

Definition at line 25 of file TGo4CompositeEvent.h.

Constructor & Destructor Documentation

◆ TGo4CompositeEvent() [1/4]

◆ TGo4CompositeEvent() [2/4]

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

◆ ~TGo4CompositeEvent() [1/2]

TGo4CompositeEvent::~TGo4CompositeEvent ( )
virtual

Definition at line 40 of file TGo4CompositeEvent.cxx.

References fEventElements.

◆ TGo4CompositeEvent() [3/4]

TGo4CompositeEvent::TGo4CompositeEvent ( )

◆ TGo4CompositeEvent() [4/4]

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

◆ ~TGo4CompositeEvent() [2/2]

virtual TGo4CompositeEvent::~TGo4CompositeEvent ( )
virtual

Member Function Documentation

◆ activate() [1/2]

void TGo4CompositeEvent::activate ( )
overridevirtual

◆ activate() [2/2]

void TGo4CompositeEvent::activate ( )
overridevirtual

Reimplemented from TGo4EventElement.

◆ activateBranch() [1/2]

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

◆ activateBranch() [2/2]

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

Reimplemented from TGo4EventElement.

References TGo4EventElement::TGo4EventElement().

◆ addEventElement() [1/2]

◆ addEventElement() [2/2]

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

◆ Clear() [1/2]

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

◆ Clear() [2/2]

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

◆ CreateSampleTree() [1/2]

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

Reimplemented from TGo4EventElement.

Definition at line 324 of file TGo4CompositeEvent.cxx.

References TGo4CompositeEvent(), TGo4EventElement::TGo4EventElement(), and makeBranch().

◆ CreateSampleTree() [2/2]

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

Reimplemented from TGo4EventElement.

References TGo4EventElement::TGo4EventElement().

◆ deactivate() [1/2]

void TGo4CompositeEvent::deactivate ( )
overridevirtual

◆ deactivate() [2/2]

void TGo4CompositeEvent::deactivate ( )
overridevirtual

Reimplemented from TGo4EventElement.

◆ GetChild() [1/2]

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

◆ GetChild() [2/2]

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

Reimplemented from TGo4EventElement.

References TGo4EventElement::TGo4EventElement().

◆ getElements() [1/2]

TObjArray * TGo4CompositeEvent::getElements ( ) const
inline

Definition at line 61 of file TGo4CompositeEvent.h.

References fEventElements.

◆ getElements() [2/2]

TObjArray * TGo4CompositeEvent::getElements ( ) const
inline

Definition at line 61 of file TGo4CompositeEvent.h.

References fEventElements.

◆ getEventElement() [1/4]

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

◆ getEventElement() [2/4]

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

◆ getEventElement() [3/4]

TGo4EventElement * TGo4CompositeEvent::getEventElement ( Int_t idx)

◆ getEventElement() [4/4]

TGo4EventElement * TGo4CompositeEvent::getEventElement ( Int_t idx)

◆ getListOfComposites() [1/2]

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

◆ getListOfComposites() [2/2]

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

◆ getMaxIndex() [1/2]

Short_t TGo4CompositeEvent::getMaxIndex ( ) const
inline

Definition at line 59 of file TGo4CompositeEvent.h.

References fMaxIndex.

◆ getMaxIndex() [2/2]

Short_t TGo4CompositeEvent::getMaxIndex ( ) const
inline

Definition at line 59 of file TGo4CompositeEvent.h.

References fMaxIndex.

◆ getNElements() [1/2]

Short_t TGo4CompositeEvent::getNElements ( ) const
inline

◆ getNElements() [2/2]

Short_t TGo4CompositeEvent::getNElements ( ) const
inline

Definition at line 58 of file TGo4CompositeEvent.h.

References fNElements.

◆ isComposed() [1/2]

Bool_t TGo4CompositeEvent::isComposed ( )
inlineoverridevirtual

Reimplemented from TGo4EventElement.

Definition at line 60 of file TGo4CompositeEvent.h.

◆ isComposed() [2/2]

Bool_t TGo4CompositeEvent::isComposed ( )
inlineoverridevirtual

Reimplemented from TGo4EventElement.

Definition at line 60 of file TGo4CompositeEvent.h.

◆ makeBranch() [1/2]

void TGo4CompositeEvent::makeBranch ( TBranch * parent)
overridevirtual

◆ makeBranch() [2/2]

void TGo4CompositeEvent::makeBranch ( TBranch * parent)
overridevirtual

Reimplemented from TGo4EventElement.

◆ operator[]() [1/2]

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

Reimplemented from TGo4EventElement.

Definition at line 297 of file TGo4CompositeEvent.cxx.

References TGo4EventElement::TGo4EventElement(), TGo4Log::Error(), and fEventElements.

◆ operator[]() [2/2]

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

Reimplemented from TGo4EventElement.

References TGo4EventElement::TGo4EventElement().

◆ ProvideArray() [1/2]

void TGo4CompositeEvent::ProvideArray ( )
protected

◆ ProvideArray() [2/2]

void TGo4CompositeEvent::ProvideArray ( )
protected

References TGo4CompositeEvent().

Field 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 35 of file TGo4CompositeEvent.h.

Referenced by TGo4CompositeEvent(), TGo4CompositeEvent(), addEventElement(), getMaxIndex(), and ProvideArray().

◆ fNElements

Short_t TGo4CompositeEvent::fNElements {0}
protected

Number of Elements in composite.

Definition at line 29 of file TGo4CompositeEvent.h.

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


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