Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4HistogramEntry Class Reference

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

#include <TGo4HistogramEntry.h>

Inheritance diagram for TGo4HistogramEntry:

TGo4DynamicEntry List of all members.

Public Methods

 TGo4HistogramEntry (const Text_t *name)
 TGo4HistogramEntry ()
virtual ~TGo4HistogramEntry ()
TGo4DynamicEntryStatusCreateStatus ()
 Create a status object containing information such as the object names. More...

Int_t Process ()
 Process the dynamic entry. More...

void SetHistogramName (const Text_t *name)
 Set name of the external histogram to be filled. More...

void SetHisVarName (UInt_t ix, const Text_t *name)
 Set Name of the data member that is to be filled in histogram for axis number ix. More...

void SetHisEventName (UInt_t ix, const Text_t *name)
 Set Name of the event object that contains the data to be filled in histogram, for axis number ix. More...

virtual void CleanupHistogram (TH1 *his)
 If histogram his matches the internal histogram, the reference to internal histogram will be reset to 0. More...

virtual void Reset ()
 Resets this entry to an initial status. More...

virtual void InitPointers ()
 Initialize the pointers to external objects. More...

virtual void SetStatus (TGo4DynamicEntryStatus *state)
 Set this dynamic entry to the values of status object state. More...

virtual void CleanupEvent (TGo4EventElement *ev)
 If event ev matches one internal event, the reference to event will be reset to 0. More...


Static Public Attributes

const UInt_t fguMAXHISDIMENSION = __MAXHISDIM__
 maximum dimension for histogram variable array. More...


Private Methods

void UpdateStatus (TGo4DynamicEntryStatus *state)
 Create a status object containing information such as the object names. More...


Private Attributes

TH1 * fxHistogram
 The (histogram) object kept by this entry. More...

TString fxHistogramName
 Title of the analysis object, for example a histogram. More...

TString fxHisVarName [__MAXHISDIM__]
 Array of names of the x,y,z,.. More...

TString fxHisEventName [__MAXHISDIM__]
 Array of names of the events which contain the data members to be filled into the x,y,z,.. More...

TGo4EventElementfxHisEvent [__MAXHISDIM__]
 Array of pointers to the events containing the data to be filled into x,y,z,.. More...

