PandaRoot
TGo4EventElement Class Reference

#include <TGo4EventElement.h>

Inheritance diagram for TGo4EventElement:
TProtoUnpackEvent

Public Member Functions

 TGo4EventElement ()
 
 TGo4EventElement (const char *name)
 
 TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0)
 
virtual ~TGo4EventElement (void)
 
void SetValid (Bool_t on)
 
Bool_t IsValid () const
 
void SetEventSource (TGo4EventSource *src)
 
void SetParent (TGo4EventElement *par)
 
TGo4EventElementGetParent () const
 
TGo4EventSource * GetEventSource () const
 
Bool_t CheckEventSource (const char *classname)
 
virtual Int_t Fill ()
 
virtual Int_t Init ()
 
virtual void PrintEvent ()
 
virtual void makeBranch (TBranch *parent)
 
virtual void deactivate ()
 
virtual void activate ()
 
virtual void Clear (Option_t *t="")
 
virtual void clearAll (Int_t)
 
virtual Bool_t isComposed ()
 
virtual Short_t getId ()
 
virtual void setDebug (Bool_t debug)
 
virtual TGo4EventElementoperator[] (Int_t)
 
virtual void Print (Option_t *option="") const
 
virtual void synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=nullptr)
 
virtual Int_t activateBranch (TBranch *branch, Int_t index=0, TGo4EventElement **var_ptr=0)
 

Protected Member Functions

 ClassDef (TGo4EventElement, 3)
 Debug level. More...
 

Protected Attributes

Short_t fIdentifier
 
Bool_t fDebug
 

Detailed Description

Definition at line 36 of file TGo4EventElement.h.

Constructor & Destructor Documentation

◆ TGo4EventElement() [1/3]

TGo4EventElement::TGo4EventElement ( )

◆ TGo4EventElement() [2/3]

TGo4EventElement::TGo4EventElement ( const char *  name)

◆ TGo4EventElement() [3/3]

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

◆ ~TGo4EventElement()

virtual TGo4EventElement::~TGo4EventElement ( void  )
virtual

Member Function Documentation

◆ activate()

virtual void TGo4EventElement::activate ( )
virtual

Referenced by GetEventSource().

◆ activateBranch()

virtual Int_t TGo4EventElement::activateBranch ( TBranch *  branch,
Int_t  index = 0,
TGo4EventElement **  var_ptr = 0 
)
virtual

Referenced by operator[]().

◆ CheckEventSource()

Bool_t TGo4EventElement::CheckEventSource ( const char *  classname)

Check if event source is valid. Tests the pointer for zero, and if not zero, compares classname of the event source with given string. To be used from the Fill method and from the analysis method init event classes.

Referenced by GetEventSource().

◆ ClassDef()

TGo4EventElement::ClassDef ( TGo4EventElement  ,
 
)
protected

Debug level.

◆ Clear()

virtual void TGo4EventElement::Clear ( Option_t *  t = "")
virtual

Reimplemented in TProtoUnpackEvent.

Referenced by GetEventSource().

◆ clearAll()

virtual void TGo4EventElement::clearAll ( Int_t  )
inlinevirtual

Definition at line 90 of file TGo4EventElement.h.

90 {}

◆ deactivate()

virtual void TGo4EventElement::deactivate ( )
virtual

Referenced by GetEventSource().

◆ Fill()

virtual Int_t TGo4EventElement::Fill ( )
virtual

Method called by the event owner (analysis step) to fill the event element from the set event source. Event source can be the source of the analysis step (if this is a raw event) or the event processor (if this is a reduced event). Fill method has to specify how the event source writes to the members of this event structure. Either by calling methods of the source (like myevent.a=fxEventSource->GetA(); etc ), or by direct copy to the member (like fxEventSource->FillMemoryAt(&myevent.a);)

Referenced by GetEventSource().

◆ GetEventSource()

TGo4EventSource* TGo4EventElement::GetEventSource ( ) const
inline

Definition at line 59 of file TGo4EventElement.h.

References activate(), CheckEventSource(), Clear(), deactivate(), Fill(), Init(), makeBranch(), and PrintEvent().

59 { return fxEventSource; }

◆ getId()

virtual Short_t TGo4EventElement::getId ( )
inlinevirtual

Definition at line 92 of file TGo4EventElement.h.

References fIdentifier.

92 { return fIdentifier; }

◆ GetParent()

TGo4EventElement* TGo4EventElement::GetParent ( ) const
inline

Definition at line 57 of file TGo4EventElement.h.

57 { return fxParent; }

◆ Init()

virtual Int_t TGo4EventElement::Init ( )
virtual

Method called on initialization of event classes. User might check the correct type of the eventsource here and assign this to a subclass pointer.

Referenced by GetEventSource().

◆ isComposed()

virtual Bool_t TGo4EventElement::isComposed ( )
inlinevirtual

Definition at line 91 of file TGo4EventElement.h.

91 { return kFALSE; }

◆ IsValid()

Bool_t TGo4EventElement::IsValid ( ) const
inline

Returns the valid state of this event.

Definition at line 49 of file TGo4EventElement.h.

49 { return fbIsValid; }

◆ makeBranch()

virtual void TGo4EventElement::makeBranch ( TBranch *  parent)
virtual

Referenced by GetEventSource().

◆ operator[]()

virtual TGo4EventElement& TGo4EventElement::operator[] ( Int_t  )
inlinevirtual

Definition at line 94 of file TGo4EventElement.h.

References activateBranch(), Print(), and synchronizeWithTree().

94 { return *this; }

◆ Print()

virtual void TGo4EventElement::Print ( Option_t *  option = "") const
virtual

Referenced by operator[]().

◆ PrintEvent()

virtual void TGo4EventElement::PrintEvent ( )
virtual

Method prints content of the event

Referenced by GetEventSource().

◆ setDebug()

virtual void TGo4EventElement::setDebug ( Bool_t  debug)
inlinevirtual

Definition at line 93 of file TGo4EventElement.h.

References fDebug.

93 { fDebug = debug; }

◆ SetEventSource()

void TGo4EventElement::SetEventSource ( TGo4EventSource *  src)
inline

Setter for the event source that is currently used by the Fill method.

Definition at line 52 of file TGo4EventElement.h.

52 { fxEventSource = src; }

◆ SetParent()

void TGo4EventElement::SetParent ( TGo4EventElement par)
inline

Setter for the parent event structure reference.

Definition at line 55 of file TGo4EventElement.h.

55 { fxParent = par; }

◆ SetValid()

void TGo4EventElement::SetValid ( Bool_t  on)
inline

Switches the valid state of this event.

Definition at line 46 of file TGo4EventElement.h.

46 { fbIsValid = on; }

◆ synchronizeWithTree()

virtual void TGo4EventElement::synchronizeWithTree ( TTree *  tree,
TGo4EventElement **  var_ptr = nullptr 
)
virtual

Use this method to map event structure with the Tree branch(es)

Referenced by operator[]().

Member Data Documentation

◆ fDebug

Bool_t TGo4EventElement::fDebug
protected

Definition at line 122 of file TGo4EventElement.h.

Referenced by setDebug().

◆ fIdentifier

Short_t TGo4EventElement::fIdentifier
protected

Definition at line 121 of file TGo4EventElement.h.

Referenced by getId().


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