00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "TGo4TreeHistogramEntryStatus.h"
00017
00018 #include <iostream.h>
00019
00020 #include "TTree.h"
00021
00022 #include "Go4Log/TGo4Log.h"
00023 #include "TGo4TreeHistogramEntry.h"
00024
00025 TGo4TreeHistogramEntryStatus::TGo4TreeHistogramEntryStatus(const Text_t* name)
00026 : TGo4DynamicEntryStatus(name), fiDynListInterval(0)
00027 {
00028 TRACE((15,"TGo4TreeHistogramEntryStatus::TGo4TreeHistogramEntryStatus(Text_t*)",__LINE__, __FILE__));
00029
00030 }
00031
00032 TGo4TreeHistogramEntryStatus::~TGo4TreeHistogramEntryStatus()
00033 {
00034 TRACE((15,"TGo4TreeHistogramEntryStatus::~TGo4TreeHistogramEntryStatus()",__LINE__, __FILE__));
00035
00036 }
00037
00038 void TGo4TreeHistogramEntryStatus::SetTreeName(TTree * thetree)
00039 {
00040 TRACE((12,"TGo4TreeHistogramEntryStatus::SetTreeName",__LINE__, __FILE__));
00041 if(thetree)
00042 {
00043 fxTreeName=thetree->GetName();
00044 }
00045 else
00046 {
00047 fxTreeName="No Tree specified";
00048 }
00049 }
00050
00051 void TGo4TreeHistogramEntryStatus::SetHistogramName(const Text_t * name)
00052 {
00053 fxHistogramName=name;
00054 }
00055
00056 TGo4DynamicEntry* TGo4TreeHistogramEntryStatus::CreateDynamicEntry()
00057 {
00058 TGo4TreeHistogramEntry* entry = new TGo4TreeHistogramEntry;
00059 entry->SetStatus(this);
00060 return entry;
00061
00062 }
00063
00064 const Text_t * TGo4TreeHistogramEntryStatus::GetHistogramName()
00065 {
00066 return fxHistogramName.Data();
00067 }
00068
00069 void TGo4TreeHistogramEntryStatus::Print(Option_t* dummy) const
00070 {
00071
00072 TGo4TreeHistogramEntryStatus* const localthis= const_cast<TGo4TreeHistogramEntryStatus* const>(this);
00073 TROOT::IndentLevel();
00074 cout <<"-Dynamic TreeDraw Entry " <<localthis->GetName()<<" :" << endl;
00075 TROOT::IncreaseDirLevel();
00076 if(localthis->AutoProcessIsEnabled())
00077 {
00078 TROOT::IndentLevel();
00079 cout <<"\t-- Enabled --" << endl;
00080 }
00081 else
00082 {
00083 TROOT::IndentLevel();
00084 cout <<"\t-- Disabled --" << endl;
00085 }
00086
00087 TROOT::IndentLevel();
00088 cout <<"\tHistogram:\t"<< localthis->GetHistogramName()<<endl;
00089 TROOT::IndentLevel();
00090 cout <<"\tTree:\t"<< localthis->GetTreeName()<<endl;
00091 TROOT::IndentLevel();
00092 cout <<"\tDraw Expression:\t"<< localthis->GetVarexp()<<endl;
00093 TROOT::IndentLevel();
00094 cout <<"\tCut Expression:\t"<< localthis->GetSelection().GetTitle()<<endl;
00095 TROOT::DecreaseDirLevel();
00096 TROOT::IndentLevel();
00097 cout <<"-End "<<localthis->GetName()<<"-----------" << endl;
00098 }
00099
00100 ClassImp(TGo4TreeHistogramEntryStatus)
00101
00102