#include <TGo4DynamicEntry.h>
Inheritance diagram for TGo4DynamicEntry:
Public Methods | |
TGo4DynamicEntry () | |
default ctor for streamer. More... | |
TGo4DynamicEntry (const Text_t *name) | |
virtual | ~TGo4DynamicEntry () |
virtual Int_t | Process ()=0 |
Process the dynamic entry. More... | |
void | EnableProcessing (Bool_t on=kTRUE) |
Switch the autoprocessing state of this entry. More... | |
virtual TGo4DynamicEntryStatus * | CreateStatus ()=0 |
Create a status object containing information such as the object names. More... | |
virtual void | SetStatus (TGo4DynamicEntryStatus *state) |
Set this dynamic entry to the values of status object state. More... | |
virtual void | Reset () |
Resets this entry to an initial status. More... | |
virtual void | InitPointers () |
Initialize the pointers to external objects. More... | |
void | SetConditionName (const Text_t *name) |
Set name of the external condition to be referenced. More... | |
virtual void | CleanupCondition (TGo4Condition *con) |
If condition con matches the internal condition, the reference to internal condition will be reset to 0. More... | |
virtual void | CleanupEvent (TGo4EventElement *ev) |
If event ev matches one internal event, the reference to event will be reset to 0. More... | |
virtual void | CleanupHistogram (TH1 *his) |
If histogram his matches the internal histogram, the reference to internal histogram will be reset to 0. More... | |
Bool_t | TestCondition () |
Test if condition for this entry is true. More... | |
void | SetConVarName (UInt_t ix, const Text_t *name) |
Set Name of the data value (eventclass member) that is to be tested by condition for axis number ix. More... | |
void | SetConEventName (UInt_t ix, const Text_t *name) |
Set Name of the eventstructure object that is to be tested by the condition for axis number ix. More... | |
Static Public Attributes | |
const Text_t | fgcNOCONDITION [] = "No Condition" |
Text to indicate that no condition is used. More... | |
const Text_t | fgcNODATA [] = "No Data" |
Text to indicate that no condition is used. More... | |
const Text_t | fgcNOEVENT [] = "No Event" |
Text to indicate that no condition is used. More... | |
const UInt_t | fguMAXCONDIMENSION = __MAXCONDIM__ |
maximum dimension for condition variable array. More... | |
Protected Methods | |
virtual void | UpdateStatus (TGo4DynamicEntryStatus *state) |
Update the status object containing information such as the object names. More... | |
TDataMember * | FindDataMember (TClass *eventclass, const Text_t *memname, Long_t *totaloffset) |
Find out address totaloffset of datamember memname relative to "this" pointer of eventclass object. More... | |
Int_t | Membersize (const Text_t *name) |
find out size of type "name" on runtime for all supported types. More... | |
Protected Attributes | |
Bool_t | fbProcessEntry |
True if object shall be processed by main event loop automatically. More... | |
Bool_t | fbPointerInitDone |
True if pointers to external objects have already been initialized. More... | |
Private Attributes | |
TGo4Condition * | fxCondition |
Condition to be checked on processing this entry. More... | |
TString | fxConditionName |
Name of the condition to be applied for this entry. More... | |
TString | fxConVarName [__MAXCONDIM__] |
Name of the eventstructure datamembers that shall be tested with the condition. More... | |
TString | fxConEventName [__MAXCONDIM__] |
Array of names of the events which contain the data members to be tested with the x,y coordinates of the condition. More... | |
TGo4EventElement * | fxConEvent [__MAXCONDIM__] |
Array of pointers to the event structure that contains the data for the condition test. More... | |
Float_t * | fxConDataFloat [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
Double_t * | fxConDataDouble [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
Int_t * | fxConDataInt [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
Short_t * | fxConDataShort [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
Char_t * | fxConDataChar [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
Long_t * | fxConDataLong [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
Bool_t * | fxConDataBool [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
UInt_t * | fxConDataUInt [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
UShort_t * | fxConDataUShort [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
UChar_t * | fxConDataUChar [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... | |
ULong_t * | fxConDataULong [__MAXCONDIM__] |
Array of pointers to the data that is tested against condition. More... |
The Dynamic list itself is a dynamic entry, too; thus the analysis can handle a dynamic list containing dynamic sub-lists of histograms. @interface
Definition at line 39 of file TGo4DynamicEntry.h.
|
default ctor for streamer.
Definition at line 35 of file TGo4DynamicEntry.cxx. References TRACE. |
|
Definition at line 51 of file TGo4DynamicEntry.cxx. References fgcNOCONDITION, fgcNODATA, fgcNOEVENT, fguMAXCONDIMENSION, fxConditionName, Reset(), SetConEventName(), SetConVarName(), and TRACE. |
|
Definition at line 66 of file TGo4DynamicEntry.cxx. References TRACE. |
|
Process the dynamic entry.
Implemented in TGo4DynamicList, TGo4HistogramEntry, and TGo4TreeHistogramEntry. Referenced by TGo4DynamicList::Process(). |
|
Switch the autoprocessing state of this entry.
Definition at line 65 of file TGo4DynamicEntry.h. References fbProcessEntry. Referenced by TGo4DynamicListException::Handle(), SetStatus(), and TGo4TreeHistogramEntry::TGo4TreeHistogramEntry(). |
|
Create a status object containing information such as the object names. Can be sent to the Display to show the existing objects and their relations. Memento mechanism is _not_ provided here, since we would not change the object names afterwards. Implemented in TGo4DynamicList, TGo4HistogramEntry, and TGo4TreeHistogramEntry. Referenced by TGo4EditDynEntrySlots::AddObject(), TGo4DynamicList::CreateEntryStatus(), and TGo4DynamicList::UpdateStatus(). |
|
Set this dynamic entry to the values of status object state.
Reimplemented in TGo4DynamicList, TGo4HistogramEntry, and TGo4TreeHistogramEntry. Definition at line 359 of file TGo4DynamicEntry.cxx. References TGo4DynamicEntryStatus::AutoProcessIsEnabled(), EnableProcessing(), fguMAXCONDIMENSION, TGo4DynamicEntryStatus::GetConditionName(), TGo4DynamicEntryStatus::GetConEventName(), TGo4DynamicEntryStatus::GetConVarName(), i, Reset(), SetConditionName(), SetConEventName(), SetConVarName(), and TRACE. Referenced by TGo4DynamicList::SetEntryStatus(), TGo4TreeHistogramEntry::SetStatus(), TGo4HistogramEntry::SetStatus(), and TGo4DynamicList::SetStatus(). |
|
Resets this entry to an initial status.
Reimplemented in TGo4DynamicList, TGo4HistogramEntry, and TGo4TreeHistogramEntry. Definition at line 102 of file TGo4DynamicEntry.cxx. References fbPointerInitDone, fguMAXCONDIMENSION, fxConDataBool, fxConDataChar, fxConDataDouble, fxConDataFloat, fxConDataInt, fxConDataLong, fxConDataShort, fxConDataUChar, fxConDataUInt, fxConDataULong, fxConDataUShort, fxCondition, fxConEvent, and TRACE. Referenced by CleanupCondition(), CleanupEvent(), TGo4AnalysisObjectManager::ClearObjects(), InitPointers(), TGo4TreeHistogramEntry::Reset(), TGo4HistogramEntry::Reset(), TGo4DynamicList::Reset(), SetStatus(), and TGo4DynamicEntry(). |
|
Initialize the pointers to external objects. The external objects (e.g. condition, histogram, data) will be searched by name in the Go4 folders. Reimplemented in TGo4HistogramEntry. Definition at line 125 of file TGo4DynamicEntry.cxx. References fbPointerInitDone, fgcNOCONDITION, fgcNODATA, fgcNOEVENT, fguMAXCONDIMENSION, FindDataMember(), fxConDataBool, fxConDataChar, fxConDataDouble, fxConDataFloat, fxConDataInt, fxConDataLong, fxConDataShort, fxConDataUChar, fxConDataUInt, fxConDataULong, fxConDataUShort, fxCondition, fxConditionName, fxConEvent, fxConEventName, fxConVarName, TGo4Analysis::GetAnalysisCondition(), TGo4Analysis::GetEventStructure(), TGo4Analysis::Instance(), Reset(), and TRACE. Referenced by TGo4HistogramEntry::InitPointers(), and TestCondition(). |
|
Set name of the external condition to be referenced.
Definition at line 354 of file TGo4DynamicEntry.cxx. References fxConditionName. Referenced by SetStatus(). |
|
If condition con matches the internal condition, the reference to internal condition will be reset to 0. This is used when external condition is deleted to avoid dead pointers. Reimplemented in TGo4DynamicList. Definition at line 95 of file TGo4DynamicEntry.cxx. References fxCondition, Reset(), and TRACE. Referenced by TGo4DynamicList::CleanupCondition(). |
|
If event ev matches one internal event, the reference to event will be reset to 0. This is used when external event is deleted to avoid dead pointers. May be overloaded if subclasses also keep pointers to event structures. Reimplemented in TGo4DynamicList, and TGo4HistogramEntry. Definition at line 374 of file TGo4DynamicEntry.cxx. References fguMAXCONDIMENSION, fxConEvent, Reset(), and TRACE. Referenced by TGo4HistogramEntry::CleanupEvent(), and TGo4DynamicList::CleanupEvent(). |
|
If histogram his matches the internal histogram, the reference to internal histogram will be reset to 0. This is used when external histogram is deleted to avoid dead pointers. Dummy implementation here! Reimplemented in TGo4DynamicList, and TGo4HistogramEntry. Definition at line 387 of file TGo4DynamicEntry.cxx. Referenced by TGo4HistogramEntry::CleanupHistogram(), and TGo4DynamicList::CleanupHistogram(). |
|
Test if condition for this entry is true.
Definition at line 262 of file TGo4DynamicEntry.cxx. References fbPointerInitDone, fguMAXCONDIMENSION, fxConDataBool, fxConDataChar, fxConDataDouble, fxConDataFloat, fxConDataInt, fxConDataLong, fxConDataShort, fxConDataUChar, fxConDataUInt, fxConDataULong, fxConDataUShort, fxCondition, TGo4Condition::GetLast(), InitPointers(), TGo4Condition::Test(), and TRACE. Referenced by TGo4HistogramEntry::Process(). |
|
Set Name of the data value (eventclass member) that is to be tested by condition for axis number ix. ix is 0 for x-axis, 1 for y-axis, etc. Definition at line 342 of file TGo4DynamicEntry.cxx. References fguMAXCONDIMENSION, fxConVarName, and TRACE. Referenced by SetStatus(), and TGo4DynamicEntry(). |
|
Set Name of the eventstructure object that is to be tested by the condition for axis number ix. ix is 0 for x-axis, 1 for y-axis, etc. Definition at line 348 of file TGo4DynamicEntry.cxx. References fguMAXCONDIMENSION, fxConEventName, and TRACE. Referenced by SetStatus(), and TGo4DynamicEntry(). |
|
Update the status object containing information such as the object names. Can be sent to the Display to show the existing objects and their relations. Memento mechanism is _not_ provided here, since we would not change the object names afterwards. Reimplemented in TGo4DynamicList, TGo4HistogramEntry, and TGo4TreeHistogramEntry. Definition at line 73 of file TGo4DynamicEntry.cxx. References fbPointerInitDone, fbProcessEntry, fxCondition, TGo4DynamicEntryStatus::fxConditionClass, fxConditionName, TGo4DynamicEntryStatus::fxConditionName, fxConEventName, fxConVarName, TGo4DynamicEntryStatus::SetCondition(), TGo4DynamicEntryStatus::SetConEventNames(), TGo4DynamicEntryStatus::SetConVarNames(), TGo4DynamicEntryStatus::SetFlags(), and TRACE. Referenced by TGo4TreeHistogramEntry::UpdateStatus(), TGo4HistogramEntry::UpdateStatus(), and TGo4DynamicList::UpdateStatus(). |
|
Find out address totaloffset of datamember memname relative to "this" pointer of eventclass object. Datamember object is returned. This method is able to treat inherited members. Later on, also aggregates? Definition at line 393 of file TGo4DynamicEntry.cxx. References Membersize(), and TRACE. Referenced by TGo4HistogramEntry::InitPointers(), and InitPointers(). |
|
find out size of type "name" on runtime for all supported types.
Definition at line 493 of file TGo4DynamicEntry.cxx. Referenced by FindDataMember(). |
|
Text to indicate that no condition is used.
Definition at line 30 of file TGo4DynamicEntry.cxx. Referenced by TGo4HistogramEntry::InitPointers(), InitPointers(), TGo4HistogramEntryStatus::ResetNames(), TGo4DynamicEntryStatus::ResetNames(), TGo4EditDynEntryStatus::SetConditionEnabled(), TGo4DynamicEntry(), and TGo4HistogramEntry::TGo4HistogramEntry(). |
|
Text to indicate that no condition is used.
Definition at line 31 of file TGo4DynamicEntry.cxx. Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4HistogramEntry::InitPointers(), InitPointers(), TGo4HistogramEntryStatus::ResetNames(), TGo4DynamicEntryStatus::ResetNames(), TGo4EditDynEntryStatus::SetConditionYEnabled(), TGo4EditDynEntryStatus::SetHisYEnabled(), TGo4EditDynEntryStatus::SetHisZEnabled(), TGo4DynamicEntry(), and TGo4HistogramEntry::TGo4HistogramEntry(). |
|
Text to indicate that no condition is used.
Definition at line 32 of file TGo4DynamicEntry.cxx. Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4HistogramEntry::InitPointers(), InitPointers(), TGo4HistogramEntryStatus::ResetNames(), TGo4DynamicEntryStatus::ResetNames(), TGo4EditDynEntryStatus::SetConditionYEnabled(), TGo4EditDynEntryStatus::SetHisYEnabled(), TGo4EditDynEntryStatus::SetHisZEnabled(), TGo4DynamicEntry(), and TGo4HistogramEntry::TGo4HistogramEntry(). |
|
maximum dimension for condition variable array.
Definition at line 33 of file TGo4DynamicEntry.cxx. Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), CleanupEvent(), TGo4DynamicEntryStatus::GetConEventName(), TGo4DynamicEntryStatus::GetConVarName(), InitPointers(), Reset(), TGo4DynamicEntryStatus::ResetNames(), TGo4DynamicEntryStatus::SetConEventName(), SetConEventName(), TGo4DynamicEntryStatus::SetConEventNames(), TGo4DynamicEntryStatus::SetConVarName(), SetConVarName(), TGo4DynamicEntryStatus::SetConVarNames(), SetStatus(), TestCondition(), and TGo4DynamicEntry(). |
|
True if object shall be processed by main event loop automatically. For example, histogram autofill from event index values. Definition at line 137 of file TGo4DynamicEntry.h. Referenced by EnableProcessing(), TGo4TreeHistogramEntry::Process(), TGo4HistogramEntry::Process(), and UpdateStatus(). |
|
True if pointers to external objects have already been initialized. Flag is set by InitPointers() and reset by Reset(). Definition at line 141 of file TGo4DynamicEntry.h. Referenced by TGo4HistogramEntry::InitPointers(), InitPointers(), TGo4HistogramEntry::Process(), Reset(), TestCondition(), and UpdateStatus(). |
|
Condition to be checked on processing this entry.
Definition at line 146 of file TGo4DynamicEntry.h. Referenced by CleanupCondition(), InitPointers(), Reset(), TestCondition(), and UpdateStatus(). |
|
Name of the condition to be applied for this entry.
Definition at line 149 of file TGo4DynamicEntry.h. Referenced by InitPointers(), SetConditionName(), TGo4DynamicEntry(), and UpdateStatus(). |
|
Name of the eventstructure datamembers that shall be tested with the condition.
Definition at line 153 of file TGo4DynamicEntry.h. Referenced by InitPointers(), SetConVarName(), and UpdateStatus(). |
|
Array of names of the events which contain the data members to be tested with the x,y coordinates of the condition.
Definition at line 158 of file TGo4DynamicEntry.h. Referenced by InitPointers(), SetConEventName(), and UpdateStatus(). |
|
Array of pointers to the event structure that contains the data for the condition test.
Definition at line 162 of file TGo4DynamicEntry.h. Referenced by CleanupEvent(), InitPointers(), and Reset(). |
|
Array of pointers to the data that is tested against condition. Used if data is Float_t Definition at line 166 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Double_t Definition at line 170 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Int_t Definition at line 174 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Short_t Definition at line 178 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Char_t Definition at line 182 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Long_t Definition at line 186 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Bool_t Definition at line 190 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is UInt_t Definition at line 194 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is UShort_t Definition at line 198 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is UChar_t Definition at line 202 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |
|
Array of pointers to the data that is tested against condition. Used if data is Long_t Definition at line 206 of file TGo4DynamicEntry.h. Referenced by InitPointers(), Reset(), and TestCondition(). |