16 #include "Riostream.h"
31 fiDynListInterval(1000),
32 fbNewHistogram(kTRUE),
35 GO4TRACE((15,
"TGo4TreeHistogramEntry::TGo4TreeHistogramEntry()",__LINE__, __FILE__));
45 fxHistogramName(histogramname),
49 fiDynListInterval(1000),
50 fbNewHistogram(kTRUE),
53 GO4TRACE((15,
"TGo4TreeHistogramEntry::TGo4TreeHistogramEntry(const char*, const char*, const char*, const char*)",__LINE__, __FILE__));
62 GO4TRACE((15,
"TGo4TreeHistogramEntry::~TGo4TreeHistogramEntry()",__LINE__, __FILE__));
67 GO4TRACE((12,
"TGo4TreeHistogramEntry::Reset()",__LINE__, __FILE__));
77 Int_t lastentrynumber =
static_cast<Int_t
> (tree->GetEntries());
83 "Tree Histogram Entry: %s Reached end of tree %s. Draw() is stopped. ",
84 GetName(), tree->GetName());
85 Int_t startindex= lastentrynumber -times;
102 times=lastentrynumber-startindex;
117 std::cout <<
"Passing over end of tree - NEVER COME HERE!!!" << std::endl;
120 std::cout <<
"\t -- startindex: "<< startindex<< std::endl;
121 std::cout <<
"\t -- times: "<< times<< std::endl;
122 std::cout <<
"\t -- treeentries: "<< lastentrynumber<< std::endl;
129 TDirectory* savdir = gDirectory;
131 tree->Draw(drawexp.Data(),
fxCutExp.Data(),
"goff", times, startindex);
139 TROOT::IndentLevel();
140 std::cout <<
"-Dynamic TreeDraw Entry " << GetName() <<
" :" << std::endl;
141 TROOT::IncreaseDirLevel();
143 else std::cout <<
"\t-- Disabled --" << std::endl;
145 TROOT::IndentLevel();
147 TROOT::IndentLevel();
148 std::cout <<
"\tTree:\t"<<
GetTreeName()<<std::endl;
149 TROOT::IndentLevel();
150 std::cout <<
"\tDraw Expression:\t" <<
GetVarExp() <<std::endl;
151 TROOT::IndentLevel();
152 std::cout <<
"\tCut Expression:\t" <<
GetCutExp() << std::endl;
153 TROOT::DecreaseDirLevel();
154 TROOT::IndentLevel();
155 std::cout <<
"-End "<<GetName()<<
"-----------" << std::endl;
static const char * fgcENTRYSUF
void ProcessTreeNew(TTree *tree, Int_t times)
const char * GetHistogramName() const
virtual ~TGo4TreeHistogramEntry()
const char * GetCutExp() const
Bool_t IsEnabledProcessing() const
const char * GetTreeName() const
virtual void Print(Option_t *="") const
void EnableProcessing(Bool_t on=kTRUE)
const char * GetVarExp() const