00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4TREEHISTOGRAMENTRY_H 00017 #define TGO4TREEHISTOGRAMENTRY_H 00018 00019 #include "TGo4DynamicEntry.h" 00020 00021 #include "TString.h" 00022 00023 class TTree; 00024 00036 class TGo4TreeHistogramEntry : public TGo4DynamicEntry { 00037 00038 friend class TGo4DynamicList; 00039 00040 public: 00042 TGo4TreeHistogramEntry(); 00043 00044 TGo4TreeHistogramEntry(const char* histogramname, 00045 const char* treename, 00046 const char* varexp, 00047 const char* cutexp); 00048 00049 virtual ~TGo4TreeHistogramEntry(); 00050 00052 void SetHistogramName(const char* name) { fxHistogramName = name; } 00054 const char* GetHistogramName() const { return fxHistogramName.Data(); } 00055 00056 void SetTreeName(const char* name) { fxTreeName = name; } 00057 const char* GetTreeName() const { return fxTreeName.Data(); } 00058 00059 void SetVarExp(const char* exp) { fxVarExp = exp; } 00060 const char* GetVarExp() const { return fxVarExp.Data(); } 00061 00062 void SetCutExp(const char* cut) { fxCutExp = cut; } 00063 const char* GetCutExp() const { return fxCutExp.Data(); } 00064 00065 void SetDynListInterval(Int_t value) { fiDynListInterval = value; } 00066 Int_t GetDynListInterval() const { return fiDynListInterval; } 00067 00069 virtual void Reset(); 00070 00071 virtual void Print(Option_t * dummy="") const; 00072 00074 static const char* fgcENTRYSUF; 00075 00076 protected: 00077 void ProcessTreeNew(TTree* tree, Int_t times); 00078 00079 private: 00080 00082 TString fxHistogramName; 00083 00085 TString fxTreeName; 00086 00088 TString fxVarExp; 00089 00091 TString fxCutExp; 00092 00093 Int_t fiDynListInterval; 00094 00097 Bool_t fbNewHistogram; 00098 00100 Int_t fiLastEvent; 00101 00102 ClassDef(TGo4TreeHistogramEntry,3) 00103 00104 }; 00105 00106 #endif //TGO4TREEHISTOGRAMENTRY_H 00107 00108 //----------------------------END OF GO4 SOURCE FILE ---------------------