GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4TreeHistogramEntry.h
Go to the documentation of this file.
1 // $Id: TGo4TreeHistogramEntry.h 1494 2015-06-08 15:33:53Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4TREEHISTOGRAMENTRY_H
15 #define TGO4TREEHISTOGRAMENTRY_H
16 
17 #include "TGo4DynamicEntry.h"
18 
19 #include "TString.h"
20 
21 class TTree;
22 
35 
36  friend class TGo4DynamicList;
37 
38  public:
41 
42  TGo4TreeHistogramEntry(const char* histogramname,
43  const char* treename,
44  const char* varexp,
45  const char* cutexp);
46 
47  virtual ~TGo4TreeHistogramEntry();
48 
50  void SetHistogramName(const char* name) { fxHistogramName = name; }
52  const char* GetHistogramName() const { return fxHistogramName.Data(); }
53 
54  void SetTreeName(const char* name) { fxTreeName = name; }
55  const char* GetTreeName() const { return fxTreeName.Data(); }
56 
57  void SetVarExp(const char* exp) { fxVarExp = exp; }
58  const char* GetVarExp() const { return fxVarExp.Data(); }
59 
60  void SetCutExp(const char* cut) { fxCutExp = cut; }
61  const char* GetCutExp() const { return fxCutExp.Data(); }
62 
63  void SetDynListInterval(Int_t value) { fiDynListInterval = value; }
64  Int_t GetDynListInterval() const { return fiDynListInterval; }
65 
67  virtual void Reset();
68 
69  virtual void Print(Option_t * = "") const;
70 
72  static const char* fgcENTRYSUF;
73 
74  protected:
75  void ProcessTreeNew(TTree* tree, Int_t times);
76 
77  private:
78 
80  TString fxHistogramName;
81 
83  TString fxTreeName;
84 
86  TString fxVarExp;
87 
89  TString fxCutExp;
90 
92 
95  Bool_t fbNewHistogram;
96 
98  Int_t fiLastEvent;
99 
100  ClassDef(TGo4TreeHistogramEntry,3)
101 
102 };
103 
104 #endif //TGO4TREEHISTOGRAMENTRY_H
static const char * fgcENTRYSUF
void SetCutExp(const char *cut)
void ProcessTreeNew(TTree *tree, Int_t times)
void SetDynListInterval(Int_t value)
void SetTreeName(const char *name)
const char * GetHistogramName() const
void SetHistogramName(const char *name)
const char * GetCutExp() const
const char * GetTreeName() const
virtual void Print(Option_t *="") const
const char * GetVarExp() const
void SetVarExp(const char *exp)