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

Entry for the dynamic list, specialized for histogram like objects. More...

#include <TGo4HistogramEntry.h>

+ Inheritance diagram for TGo4HistogramEntry:

Public Member Functions

 TGo4HistogramEntry ()
 
 TGo4HistogramEntry (const char *name)
 
virtual ~TGo4HistogramEntry ()
 
const char * GetConditionName () const
 
const char * GetConEventName (Int_t ix) const
 
const char * GetConVarName (Int_t ix) const
 
const char * GetHistEventName (Int_t ix) const
 
const char * GetHistogramName () const
 Get name of the external histogram to be filled.
 
const char * GetHistVarName (Int_t ix) const
 
Bool_t NeedInitialisation () const
 
void Print (Option_t *opt="") const override
 
void RecursiveRemove (TObject *obj) override
 
void Reset () override
 Resets this entry to an initial status.
 
void SetConditionName (const char *name)
 Set name of the external condition to be referenced.
 
void SetConEventName (Int_t ix, const char *name)
 Set Name of the eventstructure object that is to be tested by the condition for axis number ix.
 
void SetConVarName (Int_t ix, const char *name)
 Set Name of the data value (eventclass member) that is to be tested by condition for axis number ix.
 
void SetHisEventName (Int_t ix, const char *name)
 Set Name of the event object that contains the data to be filled in histogram, for axis number ix.
 
void SetHistogramName (const char *name)
 Set name of the external histogram to be filled.
 
void SetHisVarName (Int_t ix, const char *name)
 Set Name of the data member that is to be filled in histogram for axis number ix.
 
void SetNeedInitialisation (Bool_t on=kTRUE)
 
- Public Member Functions inherited from TGo4DynamicEntry
 TGo4DynamicEntry ()
 default ctor for streamer.
 
 TGo4DynamicEntry (const char *name, const char *title="This is a Go4 dynamic entry")
 
virtual ~TGo4DynamicEntry ()
 
void EnableProcessing (Bool_t on=kTRUE)
 Switch the autoprocessing state of this entry.
 
Bool_t IsEnabledProcessing () const
 

Static Public Member Functions

static const char * Get_fgcNOCONDITION ()
 
static const char * Get_fgcNODATA ()
 
static const char * Get_fgcNOEVENT ()
 

Protected Member Functions

Double_t GetPtrValue (Int_t type, void *ptr)
 
void InitCondPointer (Int_t ix, TObject *event, TDataMember *member, Long_t offset)
 
void InitHistPointer (Int_t ix, TObject *event, TDataMember *member, Long_t offset)
 
void ProcessNew (Bool_t *evvalid)
 
Bool_t TestConditionNew ()
 

Private Attributes

Bool_t fbNeedInitialisation {kFALSE}
 
TGo4ConditionfxCondition {nullptr}
 Condition to be checked on processing this entry.
 
TString fxConditionName
 Name of the condition to be applied for this entry.
 
void * fxCondPtr [__MAXCONDIM__] = { nullptr, nullptr }
 
Int_t fxCondType [__MAXCONDIM__] = { 0, 0 }
 Array of pointers and data types to check condition.
 
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.
 
TObject * fxConEvents [__MAXCONDIM__] = { nullptr, nullptr }
 Array of pointers to the event structure that contains the data for the condition test.
 
TString fxConVarName [__MAXCONDIM__]
 Name of the eventstructure datamembers that shall be tested with the condition.
 
TString fxHisEventName [__MAXHISDIM__]
 Array of names of the events which contain the data members to be filled into the x,y,z,.
 
TObject * fxHisEvents [__MAXHISDIM__] = { nullptr, nullptr, nullptr }
 Pointer for event objects, class does not known to entry itself.
 
TH1 * fxHistogram {nullptr}
 The (histogram) object kept by this entry.
 
TString fxHistogramName
 Title of the analysis object, for example a histogram.
 
void * fxHistPtr [__MAXHISDIM__] = { nullptr, nullptr, nullptr }
 
Int_t fxHistType [__MAXHISDIM__] = { 0, 0, 0 }
 Array of pointers and data types to fill histogram.
 
TString fxHisVarName [__MAXHISDIM__]
 Array of names of the x,y,z,.
 

Static Private Attributes

static const char * fgcNOCONDITION = "No Condition"
 Text to indicate that no condition is used.
 
