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

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

#include <TGo4TreeHistogramEntry.h>

+ Inheritance diagram for TGo4TreeHistogramEntry:

Public Member Functions

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

Bool_t fbNewHistogram {kFALSE}
 True before Process is called the first time.
 
Int_t fiDynListInterval {0}
 
Int_t fiLastEvent {0}
 index of last tree entry of the previous Process() call
 
TString fxCutExp
 The selection string needed by TTree:Draw()
 
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()
 

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

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

Constructor & Destructor Documentation

◆ TGo4TreeHistogramEntry() [1/2]

TGo4TreeHistogramEntry::TGo4TreeHistogramEntry ( )

◆ TGo4TreeHistogramEntry() [2/2]

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

◆ ~TGo4TreeHistogramEntry()

TGo4TreeHistogramEntry::~TGo4TreeHistogramEntry ( )
virtual

Definition at line 61 of file TGo4TreeHistogramEntry.cxx.

References GO4TRACE.

Member Function Documentation

◆ GetCutExp()

const char * TGo4TreeHistogramEntry::GetCutExp ( ) const
inline

Definition at line 61 of file TGo4TreeHistogramEntry.h.

References fxCutExp.

Referenced by Print(), and TGo4EditDynEntry::RefreshWidget().

◆ GetDynListInterval()

Int_t TGo4TreeHistogramEntry::GetDynListInterval ( ) const
inline

◆ GetHistogramName()

const char * TGo4TreeHistogramEntry::GetHistogramName ( ) const
inline

Get name of the external histogram to be filled.

Definition at line 52 of file TGo4TreeHistogramEntry.h.

References fxHistogramName.

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

◆ GetTreeName()

const char * TGo4TreeHistogramEntry::GetTreeName ( ) const
inline

◆ GetVarExp()

const char * TGo4TreeHistogramEntry::GetVarExp ( ) const
inline

Definition at line 58 of file TGo4TreeHistogramEntry.h.

References fxVarExp.

Referenced by Print(), ProcessTreeNew(), and TGo4EditDynEntry::RefreshWidget().

◆ Print()

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

◆ ProcessTreeNew()

void TGo4TreeHistogramEntry::ProcessTreeNew ( TTree * tree,
Int_t times )
protected

◆ Reset()

void TGo4TreeHistogramEntry::Reset ( )
overridevirtual

Resets this entry to an initial status.

Implements TGo4DynamicEntry.

Definition at line 66 of file TGo4TreeHistogramEntry.cxx.

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

Referenced by TGo4TreeHistogramEntry().

◆ SetCutExp()

void TGo4TreeHistogramEntry::SetCutExp ( const char * cut)
inline

Definition at line 60 of file TGo4TreeHistogramEntry.h.

References fxCutExp.

◆ SetDynListInterval()

void TGo4TreeHistogramEntry::SetDynListInterval ( Int_t value)
inline

Definition at line 63 of file TGo4TreeHistogramEntry.h.

References fiDynListInterval.

Referenced by TGo4DynamicList::ProcessTEntry().

◆ SetHistogramName()

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

Set name of the external histogram to be filled.

Definition at line 50 of file TGo4TreeHistogramEntry.h.

References fxHistogramName.

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

◆ SetTreeName()

void TGo4TreeHistogramEntry::SetTreeName ( const char * name)
inline

Definition at line 54 of file TGo4TreeHistogramEntry.h.

References fxTreeName.

Referenced by TGo4EditDynEntry::PrepareEntryForAnalysis().

◆ SetVarExp()

void TGo4TreeHistogramEntry::SetVarExp ( const char * exp)
inline

Definition at line 57 of file TGo4TreeHistogramEntry.h.

References fxVarExp.

Friends And Related Symbol Documentation

◆ TGo4DynamicList

friend class TGo4DynamicList
friend

Definition at line 36 of file TGo4TreeHistogramEntry.h.

References TGo4DynamicList.

Referenced by TGo4DynamicList.

Field Documentation

◆ fbNewHistogram

Bool_t TGo4TreeHistogramEntry::fbNewHistogram {kFALSE}
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 95 of file TGo4TreeHistogramEntry.h.

Referenced by TGo4TreeHistogramEntry(), TGo4TreeHistogramEntry(), TGo4DynamicList::ProcessTEntry(), and Reset().

◆ fgcENTRYSUF

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

suffix for entryname to differ from histogram name

Definition at line 72 of file TGo4TreeHistogramEntry.h.

Referenced by TGo4TreeHistogramEntry().

◆ fiDynListInterval

Int_t TGo4TreeHistogramEntry::fiDynListInterval {0}
private

◆ fiLastEvent

Int_t TGo4TreeHistogramEntry::fiLastEvent {0}
private

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

Definition at line 98 of file TGo4TreeHistogramEntry.h.

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

◆ fxCutExp

TString TGo4TreeHistogramEntry::fxCutExp
private

The selection string needed by TTree:Draw()

Definition at line 89 of file TGo4TreeHistogramEntry.h.

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

◆ fxHistogramName

TString TGo4TreeHistogramEntry::fxHistogramName
private

The target histogram name to be filled.

Definition at line 80 of file TGo4TreeHistogramEntry.h.

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

◆ fxTreeName

TString TGo4TreeHistogramEntry::fxTreeName
private

The Treename to find the tree.

Definition at line 83 of file TGo4TreeHistogramEntry.h.

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

◆ fxVarExp

TString TGo4TreeHistogramEntry::fxVarExp
private

The varexp string needed by TTree:Draw()

Definition at line 86 of file TGo4TreeHistogramEntry.h.

Referenced by TGo4TreeHistogramEntry(), TGo4TreeHistogramEntry(), GetVarExp(), and SetVarExp().


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