Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | Friends

TGo4HistogramEntry Class Reference

#include <TGo4HistogramEntry.h>

Inheritance diagram for TGo4HistogramEntry:
TGo4DynamicEntry

List of all members.

Public Member Functions

 TGo4HistogramEntry ()
 TGo4HistogramEntry (const char *name)
virtual ~TGo4HistogramEntry ()
void SetHistogramName (const char *name)
const char * GetHistogramName () const
void SetHisVarName (Int_t ix, const char *name)
const char * GetHistVarName (Int_t ix) const
void SetHisEventName (Int_t ix, const char *name)
const char * GetHistEventName (Int_t ix) const
void SetConditionName (const char *name)
const char * GetConditionName () const
void SetConVarName (Int_t ix, const char *name)
const char * GetConVarName (Int_t ix) const
void SetConEventName (Int_t ix, const char *name)
const char * GetConEventName (Int_t ix) const
Bool_t NeedInitialisation () const
void SetNeedInitialisation (Bool_t on=kTRUE)
virtual void Reset ()
virtual void Print (Option_t *dummy="") const
virtual void RecursiveRemove (TObject *obj)

Static Public Member Functions

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

Protected Member Functions

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

Private Attributes

TString fxHistogramName
TString fxHisVarName [__MAXHISDIM__]
TString fxHisEventName [__MAXHISDIM__]
TString fxConditionName
TString fxConVarName [__MAXCONDIM__]
TString fxConEventName [__MAXCONDIM__]
TH1 * fxHistogram
TGo4ConditionfxCondition
Bool_t fbNeedInitialisation
TObject * fxHisEvents [__MAXHISDIM__]
TObject * fxConEvents [__MAXCONDIM__]
Int_t fxHistType [__MAXHISDIM__]
void * fxHistPtr [__MAXHISDIM__]
Int_t fxCondType [__MAXCONDIM__]
void * fxCondPtr [__MAXCONDIM__]

Static Private Attributes

static const char * fgcNOCONDITION = "No Condition"
static const char * fgcNODATA = "No Data"
static const char * fgcNOEVENT = "No Event"

Friends

class TGo4DynamicList

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::TGo4HistogramEntry (  ) 

Definition at line 34 of file TGo4HistogramEntry.cxx.

TGo4HistogramEntry::TGo4HistogramEntry ( const char *  name  ) 
TGo4HistogramEntry::~TGo4HistogramEntry (  )  [virtual]

Definition at line 63 of file TGo4HistogramEntry.cxx.


Member Function Documentation

const char * TGo4HistogramEntry::Get_fgcNOCONDITION (  )  [static]

Definition at line 295 of file TGo4HistogramEntry.cxx.

References fgcNOCONDITION.

const char * TGo4HistogramEntry::Get_fgcNODATA (  )  [static]

Definition at line 300 of file TGo4HistogramEntry.cxx.

References fgcNODATA.

Referenced by TGo4DynamicList::ProcessHEntry().

const char * TGo4HistogramEntry::Get_fgcNOEVENT (  )  [static]

Definition at line 305 of file TGo4HistogramEntry.cxx.

References fgcNOEVENT.

Referenced by TGo4DynamicList::ProcessHEntry().

const char* TGo4HistogramEntry::GetConditionName (  )  const [inline]
const char * TGo4HistogramEntry::GetConEventName ( Int_t  ix  )  const
const char * TGo4HistogramEntry::GetConVarName ( Int_t  ix  )  const
const char * TGo4HistogramEntry::GetHistEventName ( Int_t  ix  )  const
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().

const char * TGo4HistogramEntry::GetHistVarName ( Int_t  ix  )  const
Double_t TGo4HistogramEntry::GetPtrValue ( Int_t  type,
void *  ptr 
) [protected]

Definition at line 153 of file TGo4HistogramEntry.cxx.

Referenced by ProcessNew(), and TestConditionNew().

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

Definition at line 143 of file TGo4HistogramEntry.cxx.

References __MAXCONDIM__, fxCondPtr, fxCondType, and fxConEvents.

Referenced by TGo4DynamicList::ProcessHEntry().

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

Definition at line 133 of file TGo4HistogramEntry.cxx.

References __MAXHISDIM__, fxHisEvents, fxHistPtr, and fxHistType.

Referenced by TGo4DynamicList::ProcessHEntry().

Bool_t TGo4HistogramEntry::NeedInitialisation (  )  const [inline]

Definition at line 78 of file TGo4HistogramEntry.h.

References fbNeedInitialisation.

Referenced by TGo4DynamicList::ProcessHEntry().

void TGo4HistogramEntry::Print ( Option_t *  dummy = ""  )  const [virtual]
void TGo4HistogramEntry::ProcessNew ( Bool_t *  evvalid  )  [protected]
void TGo4HistogramEntry::RecursiveRemove ( TObject *  obj  )  [virtual]

