Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4TreeHistogramEntry Class Reference

Dynamic list entry which links a histogram to a certain tree. More...

#include <TGo4TreeHistogramEntry.h>

Inheritance diagram for TGo4TreeHistogramEntry:

TGo4DynamicEntry List of all members.

Public Member Functions

 TGo4TreeHistogramEntry ()
 default ctor for streamer.
 TGo4TreeHistogramEntry (const char *histogramname, const char *treename, const char *varexp, const char *cutexp)
virtual ~TGo4TreeHistogramEntry ()
void SetHistogramName (const char *name)
 Set name of the external histogram to be filled.
const char * GetHistogramName () const
 Get name of the external histogram to be filled.
void SetTreeName (const char *name)
const char * GetTreeName () const
void SetVarExp (const char *exp)
const char * GetVarExp () const
void SetCutExp (const char *cut)
const char * GetCutExp () const
void SetDynListInterval (Int_t value)
Int_t GetDynListInterval () const
virtual void Reset ()
 Resets this entry to an initial status.
virtual void Print (Option_t *dummy="") const

Static Public Attributes

static const char * fgcENTRYSUF = "-DL"
 suffix for entryname to differ from histogram name

Protected Member Functions

void ProcessTreeNew (TTree *tree, Int_t times)

Private Attributes

TString fxHistogramName
 The target histogram name to be filled.
TString fxTreeName
 The Treename to find the tree.
TString fxVarExp
 The varexp string needed by TTree:Draw().
TString fxCutExp
 The selection string needed by TTree:Draw().
Int_t fiDynListInterval
Bool_t fbNewHistogram
 True before Process is called the first time.
Int_t fiLastEvent
 index of last tree entry of the previous Process() call

Friends

class TGo4DynamicList

Detailed Description

Dynamic list entry which links a histogram to a certain tree.

Method Process performs a single event TTree::Draw on this tree and directs the output to the histogram. String Parameters Varexp and Selection of Draw() are stored in the entry and are used for each Draw. This dynamic list entry does _not_ use the Go4 Conditions and event index scheme!

Author:
J. Adamczewski
Since:
1/2001

Definition at line 36 of file TGo4TreeHistogramEntry.h.


Constructor & Destructor Documentation

TGo4TreeHistogramEntry::TGo4TreeHistogramEntry  ) 
 

default ctor for streamer.

Definition at line 30 of file TGo4TreeHistogramEntry.cxx.

References TGo4DynamicEntry::EnableProcessing(), fxTreeName, and TRACE.

TGo4TreeHistogramEntry::TGo4TreeHistogramEntry const char *  histogramname,
const char *  treename,
const char *  varexp,
const char *  cutexp
 

Definition at line 44 of file TGo4TreeHistogramEntry.cxx.

References TGo4DynamicEntry::EnableProcessing(), fgcENTRYSUF, Reset(), and TRACE.

TGo4TreeHistogramEntry::~TGo4TreeHistogramEntry  )  [virtual]
 

Definition at line 66 of file TGo4TreeHistogramEntry.cxx.

References TRACE.


Member Function Documentation

void TGo4TreeHistogramEntry::SetHistogramName const char *  name  )  [inline]
 

Set name of the external histogram to be filled.

Definition at line 52 of file TGo4TreeHistogramEntry.h.

References fxHistogramName.

const char* TGo4TreeHistogramEntry::GetHistogramName  )  const [inline]
 

Get name of the external histogram to be filled.

Definition at line 54 of file TGo4TreeHistogramEntry.h.

References fxHistogramName.

Referenced by Print(), and ProcessTreeNew().

void TGo4TreeHistogramEntry::SetTreeName const char *  name  )  [inline]
 

Definition at line 56 of file TGo4TreeHistogramEntry.h.

References fxTreeName.

const char* TGo4TreeHistogramEntry::GetTreeName  )  const [inline]
 

Definition at line 57 of file TGo4TreeHistogramEntry.h.

References fxTreeName.

Referenced by Print().

void TGo4TreeHistogramEntry::SetVarExp const char *  exp  )  [inline]
 

Definition at line 59 of file TGo4TreeHistogramEntry.h.

References fxVarExp.

const char* TGo4TreeHistogramEntry::GetVarExp  )  const [inline]
 

