00001 // $Id: TGo4TreeHistogramEntry.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4TREEHISTOGRAMENTRY_H 00015 #define TGO4TREEHISTOGRAMENTRY_H 00016 00017 #include "TGo4DynamicEntry.h" 00018 00019 #include "TString.h" 00020 00021 class TTree; 00022 00034 class TGo4TreeHistogramEntry : public TGo4DynamicEntry { 00035 00036 friend class TGo4DynamicList; 00037 00038 public: 00040 TGo4TreeHistogramEntry(); 00041 00042 TGo4TreeHistogramEntry(const char* histogramname, 00043 const char* treename, 00044 const char* varexp, 00045 const char* cutexp); 00046 00047 virtual ~TGo4TreeHistogramEntry(); 00048 00050 void SetHistogramName(const char* name) { fxHistogramName = name; } 00052 const char* GetHistogramName() const { return fxHistogramName.Data(); } 00053 00054 void SetTreeName(const char* name) { fxTreeName = name; } 00055 const char* GetTreeName() const { return fxTreeName.Data(); } 00056 00057 void SetVarExp(const char* exp) { fxVarExp = exp; } 00058 const char* GetVarExp() const { return fxVarExp.Data(); } 00059 00060 void SetCutExp(const char* cut) { fxCutExp = cut; } 00061 const char* GetCutExp() const { return fxCutExp.Data(); } 00062 00063 void SetDynListInterval(Int_t value) { fiDynListInterval = value; } 00064 Int_t GetDynListInterval() const { return fiDynListInterval; } 00065 00067 virtual void Reset(); 00068 00069 virtual void Print(Option_t * dummy="") const; 00070 00072 static const char* fgcENTRYSUF; 00073 00074 protected: 00075 void ProcessTreeNew(TTree* tree, Int_t times); 00076 00077 private: 00078 00080 TString fxHistogramName; 00081 00083 TString fxTreeName; 00084 00086 TString fxVarExp; 00087 00089 TString fxCutExp; 00090 00091 Int_t fiDynListInterval; 00092 00095 Bool_t fbNewHistogram; 00096 00098 Int_t fiLastEvent; 00099 00100 ClassDef(TGo4TreeHistogramEntry,3) 00101 00102 }; 00103 00104 #endif //TGO4TREEHISTOGRAMENTRY_H