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

Example for user defined raw event class. More...

#include <TYYYRawEvent.h>

+ Inheritance diagram for TYYYRawEvent:

Public Member Functions

 TYYYRawEvent ()
 
 TYYYRawEvent (const char *name)
 
virtual ~TYYYRawEvent ()
 
void Clear (Option_t *opt="") override
 Method called by the event owner (analysis step) to clear the event element.
 
Int_t GetColumns () const
 
void PrintEvent () override
 Method prints content of the event.
 
void ReAllocate (Int_t newsize)
 Expand data field if necessary.
 
- Public Member Functions inherited from TGo4EventElement
 TGo4EventElement ()
 
 TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0)
 
 TGo4EventElement (const char *name)
 
virtual ~TGo4EventElement ()
 
virtual void activate ()
 
virtual Int_t activateBranch (TBranch *branch, Int_t index=0, TGo4EventElement **var_ptr=nullptr)
 
Bool_t CheckEventSource (const char *classname)
 Check if event source is valid.
 
void Clear (Option_t *opt="") override
 
virtual void clearAll (Int_t)
 
virtual TTree * CreateSampleTree (TGo4EventElement **sample=nullptr)
 
virtual void deactivate ()
 
virtual Int_t Fill ()
 Method called by the event owner (analysis step) to fill the event element from the set event source.
 
virtual TGo4EventElementGetChild (const char *name)
 
TGo4EventSourceGetEventSource () const
 
virtual Short_t getId ()
 
TGo4EventElementGetParent () const
 
virtual Int_t Init ()
 Method called on initialization of event classes.
 
virtual Bool_t isComposed ()
 
Bool_t IsValid () const
 Returns the valid state of this event.
 
virtual void makeBranch (TBranch *parent)
 
virtual TGo4EventElementoperator[] (Int_t)
 
void Print (Option_t *option="") const override
 
virtual void setDebug (Bool_t debug)
 
void SetEventSource (TGo4EventSource *src)
 Setter for the event source that is currently used by the Fill method.
 
void SetKeepContents (Bool_t on=kTRUE)
 
void SetParent (TGo4EventElement *par)
 Setter for the parent event structure reference.
 
void SetValid (Bool_t on)
 Switches the valid state of this event.
 
void ShowSampleTree ()
 
virtual void synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=nullptr)
 Use this method to map event structure with the Tree branch(es)
 

Data Fields

Double_t * fdData {nullptr}
 
Int_t fiAllocated {0}
 
Int_t fiColumns {0}
 

Additional Inherited Members

- Protected Attributes inherited from TGo4EventElement
Bool_t fbKeepContents {kFALSE}
 Debug level.
 
Bool_t fDebug {kFALSE}
 
Short_t fIdentifier {-1}
 

Detailed Description

Example for user defined raw event class.

This event structure corresponds to the user event source.

Definition at line 23 of file TYYYRawEvent.h.

Constructor & Destructor Documentation

◆ TYYYRawEvent() [1/2]

TYYYRawEvent::TYYYRawEvent ( )

Definition at line 20 of file TYYYRawEvent.cxx.

References TGo4EventElement::TGo4EventElement().

◆ TYYYRawEvent() [2/2]

TYYYRawEvent::TYYYRawEvent ( const char * name)

Definition at line 26 of file TYYYRawEvent.cxx.

References TGo4EventElement::TGo4EventElement().

◆ ~TYYYRawEvent()

TYYYRawEvent::~TYYYRawEvent ( )
virtual

Definition at line 31 of file TYYYRawEvent.cxx.

References fdData.

Member Function Documentation

◆ Clear()

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

Method called by the event owner (analysis step) to clear the event element.

Definition at line 39 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

◆ GetColumns()

Int_t TYYYRawEvent::GetColumns ( ) const
inline

Definition at line 44 of file TYYYRawEvent.h.

References fiColumns.

◆ PrintEvent()

void TYYYRawEvent::PrintEvent ( )
overridevirtual

Method prints content of the event.

Reimplemented from TGo4EventElement.

Definition at line 66 of file TYYYRawEvent.cxx.

References fdData, fiColumns, and TGo4EventElement::PrintEvent().

◆ ReAllocate()

void TYYYRawEvent::ReAllocate ( Int_t newsize)

Expand data field if necessary.

Definition at line 45 of file TYYYRawEvent.cxx.

References fdData, fiAllocated, fiColumns, and TGo4Log::Info().

Field Documentation

◆ fdData

Double_t* TYYYRawEvent::fdData {nullptr}

Definition at line 49 of file TYYYRawEvent.h.

Referenced by ~TYYYRawEvent(), Clear(), PrintEvent(), and ReAllocate().

◆ fiAllocated

Int_t TYYYRawEvent::fiAllocated {0}

Definition at line 51 of file TYYYRawEvent.h.

Referenced by ReAllocate().

◆ fiColumns

Int_t TYYYRawEvent::fiColumns {0}

Definition at line 47 of file TYYYRawEvent.h.

Referenced by Clear(), GetColumns(), PrintEvent(), and ReAllocate().


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