Definition at line 60 of file TGo4TreeHistogramEntry.h.

References fxVarExp.

Referenced by Print(), and ProcessTreeNew().

void TGo4TreeHistogramEntry::SetCutExp const char *  cut  )  [inline]
 

Definition at line 62 of file TGo4TreeHistogramEntry.h.

References fxCutExp.

const char* TGo4TreeHistogramEntry::GetCutExp  )  const [inline]
 

Definition at line 63 of file TGo4TreeHistogramEntry.h.

References fxCutExp.

Referenced by Print().

void TGo4TreeHistogramEntry::SetDynListInterval Int_t  value  )  [inline]
 

Definition at line 65 of file TGo4TreeHistogramEntry.h.

References fiDynListInterval.

Int_t TGo4TreeHistogramEntry::GetDynListInterval  )  const [inline]
 

Definition at line 66 of file TGo4TreeHistogramEntry.h.

References fiDynListInterval.

Referenced by TGo4ComSetObject::ExeSetDyn().

void TGo4TreeHistogramEntry::Reset  )  [virtual]
 

Resets this entry to an initial status.

Reimplemented from TGo4DynamicEntry.

Definition at line 71 of file TGo4TreeHistogramEntry.cxx.

References fbNewHistogram, fiLastEvent, TGo4DynamicEntry::Reset(), and TRACE.

Referenced by TGo4TreeHistogramEntry().

void TGo4TreeHistogramEntry::Print Option_t *  dummy = ""  )  const [virtual]
 

Definition at line 142 of file TGo4TreeHistogramEntry.cxx.

References GetCutExp(), GetHistogramName(), GetTreeName(), GetVarExp(), and TGo4DynamicEntry::IsEnabledProcessing().

void TGo4TreeHistogramEntry::ProcessTreeNew TTree *  tree,
Int_t  times
[protected]
 

Definition at line 79 of file TGo4TreeHistogramEntry.cxx.

References fiLastEvent, fxCutExp, GetHistogramName(), GetVarExp(), and TGo4Status::kGo4BackStoreReset.


Friends And Related Function Documentation

friend class TGo4DynamicList [friend]
 

Definition at line 38 of file TGo4TreeHistogramEntry.h.


Member Data Documentation

const char * TGo4TreeHistogramEntry::fgcENTRYSUF = "-DL" [static]
 

suffix for entryname to differ from histogram name

Definition at line 28 of file TGo4TreeHistogramEntry.cxx.

Referenced by TGo4TreeHistogramEntry().

TString TGo4TreeHistogramEntry::fxHistogramName [private]
 

The target histogram name to be filled.

Definition at line 82 of file TGo4TreeHistogramEntry.h.

Referenced by GetHistogramName(), and SetHistogramName().

TString TGo4TreeHistogramEntry::fxTreeName [private]
 

The Treename to find the tree.

Definition at line 85 of file TGo4TreeHistogramEntry.h.

Referenced by GetTreeName(), SetTreeName(), and TGo4TreeHistogramEntry().

TString TGo4TreeHistogramEntry::fxVarExp [private]
 

The varexp string needed by TTree:Draw().

Definition at line 88 of file TGo4TreeHistogramEntry.h.

Referenced by GetVarExp(), and SetVarExp().

TString TGo4TreeHistogramEntry::fxCutExp [private]
 

The selection string needed by TTree:Draw().

Definition at line 91 of file TGo4TreeHistogramEntry.h.

Referenced by GetCutExp(), ProcessTreeNew(), and SetCutExp().

Int_t TGo4TreeHistogramEntry::fiDynListInterval [private]
 

Definition at line 93 of file TGo4TreeHistogramEntry.h.

Referenced by GetDynListInterval(), and SetDynListInterval().

Bool_t TGo4TreeHistogramEntry::fbNewHistogram [private]
 

True before Process is called the first time.

Then the histogram created by the TTree::Draw is added to the histogram folder once.

Definition at line 97 of file TGo4TreeHistogramEntry.h.

Referenced by Reset().

Int_t TGo4TreeHistogramEntry::fiLastEvent [private]
 

index of last tree entry of the previous Process() call

Definition at line 100 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTreeNew(), and Reset().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:26 2008 for Go4-v3.04-1 by  doxygen 1.4.2