static const char * fgcNODATA = "No Data"
 Text to indicate that no condition is used.
 
static const char * fgcNOEVENT = "No Event"
 Text to indicate that no condition is used.
 

Friends

class TGo4DynamicList
 

Additional Inherited Members

- Protected Attributes inherited from TGo4DynamicEntry
Bool_t fbProcessEntry {kFALSE}
 True if object shall be processed by main event loop automatically.
 

Detailed Description

Entry for the dynamic list, specialized for histogram like objects.

Author
J. Adamczewski
Since
1/2001

Definition at line 33 of file TGo4HistogramEntry.h.

Constructor & Destructor Documentation

◆ TGo4HistogramEntry() [1/2]

TGo4HistogramEntry::TGo4HistogramEntry ( )

◆ TGo4HistogramEntry() [2/2]

◆ ~TGo4HistogramEntry()

TGo4HistogramEntry::~TGo4HistogramEntry ( )
virtual

Definition at line 60 of file TGo4HistogramEntry.cxx.

Member Function Documentation

◆ Get_fgcNOCONDITION()

const char * TGo4HistogramEntry::Get_fgcNOCONDITION ( )
static

Definition at line 288 of file TGo4HistogramEntry.cxx.

References fgcNOCONDITION.

◆ Get_fgcNODATA()

const char * TGo4HistogramEntry::Get_fgcNODATA ( )
static

Definition at line 293 of file TGo4HistogramEntry.cxx.

References fgcNODATA.

Referenced by TGo4DynamicList::ProcessHEntry().

◆ Get_fgcNOEVENT()

const char * TGo4HistogramEntry::Get_fgcNOEVENT ( )
static

Definition at line 298 of file TGo4HistogramEntry.cxx.

References fgcNOEVENT.

Referenced by TGo4DynamicList::ProcessHEntry().

◆ GetConditionName()

const char * TGo4HistogramEntry::GetConditionName ( ) const
inline

◆ GetConEventName()

const char * TGo4HistogramEntry::GetConEventName ( Int_t ix) const

◆ GetConVarName()

const char * TGo4HistogramEntry::GetConVarName ( Int_t ix) const

◆ GetHistEventName()

const char * TGo4HistogramEntry::GetHistEventName ( Int_t ix) const

◆ GetHistogramName()

const char * TGo4HistogramEntry::GetHistogramName ( ) const
inline

Get name of the external histogram to be filled.

Definition at line 48 of file TGo4HistogramEntry.h.

References fxHistogramName.

Referenced by TGo4EditDynEntry::PrepareEntryForAnalysis(), Print(), TGo4DynamicList::ProcessHEntry(), and TGo4EditDynEntry::RefreshWidget().

◆ GetHistVarName()

const char * TGo4HistogramEntry::GetHistVarName ( Int_t ix) const

◆ GetPtrValue()

Double_t TGo4HistogramEntry::GetPtrValue ( Int_t type,
void * ptr )
protected

Definition at line 149 of file TGo4HistogramEntry.cxx.

Referenced by ProcessNew(), and TestConditionNew().

◆ InitCondPointer()

void TGo4HistogramEntry::InitCondPointer ( Int_t ix,
TObject * event,
TDataMember * member,
Long_t offset )
protected

Definition at line 139 of file TGo4HistogramEntry.cxx.

References __MAXCONDIM__, fxCondPtr, fxCondType, and fxConEvents.

Referenced by TGo4DynamicList::ProcessHEntry().

◆ InitHistPointer()

void TGo4HistogramEntry::InitHistPointer ( Int_t ix,
TObject * event,
TDataMember * member,
Long_t offset )
protected

Definition at line 129 of file TGo4HistogramEntry.cxx.

References __MAXHISDIM__, fxHisEvents, fxHistPtr, and fxHistType.

Referenced by TGo4DynamicList::ProcessHEntry().

◆ NeedInitialisation()

Bool_t TGo4HistogramEntry::NeedInitialisation ( ) const
inline

Definition at line 78 of file TGo4HistogramEntry.h.

References fbNeedInitialisation.

Referenced by TGo4DynamicList::ProcessHEntry().

◆ Print()

void TGo4HistogramEntry::Print ( Option_t * opt = "") const
override

◆ ProcessNew()

void TGo4HistogramEntry::ProcessNew ( Bool_t * evvalid)
protected

