GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Example for user defined raw event class. More...
#include <TYYYRawEvent.h>
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. | |
![]() | |
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 TGo4EventElement * | GetChild (const char *name) |
TGo4EventSource * | GetEventSource () const |
virtual Short_t | getId () |
TGo4EventElement * | GetParent () 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 TGo4EventElement & | operator[] (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 | |
![]() | |
Bool_t | fbKeepContents {kFALSE} |
Debug level. | |
Bool_t | fDebug {kFALSE} |
Short_t | fIdentifier {-1} |
Example for user defined raw event class.
This event structure corresponds to the user event source.
Definition at line 23 of file TYYYRawEvent.h.
TYYYRawEvent::TYYYRawEvent | ( | ) |
Definition at line 20 of file TYYYRawEvent.cxx.
References TGo4EventElement::TGo4EventElement().
TYYYRawEvent::TYYYRawEvent | ( | const char * | name | ) |
Definition at line 26 of file TYYYRawEvent.cxx.
References TGo4EventElement::TGo4EventElement().
|
virtual |
Definition at line 31 of file TYYYRawEvent.cxx.
References fdData.
|
override |
Method called by the event owner (analysis step) to clear the event element.
Definition at line 39 of file TYYYRawEvent.cxx.
|
inline |
Definition at line 44 of file TYYYRawEvent.h.
References fiColumns.
|
overridevirtual |
Method prints content of the event.
Reimplemented from TGo4EventElement.
Definition at line 66 of file TYYYRawEvent.cxx.
References fdData, fiColumns, and TGo4EventElement::PrintEvent().
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().
Double_t* TYYYRawEvent::fdData {nullptr} |
Definition at line 49 of file TYYYRawEvent.h.
Referenced by ~TYYYRawEvent(), Clear(), PrintEvent(), and ReAllocate().
Int_t TYYYRawEvent::fiAllocated {0} |
Definition at line 51 of file TYYYRawEvent.h.
Referenced by ReAllocate().
Int_t TYYYRawEvent::fiColumns {0} |
Definition at line 47 of file TYYYRawEvent.h.
Referenced by Clear(), GetColumns(), PrintEvent(), and ReAllocate().