14#ifndef TGO4EVENTELEMENT_H
15#define TGO4EVENTELEMENT_H
45 TGo4EventElement(
const char *aName,
const char *aTitle, Short_t aBaseCat = 0);
97 void Clear(Option_t *opt =
"")
override;
104 void Print(Option_t *option =
"")
const override;
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
void SetValid(Bool_t on)
Switches the valid state of this event.
TGo4EventElement * fxParent
The higher level event element that owns this instance 1.
Bool_t IsValid() const
Returns the valid state of this event.
virtual ~TGo4EventElement()
virtual Int_t Init()
Method called on initialization of event classes.
virtual TTree * CreateSampleTree(TGo4EventElement **sample=nullptr)
virtual void makeBranch(TBranch *parent)
virtual void deactivate()
virtual TGo4EventElement * GetChild(const char *name)
void SetKeepContents(Bool_t on=kTRUE)
TGo4EventSource * GetEventSource() const
virtual void PrintEvent()
Method prints content of the event.
virtual void setDebug(Bool_t debug)
virtual void synchronizeWithTree(TTree *tree, TGo4EventElement **var_ptr=nullptr)
Use this method to map event structure with the Tree branch(es)
void SetEventSource(TGo4EventSource *src)
Setter for the event source that is currently used by the Fill method.
virtual Int_t Fill()
Method called by the event owner (analysis step) to fill the event element from the set event source.
Bool_t fbIsValid
Indicates if this event is valid or not.
void Clear(Option_t *opt="") override
TGo4EventElement * GetParent() const
virtual void clearAll(Int_t)
void Print(Option_t *option="") const override
virtual Int_t activateBranch(TBranch *branch, Int_t index=0, TGo4EventElement **var_ptr=nullptr)
virtual TGo4EventElement & operator[](Int_t)
Bool_t CheckEventSource(const char *classname)
Check if event source is valid.
virtual Bool_t isComposed()
void SetParent(TGo4EventElement *par)
Setter for the parent event structure reference.
Bool_t fbKeepContents
Debug level.
TGo4EventSource * fxEventSource
The external event source instance which is used to fill this event structure from the raw event.