Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 Methods

 TGo4TreeHistogramEntry ()
 default ctor for streamer. More...

virtual ~TGo4TreeHistogramEntry ()
 TGo4TreeHistogramEntry (const Text_t *histogramname, TTree *tree, const Text_t *varexp, const TCut &cut)
 TGo4TreeHistogramEntry (const Text_t *histogramname, const Text_t *treename, const Text_t *varexp, const TCut &cut)
TGo4DynamicEntryStatusCreateStatus ()
 Create a status object containing information such as the object names. More...

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

Int_t ProcessTree (Int_t times)
 Process the last "times" events in the tree. More...

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

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


Static Public Attributes

const Text_t fgcENTRYSUF [] = "-DL"
 suffix for entryname to differ from histogram name. More...


Private Methods

void UpdateStatus (TGo4DynamicEntryStatus *state)
 method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object. More...


Private Attributes

TTree * fxTree
 Tree which is used to fill this histogram. More...

TString fxHistogramName
 The target histogram name to be filled. More...

TString fxTreeName
 The Treename to find the tree. More...

TString fxVarexp
 The varexp string needed by TTree:Draw(). More...

TString fxDrawexp
 The complete TTree:Draw() expression, i.e. More...

TCut fxSelection
 The selection string needed by TTree:Draw(). More...

Bool_t fbNewHistogram
 True before Process is called the first time. More...

Int_t fiLastEvent
 index of last tree entry of the previous Process() call. More...


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 42 of file TGo4TreeHistogramEntry.h.


Constructor & Destructor Documentation

TGo4TreeHistogramEntry::TGo4TreeHistogramEntry  
 

default ctor for streamer.

Definition at line 69 of file TGo4TreeHistogramEntry.cxx.

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

TGo4TreeHistogramEntry::~TGo4TreeHistogramEntry   [virtual]
 

Definition at line 81 of file TGo4TreeHistogramEntry.cxx.

References TRACE.

TGo4TreeHistogramEntry::TGo4TreeHistogramEntry const Text_t *    histogramname,
TTree *    tree,
const Text_t *    varexp,
const TCut &    cut
 

Definition at line 30 of file TGo4TreeHistogramEntry.cxx.

References TGo4DynamicEntry::EnableProcessing(), fgcENTRYSUF, fxDrawexp, fxTree, fxTreeName, and TRACE.

TGo4TreeHistogramEntry::TGo4TreeHistogramEntry const Text_t *    histogramname,
const Text_t *    treename,
const Text_t *    varexp,
const TCut &    cut
 

Definition at line 51 of file TGo4TreeHistogramEntry.cxx.

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


Member Function Documentation

TGo4DynamicEntryStatus * TGo4TreeHistogramEntry::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 88 of file TGo4TreeHistogramEntry.cxx.

References TRACE, and UpdateStatus().

Int_t TGo4TreeHistogramEntry::Process   [virtual]
 

Process the dynamic entry.

Implements TGo4DynamicEntry.

Definition at line 163 of file TGo4TreeHistogramEntry.cxx.

References TGo4Analysis::CheckDynListInterval(), TGo4DynamicEntry::fbProcessEntry, TGo4Analysis::Instance(), ProcessTree(), and TRACE.

Int_t TGo4TreeHistogramEntry::ProcessTree Int_t    times
 

Process the last "times" events in the tree.

Definition at line 176 of file TGo4TreeHistogramEntry.cxx.

References TGo4Analysis::AddHistogram(), fbNewHistogram, fiLastEvent, fxDrawexp, fxHistogramName, fxSelection, fxTree, fxTreeName, TGo4Analysis::GetHistogram(), TGo4Analysis::GetTree(), TGo4Analysis::Instance(), TGo4Status::kGo4BackStoreReset, TGo4Status::kGo4CanDelete, and TRACE.

Referenced by Process().

void TGo4TreeHistogramEntry::Reset   [virtual]
 

Resets this entry to an initial status.

Reimplemented from TGo4DynamicEntry.

Definition at line 123 of file TGo4TreeHistogramEntry.cxx.

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

void TGo4TreeHistogramEntry::SetStatus TGo4DynamicEntryStatus   state [virtual]
 

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

Reimplemented from TGo4DynamicEntry.

Definition at line 133 of file TGo4TreeHistogramEntry.cxx.

References fxDrawexp, fxHistogramName, fxSelection, fxTreeName, fxVarexp, TGo4TreeHistogramEntryStatus::GetHistogramName(), TGo4TreeHistogramEntryStatus::GetSelection(), TGo4TreeHistogramEntryStatus::GetTreeName(), TGo4TreeHistogramEntryStatus::GetVarexp(), TGo4DynamicEntry::SetStatus(), and TRACE.

Referenced by TGo4TreeHistogramEntryStatus::CreateDynamicEntry().

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

method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object.

Reimplemented from TGo4DynamicEntry.

Definition at line 97 of file TGo4TreeHistogramEntry.cxx.

References TGo4Analysis::Exists(), fxHistogramName, fxSelection, fxTreeName, fxVarexp, TGo4Analysis::Instance(), TGo4TreeHistogramEntryStatus::SetDynListInterval(), TGo4TreeHistogramEntryStatus::SetHistogramName(), TGo4TreeHistogramEntryStatus::SetSelection(), TGo4TreeHistogramEntryStatus::SetTreeName(), TGo4TreeHistogramEntryStatus::SetVarexp(), TRACE, and TGo4DynamicEntry::UpdateStatus().

Referenced by CreateStatus().


Member Data Documentation

const Text_t TGo4TreeHistogramEntry::fgcENTRYSUF = "-DL" [static]
 

suffix for entryname to differ from histogram name.

Definition at line 28 of file TGo4TreeHistogramEntry.cxx.

Referenced by TGo4TreeHistogramEntry().

TTree* TGo4TreeHistogramEntry::fxTree [private]
 

Tree which is used to fill this histogram.

Definition at line 95 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), Reset(), and TGo4TreeHistogramEntry().

TString TGo4TreeHistogramEntry::fxHistogramName [private]
 

The target histogram name to be filled.

Definition at line 98 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), SetStatus(), and UpdateStatus().

TString TGo4TreeHistogramEntry::fxTreeName [private]
 

The Treename to find the tree.

Definition at line 101 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), SetStatus(), TGo4TreeHistogramEntry(), and UpdateStatus().

TString TGo4TreeHistogramEntry::fxVarexp [private]
 

The varexp string needed by TTree:Draw().

Definition at line 104 of file TGo4TreeHistogramEntry.h.

Referenced by SetStatus(), and UpdateStatus().

TString TGo4TreeHistogramEntry::fxDrawexp [private]
 

The complete TTree:Draw() expression, i.e.

varexp>>+histogram

Definition at line 107 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), SetStatus(), and TGo4TreeHistogramEntry().

TCut TGo4TreeHistogramEntry::fxSelection [private]
 

The selection string needed by TTree:Draw().

Definition at line 110 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), SetStatus(), and UpdateStatus().

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 114 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), and Reset().

Int_t TGo4TreeHistogramEntry::fiLastEvent [private]
 

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

Definition at line 117 of file TGo4TreeHistogramEntry.h.

Referenced by ProcessTree(), and Reset().


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