KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVVarGlobMean.h
Go to the documentation of this file.
1 #ifndef KVVarGlobMean_h
2 #define KVVarGlobMean_h
3 #include "KVVarGlob.h"
4 
34 class KVVarGlobMean: public KVVarGlob {
35 
44 
45  void init();
46 
47 protected:
48  virtual Double_t getvalue_int(Int_t i) const;
49 
50  void FillVar(Double_t v, Double_t w = 1.);
51  static void FillMethodBody(KVString& body, int type);
52 
53 public:
54  KVVarGlobMean() : KVVarGlob("KVVarGlobMean")
55  {
56  init();
57  }
58  KVVarGlobMean(const Char_t* nom) : KVVarGlob(nom)
59  {
60  init();
61  }
62  ROOT_COPY_CTOR(KVVarGlobMean, KVVarGlob)
63  ROOT_COPY_ASSIGN_OP(KVVarGlobMean)
64  virtual ~KVVarGlobMean() {}
65 
66  void Copy(TObject& obj) const;
67  void Reset();
68  void Init();
69  void Calculate();
70 
71  static void MakeClass(const Char_t* classname, const Char_t* classdesc, int type = KVVarGlob::kOneBody);
72 
73  ClassDef(KVVarGlobMean, 2)// Base class for global variables computing mean values
74 };
75 #endif
int Int_t
char Char_t
double Double_t
#define ClassDef(name, id)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
Abstract base class for global variables which calculate a mean value.
Definition: KVVarGlobMean.h:34
Double_t svar2
Definition: KVVarGlobMean.h:38
Double_t min
Definition: KVVarGlobMean.h:41
KVVarGlobMean(const Char_t *nom)
Definition: KVVarGlobMean.h:58
static void MakeClass(const Char_t *classname, const Char_t *classdesc, int type=KVVarGlob::kOneBody)
Double_t max
Definition: KVVarGlobMean.h:42
static void FillMethodBody(KVString &body, int type)
virtual Double_t getvalue_int(Int_t i) const
void FillVar(Double_t v, Double_t w=1.)
void Copy(TObject &obj) const
Copy this to a.
Double_t svar
Definition: KVVarGlobMean.h:39
Double_t ect
Definition: KVVarGlobMean.h:37
Double_t var
Definition: KVVarGlobMean.h:36
Base class for all global variable implementations.
Definition: KVVarGlob.h:217