◆ RecursiveRemove()

void TGo4HistogramEntry::RecursiveRemove ( TObject * obj)
override

◆ Reset()

void TGo4HistogramEntry::Reset ( )
overridevirtual

Resets this entry to an initial status.

Implements TGo4DynamicEntry.

Definition at line 110 of file TGo4HistogramEntry.cxx.

References __MAXCONDIM__, __MAXHISDIM__, fbNeedInitialisation, fxCondition, fxCondPtr, fxCondType, fxConEvents, fxHisEvents, fxHistogram, fxHistPtr, and fxHistType.

Referenced by TGo4HistogramEntry(), and RecursiveRemove().

◆ SetConditionName()

void TGo4HistogramEntry::SetConditionName ( const char * name)
inline

Set name of the external condition to be referenced.

Definition at line 63 of file TGo4HistogramEntry.h.

References fxConditionName.

Referenced by TGo4EditDynEntry::PrepareEntryForAnalysis().

◆ SetConEventName()

void TGo4HistogramEntry::SetConEventName ( Int_t ix,
const char * name )

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 98 of file TGo4HistogramEntry.cxx.

References __MAXCONDIM__, fxConEventName, and GO4TRACE.

Referenced by TGo4HistogramEntry().

◆ SetConVarName()

void TGo4HistogramEntry::SetConVarName ( Int_t ix,
const char * name )

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 86 of file TGo4HistogramEntry.cxx.

References __MAXCONDIM__, fxConVarName, and GO4TRACE.

Referenced by TGo4HistogramEntry().

◆ SetHisEventName()

void TGo4HistogramEntry::SetHisEventName ( Int_t ix,
const char * name )

Set Name of the event object that contains the data to be filled in histogram, for axis number ix.

ix is 0 for x-axis, 1 for y-axis, etc.

Definition at line 75 of file TGo4HistogramEntry.cxx.

References __MAXHISDIM__, and fxHisEventName.

Referenced by TGo4HistogramEntry().

◆ SetHistogramName()

void TGo4HistogramEntry::SetHistogramName ( const char * name)
inline

Set name of the external histogram to be filled.

Definition at line 46 of file TGo4HistogramEntry.h.

References fxHistogramName.

Referenced by TGo4EditDynEntry::DropHistogram(), and TGo4EditDynEntry::PrepareEntryForAnalysis().

◆ SetHisVarName()

void TGo4HistogramEntry::SetHisVarName ( Int_t ix,
const char * name )

Set Name of the data member that is to be filled in histogram for axis number ix.

ix is 0 for x-axis, 1 for y-axis, etc.

Definition at line 64 of file TGo4HistogramEntry.cxx.

References __MAXHISDIM__, and fxHisVarName.

Referenced by TGo4HistogramEntry().

◆ SetNeedInitialisation()

void TGo4HistogramEntry::SetNeedInitialisation ( Bool_t on = kTRUE)
inline

Definition at line 79 of file TGo4HistogramEntry.h.

References fbNeedInitialisation.

Referenced by TGo4DynamicList::ProcessHEntry().

◆ TestConditionNew()

Bool_t TGo4HistogramEntry::TestConditionNew ( )
protected

Definition at line 171 of file TGo4HistogramEntry.cxx.

References __MAXCONDIM__, fxCondition, fxCondPtr, fxCondType, and GetPtrValue().

Referenced by ProcessNew().

Friends And Related Symbol Documentation

◆ TGo4DynamicList

friend class TGo4DynamicList
friend

Definition at line 35 of file TGo4HistogramEntry.h.

References TGo4DynamicList.

Referenced by TGo4DynamicList.

Field Documentation

◆ fbNeedInitialisation

Bool_t TGo4HistogramEntry::fbNeedInitialisation {kFALSE}
private

◆ fgcNOCONDITION

const char * TGo4HistogramEntry::fgcNOCONDITION = "No Condition"
staticprivate

Text to indicate that no condition is used.

Definition at line 154 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), and Get_fgcNOCONDITION().

◆ fgcNODATA

const char * TGo4HistogramEntry::fgcNODATA = "No Data"
staticprivate

Text to indicate that no condition is used.

Definition at line 156 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), and Get_fgcNODATA().

◆ fgcNOEVENT

const char * TGo4HistogramEntry::fgcNOEVENT = "No Event"
staticprivate