Float_t * fxHisDataFloat [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

Double_t * fxHisDataDouble [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

Int_t * fxHisDataInt [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

Short_t * fxHisDataShort [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

Char_t * fxHisDataChar [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

Long_t * fxHisDataLong [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

Bool_t * fxHisDataBool [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

UInt_t * fxHisDataUInt [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

UShort_t * fxHisDataUShort [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

UChar_t * fxHisDataUChar [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...

ULong_t * fxHisDataULong [__MAXHISDIM__]
 Array of pointers to the data that is filled into x,y,z,.. More...


Detailed Description

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

Author:
J. Adamczewski
Since:
1/2001

Definition at line 38 of file TGo4HistogramEntry.h.


Constructor & Destructor Documentation

TGo4HistogramEntry::TGo4HistogramEntry const Text_t *    name
 

Definition at line 34 of file TGo4HistogramEntry.cxx.

References TGo4DynamicEntry::fgcNOCONDITION, TGo4DynamicEntry::fgcNODATA, TGo4DynamicEntry::fgcNOEVENT, fguMAXHISDIMENSION, fxHistogramName, Reset(), SetHisEventName(), SetHisVarName(), and TRACE.

TGo4HistogramEntry::TGo4HistogramEntry  
 

Definition at line 49 of file TGo4HistogramEntry.cxx.

References TRACE.

TGo4HistogramEntry::~TGo4HistogramEntry   [virtual]
 

Definition at line 63 of file TGo4HistogramEntry.cxx.

References TRACE.


Member Function Documentation

TGo4DynamicEntryStatus * TGo4HistogramEntry::CreateStatus   [virtual]
 

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.

Implements TGo4DynamicEntry.

Definition at line 159 of file TGo4HistogramEntry.cxx.

References TRACE, and UpdateStatus().

Int_t TGo4HistogramEntry::Process   [virtual]
 

Process the dynamic entry.

Implements TGo4DynamicEntry.

Definition at line 72 of file TGo4HistogramEntry.cxx.

References TGo4DynamicEntry::fbPointerInitDone, TGo4DynamicEntry::fbProcessEntry, fxHisDataBool, fxHisDataChar, fxHisDataDouble, fxHisDataFloat, fxHisDataInt, fxHisDataLong, fxHisDataShort, fxHisDataUChar, fxHisDataUInt, fxHisDataULong, fxHisDataUShort, fxHisEvent, fxHistogram, InitPointers(), TGo4EventElement::IsValid(), TGo4DynamicEntry::TestCondition(), and TRACE.

void TGo4HistogramEntry::SetHistogramName const Text_t *    name
 

Set name of the external histogram to be filled.

Definition at line 192 of file TGo4HistogramEntry.cxx.

References fxHistogramName, and TRACE.

Referenced by SetStatus().

void TGo4HistogramEntry::SetHisVarName UInt_t    ix,
const Text_t *    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 198 of file TGo4HistogramEntry.cxx.

References fguMAXHISDIMENSION, fxHisVarName, and TRACE.

Referenced by SetStatus(), and TGo4HistogramEntry().

void TGo4HistogramEntry::SetHisEventName UInt_t    ix,
const Text_t *    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 205 of file TGo4HistogramEntry.cxx.

References fguMAXHISDIMENSION, fxHisEventName, and TRACE.

Referenced by SetStatus(), and TGo4HistogramEntry().

void TGo4HistogramEntry::CleanupHistogram TH1 *    his [virtual]
 

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.

Reimplemented from TGo4DynamicEntry.

Definition at line 370 of file TGo4HistogramEntry.cxx.

References TGo4DynamicEntry::CleanupHistogram(), fxHistogram, Reset(), and TRACE.

void TGo4HistogramEntry::Reset   [virtual]
 

Resets this entry to an initial status.

Reimplemented from TGo4DynamicEntry.

Definition at line 169 of file TGo4HistogramEntry.cxx.

References fguMAXHISDIMENSION, fxHisDataBool, fxHisDataChar, fxHisDataDouble, fxHisDataFloat, fxHisDataInt, fxHisDataLong, fxHisDataShort, fxHisDataUChar, fxHisDataUInt, fxHisDataULong, fxHisDataUShort, fxHisEvent, fxHistogram, TGo4DynamicEntry::Reset(), and TRACE.

Referenced by CleanupEvent(), CleanupHistogram(), and TGo4HistogramEntry().

void TGo4HistogramEntry::InitPointers   [virtual]
 

Initialize the pointers to external objects.

The external objects (e.g. condition, histogram, data) will be searched by name in the Go4 folders.

Reimplemented from TGo4DynamicEntry.

Definition at line 212 of file TGo4HistogramEntry.cxx.

References TGo4DynamicEntry::fbPointerInitDone, TGo4DynamicEntry::fgcNOCONDITION, TGo4DynamicEntry::fgcNODATA, TGo4DynamicEntry::fgcNOEVENT, fguMAXHISDIMENSION, TGo4DynamicEntry::FindDataMember(), fxHisDataBool, fxHisDataChar, fxHisDataDouble, fxHisDataFloat, fxHisDataInt, fxHisDataLong, fxHisDataShort, fxHisDataUChar, fxHisDataUInt, fxHisDataULong, fxHisDataUShort, fxHisEvent, fxHisEventName, fxHistogram, fxHistogramName, fxHisVarName, TGo4Analysis::GetEventStructure(), TGo4Analysis::GetHistogram(), TGo4DynamicEntry::InitPointers(), TGo4Analysis::Instance(), and TRACE.

Referenced by Process().

void TGo4HistogramEntry::SetStatus TGo4DynamicEntryStatus   state [virtual]
 

Set this dynamic entry to the values of status object state.

Reimplemented from TGo4DynamicEntry.

Definition at line 344 of file TGo4HistogramEntry.cxx.

References fguMAXHISDIMENSION, TGo4HistogramEntryStatus::GetHisEventName(), TGo4HistogramEntryStatus::GetHistogramName(), TGo4HistogramEntryStatus::GetHisVarName(), i, SetHisEventName(), SetHistogramName(), SetHisVarName(), TGo4DynamicEntry::SetStatus(), and TRACE.

Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), and TGo4HistogramEntryStatus::CreateDynamicEntry().

void TGo4HistogramEntry::CleanupEvent TGo4EventElement   ev [virtual]
 

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 from TGo4DynamicEntry.

Definition at line 379 of file TGo4HistogramEntry.cxx.

References TGo4DynamicEntry::CleanupEvent(), fguMAXHISDIMENSION, fxHisEvent, Reset(), and TRACE.

void TGo4HistogramEntry::UpdateStatus TGo4DynamicEntryStatus   state [private, virtual]
 

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.

Reimplemented from TGo4DynamicEntry.

Definition at line 138 of file TGo4HistogramEntry.cxx.

References fxHisEventName, fxHistogramName, fxHisVarName, TGo4HistogramEntryStatus::SetHisEventNames(), TGo4HistogramEntryStatus::SetHistogramName(), TGo4HistogramEntryStatus::SetHisVarNames(), TRACE, and TGo4DynamicEntry::UpdateStatus().

Referenced by CreateStatus().


Member Data Documentation

const UInt_t TGo4HistogramEntry::fguMAXHISDIMENSION = __MAXHISDIM__ [static]
 

maximum dimension for histogram variable array.

Definition at line 32 of file TGo4HistogramEntry.cxx.

Referenced by TGo4AnalysisObjectManager::AddDynamicHistogram(), CleanupEvent(), TGo4HistogramEntryStatus::GetHisEventName(), TGo4HistogramEntryStatus::GetHisVarName(), InitPointers(), Reset(), TGo4HistogramEntryStatus::ResetNames(), TGo4HistogramEntryStatus::SetHisEventName(), SetHisEventName(), TGo4HistogramEntryStatus::SetHisEventNames(), TGo4HistogramEntryStatus::SetHisVarName(), SetHisVarName(), TGo4HistogramEntryStatus::SetHisVarNames(), SetStatus(), and TGo4HistogramEntry().

TH1* TGo4HistogramEntry::fxHistogram [private]
 

The (histogram) object kept by this entry.

Definition at line 105 of file TGo4HistogramEntry.h.

Referenced by CleanupHistogram(), InitPointers(), Process(), and Reset().

TString TGo4HistogramEntry::fxHistogramName [private]
 

Title of the analysis object, for example a histogram.

Definition at line 108 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), SetHistogramName(), TGo4HistogramEntry(), and UpdateStatus().

TString TGo4HistogramEntry::fxHisVarName[__MAXHISDIM__] [private]
 

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

coordinate data members.

Definition at line 111 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), SetHisVarName(), and UpdateStatus().

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

Referenced by InitPointers(), SetHisEventName(), and UpdateStatus().

TGo4EventElement* TGo4HistogramEntry::fxHisEvent[__MAXHISDIM__] [private]
 

Array of pointers to the events containing the data to be filled into x,y,z,..

axis of histogram.

Definition at line 119 of file TGo4HistogramEntry.h.

Referenced by CleanupEvent(), InitPointers(), Process(), and Reset().

Float_t* TGo4HistogramEntry::fxHisDataFloat[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Float_t

Definition at line 123 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

Double_t* TGo4HistogramEntry::fxHisDataDouble[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Double_t

Definition at line 127 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

Int_t* TGo4HistogramEntry::fxHisDataInt[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Int_t

Definition at line 131 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

Short_t* TGo4HistogramEntry::fxHisDataShort[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Short_t

Definition at line 135 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

Char_t* TGo4HistogramEntry::fxHisDataChar[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Char_t

Definition at line 139 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

Long_t* TGo4HistogramEntry::fxHisDataLong[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Long_t

Definition at line 143 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

Bool_t* TGo4HistogramEntry::fxHisDataBool[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is Bool_t

Definition at line 147 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

UInt_t* TGo4HistogramEntry::fxHisDataUInt[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is UInt_t

Definition at line 151 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

UShort_t* TGo4HistogramEntry::fxHisDataUShort[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is UShort_t

Definition at line 155 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

UChar_t* TGo4HistogramEntry::fxHisDataUChar[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is UChar_t

Definition at line 159 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().

ULong_t* TGo4HistogramEntry::fxHisDataULong[__MAXHISDIM__] [private]
 

Array of pointers to the data that is filled into x,y,z,..

axis of histogram. Used if data is ULong_t

Definition at line 163 of file TGo4HistogramEntry.h.

Referenced by InitPointers(), Process(), and Reset().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:44 2005 for Go4-v2.10-5 by doxygen1.2.15