#include <TGo4EventElement.h>
Inheritance diagram for TGo4EventElement:
Public Methods | |
TGo4EventElement (void) | |
TGo4EventElement (const char *name) | |
TGo4EventElement (const char *aName, const char *aTitle, Short_t aBaseCat=0) | |
virtual | ~TGo4EventElement (void) |
void | SetValid (Bool_t on) |
Switches the valid state of this event. More... | |
Bool_t | IsValid () const |
Returns the valid state of this event. More... | |
void | SetEventSource (TGo4EventSource *src) |
Setter for the event source that is currently used by the Fill method. More... | |
void | SetParent (TGo4EventElement *par) |
Setter for the parent event structure reference. More... | |
TGo4EventElement * | GetParent () const |
TGo4EventSource * | GetEventSource () const |
Bool_t | CheckEventSource (const char *classname) |
Check if event source is valid. More... | |
virtual Char_t | GetDataChar (TGo4EventDataIndex *index) |
Get char (1 byte) data value by user specified index. More... | |
virtual Short_t | GetDataShort (TGo4EventDataIndex *index) |
Get short (2 byte) data value by user specified index. More... | |
virtual Int_t | GetDataInt (TGo4EventDataIndex *index) |
Get integer (4 byte) data value by user specified index. More... | |
virtual Long_t | GetDataLong (TGo4EventDataIndex *index) |
Get long (4 or 8 bytes) integer data value by user specified index. More... | |
virtual Float_t | GetDataFloat (TGo4EventDataIndex *index) |
Get float data value by user specified index. More... | |
virtual Double_t | GetDataDouble (TGo4EventDataIndex *index) |
Get double data value by user specified index. More... | |
virtual Int_t | Fill () |
Method called by the event owner (analysis step) to fill the event element from the set event source. More... | |
virtual Int_t | Init () |
Method called on initialization of event classes. More... | |
virtual void | PrintEvent () |
Method called by the event owner (analysis step) to clear the event element. More... | |
virtual TGo4CompositeEvent * | getSubEventElement () |
virtual void | makeBranch (TBranch *parent) |
virtual Int_t | activateBranch (TBranch *branch, Int_t splitLevel, Int_t init=0) |
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 TGo4EventElement & | operator[] (Int_t) |
Protected Attributes | |
Short_t | fIdentifier |
Bool_t | isComposite |
Bool_t | isActivated |
Bool_t | fDebug |
IO synchrone flag. More... | |
Private Attributes | |
Bool_t | fbIsValid |
Indicates if this event is valid or not. More... | |
TGo4EventElement * | fxParent |
The higher level event element that owns this instance @supplierCardinality 1. More... | |
TGo4EventSource * | fxEventSource |
The external event source instance which is used to fill this event structure from the raw event. More... |
Any event structure consists of eventelements that are linked back to their parent element. The user event class is the top parent level event element; unlimited levels of event elements as subevents might be managed by this user event. The way of subelement organization (e.g. user event class members, TObjArray,...) is not restricted here. @interface
Definition at line 45 of file TGo4EventElement.h.
|
Definition at line 22 of file TGo4EventElement.cxx. References fDebug, fIdentifier, isActivated, isComposite, and TRACE. |
|
Definition at line 35 of file TGo4EventElement.cxx. References fDebug, fIdentifier, isActivated, isComposite, and TRACE. |
|
Definition at line 46 of file TGo4EventElement.cxx. References fDebug, fIdentifier, isActivated, and isComposite. |
|
Definition at line 63 of file TGo4EventElement.cxx. References TRACE. |
|
Switches the valid state of this event.
Definition at line 56 of file TGo4EventElement.h. References fbIsValid. Referenced by TGo4MbsSource::BuildMbsEvent(), TYYYEventSource::BuildYYYEvent(), TMeshFinalEvent::Clear(), TXXXProc::Event(), Init(), TGo4TreeStore::Store(), TMeshUnpackProc::Unpack(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), TXXXAnlProc::XXXEventAnalysis(), and TXXXUnpackProc::XXXUnpack(). |
|
Returns the valid state of this event.
Definition at line 59 of file TGo4EventElement.h. References fbIsValid. Referenced by TGo4HistogramEntry::Process(), and TGo4AnalysisStep::Process(). |
|
Setter for the event source that is currently used by the Fill method.
Definition at line 62 of file TGo4EventElement.h. References fxEventSource. Referenced by main(), TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::NewEventSource(), TGo4AnalysisStep::NewInputEvent(), TGo4AnalysisStep::NewOutputEvent(), and TGo4AnalysisStep::Process(). |
|
Setter for the parent event structure reference.
Definition at line 65 of file TGo4EventElement.h. References fxParent. |
|
Definition at line 67 of file TGo4EventElement.h. References fxParent. |
|
Definition at line 69 of file TGo4EventElement.h. References fxEventSource. Referenced by TGo4SimpleEvent::Fill(), TYYYUnpackEvent::Init(), TYYYRawEvent::Init(), TMeshRawEvent::Init(), TMeshFinalEvent::Init(), TMeshDummyEvent::Init(), TMeshB3OutputEvent::Init(), TMeshB3InputEvent::Init(), TMeshB2OutputEvent::Init(), TMeshB2InputEvent::Init(), TMeshB1OutputEvent::Init(), TMeshB1InputEvent::Init(), TMeshB12OutputEvent::Init(), TXXXUnpackEvent::Init(), TXXXAnlEvent::Init(), TXXXEvent::Init(), and TGo4MbsEvent::Init(). |
|
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. Definition at line 69 of file TGo4EventElement.cxx. References fxEventSource, and TRACE. Referenced by TGo4SimpleEvent::Fill(), TYYYUnpackEvent::Init(), TYYYRawEvent::Init(), TMeshRawEvent::Init(), TMeshFinalEvent::Init(), TMeshDummyEvent::Init(), TMeshB3OutputEvent::Init(), TMeshB3InputEvent::Init(), TMeshB2OutputEvent::Init(), TMeshB2InputEvent::Init(), TMeshB1OutputEvent::Init(), TMeshB1InputEvent::Init(), TMeshB12OutputEvent::Init(), TXXXUnpackEvent::Init(), TXXXAnlEvent::Init(), TXXXEvent::Init(), TGo4MbsEvent::Init(), and TMeshProviderProc::SetRealInput(). |
|
Get char (1 byte) data value by user specified index. Must be re-implemented by subclass to work. Definition at line 82 of file TGo4EventElement.cxx. References TGo4Log::Debug(), and TRACE. |
|
Get short (2 byte) data value by user specified index. Must be re-implemented by subclass to work. Definition at line 90 of file TGo4EventElement.cxx. References TGo4Log::Debug(), and TRACE. |
|
Get integer (4 byte) data value by user specified index. Must be re-implemented by subclass to work. Definition at line 99 of file TGo4EventElement.cxx. References TGo4Log::Debug(), and TRACE. |
|
Get long (4 or 8 bytes) integer data value by user specified index. Must be re-implemented by subclass to work. Definition at line 108 of file TGo4EventElement.cxx. References TGo4Log::Debug(), and TRACE. |
|
Get float data value by user specified index. Must be re-implemented by subclass to work. Definition at line 116 of file TGo4EventElement.cxx. References TGo4Log::Debug(), and TRACE. |
|
Get double data value by user specified index. Must be re-implemented by subclass to work. Definition at line 125 of file TGo4EventElement.cxx. References TGo4Log::Debug(), and TRACE. |
|
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);) Reimplemented in TGo4MbsEvent, TGo4MbsSubEvent, TGo4SimpleEvent, TGo4SimpleSubEvent, TXXXEvent, TXXXAnlEvent, TXXXUnpackEvent, TMeshB12OutputEvent, TMeshB1InputEvent, TMeshB1OutputEvent, TMeshB2InputEvent, TMeshB2OutputEvent, TMeshB3InputEvent, TMeshB3OutputEvent, TMeshDummyEvent, TMeshFinalEvent, TMeshRawEvent, TXXXEvent, TYYYRawEvent, and TYYYUnpackEvent. Definition at line 108 of file TGo4EventElement.h. Referenced by TGo4AnalysisStep::Process(). |
|
Method called on initialization of event classes. User might check the correct type of the eventsource here and assign this to a subclass pointer. Reimplemented in TGo4MbsEvent, TXXXEvent, TXXXAnlEvent, TXXXUnpackEvent, TMeshB12OutputEvent, TMeshB1InputEvent, TMeshB1OutputEvent, TMeshB2InputEvent, TMeshB2OutputEvent, TMeshB3InputEvent, TMeshB3OutputEvent, TMeshDummyEvent, TMeshFinalEvent, TMeshRawEvent, TXXXEvent, TYYYRawEvent, and TYYYUnpackEvent. Definition at line 113 of file TGo4EventElement.h. References SetValid(). Referenced by TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::NewEventSource(), TGo4AnalysisStep::NewInputEvent(), and TGo4AnalysisStep::NewOutputEvent(). |
|
Method called by the event owner (analysis step) to clear the event element.
Reimplemented in TGo4MbsEvent, TGo4MbsSubEvent, TGo4SimpleEvent, TGo4SimpleSubEvent, and TYYYRawEvent. Definition at line 132 of file TGo4EventElement.cxx. References TGo4Log::Debug(), fbIsValid, fxEventSource, and TRACE. Referenced by TGo4ComGetCurrentEvent::ExeCom(), TYYYRawEvent::PrintEvent(), TGo4SimpleEvent::PrintEvent(), TGo4MbsEvent::PrintEvent(), and TGo4EventInfoStatus::PrintEventSample(). |
|
Definition at line 119 of file TGo4EventElement.h. |
|
Reimplemented in TGo4ClonesElement, and TGo4CompositeEvent. Definition at line 154 of file TGo4EventElement.cxx. Referenced by TGo4CompositeEvent::makeBranch(), and TGo4ClonesElement::makeBranch(). |
|
Reimplemented in TGo4ClonesElement, and TGo4CompositeEvent. Definition at line 159 of file TGo4EventElement.cxx. References isActivated. Referenced by TGo4CompositeEvent::activateBranch(), TGo4ClonesElement::activateBranch(), and TGo4CompositeEvent::synchronizeWithTree(). |
|
Reimplemented in TGo4CompositeEvent. Definition at line 177 of file TGo4EventElement.cxx. References gTree. Referenced by TGo4CompositeEvent::deactivate(). |
|
Reimplemented in TGo4CompositeEvent. Definition at line 187 of file TGo4EventElement.cxx. References gTree. Referenced by TGo4CompositeEvent::activate(). |
|
Reimplemented in TGo4ClonesElement, TGo4CompositeEvent, TGo4MbsEvent, TGo4MbsSubEvent, TGo4SimpleEvent, TGo4SimpleSubEvent, TXXXEvent, TXXXAnlEvent, TXXXUnpackEvent, TMeshB12OutputEvent, TMeshB1InputEvent, TMeshB1OutputEvent, TMeshB2InputEvent, TMeshB2OutputEvent, TMeshB3InputEvent, TMeshB3OutputEvent, TMeshDummyEvent, TMeshFinalEvent, TMeshRawEvent, TXXXEvent, TYYYRawEvent, and TYYYUnpackEvent. Definition at line 200 of file TGo4EventElement.cxx. Referenced by TGo4CompositeEvent::Clear(), and TGo4TreeStore::Store(). |
|
Reimplemented in TGo4ClonesElement, and TGo4CompositeEvent. Definition at line 126 of file TGo4EventElement.h. Referenced by TGo4CompositeEvent::clearAll(). |
|
Definition at line 127 of file TGo4EventElement.h. References isComposite. Referenced by TGo4CompositeEvent::getEventElement(), and TGo4CompositeEvent::getListOfComposites(). |
|
Reimplemented in TGo4ClonesElement. Definition at line 128 of file TGo4EventElement.h. References fIdentifier. Referenced by TGo4CompositeEvent::addEventElement(). |
|
Definition at line 129 of file TGo4EventElement.h. References fDebug. |
|
Reimplemented in TGo4CompositeEvent. Definition at line 130 of file TGo4EventElement.h. |
|
Indicates if this event is valid or not. If false, the event store will not write the event. Definition at line 136 of file TGo4EventElement.h. Referenced by IsValid(), PrintEvent(), and SetValid(). |
|
The higher level event element that owns this instance @supplierCardinality 1.
Definition at line 140 of file TGo4EventElement.h. |
|
The external event source instance which is used to fill this event structure from the raw event. Lazy initialization as zero; the pointer is set by analysis only for top level Event Elements with subevents. Might be exchanged on the fly to switch the unpack of different subevents into the same event structure. @supplierCardinality 0..1 Definition at line 148 of file TGo4EventElement.h. Referenced by CheckEventSource(), GetEventSource(), PrintEvent(), and SetEventSource(). |
|
Definition at line 151 of file TGo4EventElement.h. Referenced by getId(), TGo4ClonesElement::getId(), TGo4CompositeEvent::synchronizeWithTree(), and TGo4EventElement(). |
|
Definition at line 152 of file TGo4EventElement.h. Referenced by isComposed(), TGo4CompositeEvent::TGo4CompositeEvent(), and TGo4EventElement(). |
|
Definition at line 153 of file TGo4EventElement.h. Referenced by activateBranch(), and TGo4EventElement(). |
|
IO synchrone flag.
Definition at line 154 of file TGo4EventElement.h. Referenced by setDebug(), and TGo4EventElement(). |