Text to indicate that no condition is used.

Definition at line 158 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), and Get_fgcNOEVENT().

◆ fxCondition

TGo4Condition* TGo4HistogramEntry::fxCondition {nullptr}
private

Condition to be checked on processing this entry.

Definition at line 134 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), TGo4HistogramEntry(), TGo4DynamicList::ProcessHEntry(), RecursiveRemove(), Reset(), and TestConditionNew().

◆ fxConditionName

TString TGo4HistogramEntry::fxConditionName
private

Name of the condition to be applied for this entry.

Definition at line 119 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), GetConditionName(), and SetConditionName().

◆ fxCondPtr

void* TGo4HistogramEntry::fxCondPtr[__MAXCONDIM__] = { nullptr, nullptr }
private

Definition at line 151 of file TGo4HistogramEntry.h.

Referenced by InitCondPointer(), Reset(), and TestConditionNew().

◆ fxCondType

Int_t TGo4HistogramEntry::fxCondType[__MAXCONDIM__] = { 0, 0 }
private

Array of pointers and data types to check condition.

Definition at line 150 of file TGo4HistogramEntry.h.

Referenced by InitCondPointer(), Reset(), and TestConditionNew().

◆ fxConEventName

TString TGo4HistogramEntry::fxConEventName[__MAXCONDIM__]
private

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 128 of file TGo4HistogramEntry.h.

Referenced by GetConEventName(), and SetConEventName().

◆ fxConEvents

TObject* TGo4HistogramEntry::fxConEvents[__MAXCONDIM__] = { nullptr, nullptr }
private

Array of pointers to the event structure that contains the data for the condition test.

Definition at line 143 of file TGo4HistogramEntry.h.

Referenced by InitCondPointer(), RecursiveRemove(), and Reset().

◆ fxConVarName

TString TGo4HistogramEntry::fxConVarName[__MAXCONDIM__]
private

Name of the eventstructure datamembers that shall be tested with the condition.

Definition at line 123 of file TGo4HistogramEntry.h.

Referenced by GetConVarName(), and SetConVarName().

◆ fxHisEventName

TString TGo4HistogramEntry::fxHisEventName[__MAXHISDIM__]
private

Array of names of the events which contain the data members to be filled into the x,y,z,.

. coordinates.

Definition at line 116 of file TGo4HistogramEntry.h.

Referenced by GetHistEventName(), and SetHisEventName().

◆ fxHisEvents

TObject* TGo4HistogramEntry::fxHisEvents[__MAXHISDIM__] = { nullptr, nullptr, nullptr }
private

Pointer for event objects, class does not known to entry itself.

Definition at line 139 of file TGo4HistogramEntry.h.

Referenced by InitHistPointer(), TGo4DynamicList::ProcessHEntry(), RecursiveRemove(), and Reset().

◆ fxHistogram

TH1* TGo4HistogramEntry::fxHistogram {nullptr}
private

The (histogram) object kept by this entry.

Definition at line 131 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), TGo4HistogramEntry(), TGo4DynamicList::ProcessHEntry(), ProcessNew(), RecursiveRemove(), and Reset().

◆ fxHistogramName

TString TGo4HistogramEntry::fxHistogramName
private

Title of the analysis object, for example a histogram.

Definition at line 109 of file TGo4HistogramEntry.h.

Referenced by TGo4HistogramEntry(), GetHistogramName(), and SetHistogramName().

◆ fxHistPtr

void* TGo4HistogramEntry::fxHistPtr[__MAXHISDIM__] = { nullptr, nullptr, nullptr }
private

Definition at line 147 of file TGo4HistogramEntry.h.

Referenced by InitHistPointer(), ProcessNew(), and Reset().

◆ fxHistType

Int_t TGo4HistogramEntry::fxHistType[__MAXHISDIM__] = { 0, 0, 0 }
private

Array of pointers and data types to fill histogram.

Definition at line 146 of file TGo4HistogramEntry.h.

Referenced by InitHistPointer(), ProcessNew(), and Reset().

◆ fxHisVarName

TString TGo4HistogramEntry::fxHisVarName[__MAXHISDIM__]
private

Array of names of the x,y,z,.

. coordinate data members.

Definition at line 112 of file TGo4HistogramEntry.h.

Referenced by GetHistVarName(), and SetHisVarName().


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