Definition at line 250 of file TGo4HistogramEntry.cxx.

References fxCondition, fxConEvents, fxHisEvents, fxHistogram, and Reset().

void TGo4HistogramEntry::Reset (  )  [virtual]

Resets this entry to an initial status.

Reimplemented from TGo4DynamicEntry.

Definition at line 114 of file TGo4HistogramEntry.cxx.

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

Referenced by RecursiveRemove(), and TGo4HistogramEntry().

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 TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4EditDynEntry::DropCondition(), and TGo4EditDynEntry::PrepareEntryForAnalysis().

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

References __MAXCONDIM__, fxConEventName, and GO4TRACE.

Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4EditDynEntry::ConXnameEdit_textChanged(), TGo4EditDynEntry::ConYnameEdit_textChanged(), and TGo4HistogramEntry().

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

References __MAXCONDIM__, fxConVarName, and GO4TRACE.

Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4EditDynEntry::ConXnameEdit_textChanged(), TGo4EditDynEntry::ConYnameEdit_textChanged(), and TGo4HistogramEntry().

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

References __MAXHISDIM__, and fxHisEventName.

Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4EditDynEntry::EvXnameEdit_textChanged(), TGo4EditDynEntry::EvYnameEdit_textChanged(), TGo4EditDynEntry::EvZnameEdit_textChanged(), and TGo4HistogramEntry().

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 TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4EditDynEntry::DropHistogram(), and TGo4EditDynEntry::PrepareEntryForAnalysis().

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

References __MAXHISDIM__, and fxHisVarName.

Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), TGo4EditDynEntry::EvXnameEdit_textChanged(), TGo4EditDynEntry::EvYnameEdit_textChanged(), TGo4EditDynEntry::EvZnameEdit_textChanged(), and TGo4HistogramEntry().

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

Definition at line 79 of file TGo4HistogramEntry.h.

References fbNeedInitialisation.

Referenced by TGo4DynamicList::ProcessHEntry().

Bool_t TGo4HistogramEntry::TestConditionNew (  )  [protected]

Definition at line 177 of file TGo4HistogramEntry.cxx.

References fxCondition, fxCondPtr, fxCondType, GetPtrValue(), and TGo4Condition::Test().

Referenced by ProcessNew().


Friends And Related Function Documentation

friend class TGo4DynamicList [friend]

Definition at line 35 of file TGo4HistogramEntry.h.


Member Data Documentation

const char * TGo4HistogramEntry::fgcNOCONDITION = "No Condition" [static, private]

Text to indicate that no condition is used

Definition at line 155 of file TGo4HistogramEntry.h.

Referenced by Get_fgcNOCONDITION(), and TGo4HistogramEntry().

const char * TGo4HistogramEntry::fgcNODATA = "No Data" [static, private]

Text to indicate that no condition is used

Definition at line 157 of file TGo4HistogramEntry.h.

Referenced by Get_fgcNODATA(), and TGo4HistogramEntry().

const char * TGo4HistogramEntry::fgcNOEVENT = "No Event" [static, private]

Text to indicate that no condition is used

Definition at line 159 of file TGo4HistogramEntry.h.

Referenced by Get_fgcNOEVENT(), and TGo4HistogramEntry().

Condition to be checked on processing this entry.

Definition at line 135 of file TGo4HistogramEntry.h.

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

Name of the condition to be applied for this entry.

Definition at line 119 of file TGo4HistogramEntry.h.

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

void* TGo4HistogramEntry::fxCondPtr[__MAXCONDIM__] [private]

Definition at line 152 of file TGo4HistogramEntry.h.

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

Int_t TGo4HistogramEntry::fxCondType[__MAXCONDIM__] [private]

Array of pointers and data types to check condition

Definition at line 151 of file TGo4HistogramEntry.h.

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

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().

TObject* TGo4HistogramEntry::fxConEvents[__MAXCONDIM__] [private]

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

Definition at line 144 of file TGo4HistogramEntry.h.

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

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().

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().

TObject* TGo4HistogramEntry::fxHisEvents[__MAXHISDIM__] [private]

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

Definition at line 140 of file TGo4HistogramEntry.h.

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

The (histogram) object kept by this entry.

Definition at line 132 of file TGo4HistogramEntry.h.

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

Title of the analysis object, for example a histogram.

Definition at line 109 of file TGo4HistogramEntry.h.

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

void* TGo4HistogramEntry::fxHistPtr[__MAXHISDIM__] [private]

Definition at line 148 of file TGo4HistogramEntry.h.

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

Int_t TGo4HistogramEntry::fxHistType[__MAXHISDIM__] [private]

Array of pointers and data types to fill histogram

Definition at line 147 of file TGo4HistogramEntry.h.

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines