KaliVeda
Toolkit for HIC analysis
KVVarGlobMean.h
1 #ifndef KVVarGlobMean_h
2 #define KVVarGlobMean_h
3 #include "KVVarGlob.h"
4 
35 class KVVarGlobMean: public KVVarGlob {
36 
45 
46  void init();
47 
48 protected:
49  virtual Double_t getvalue_int(Int_t i) const;
50 
51  void FillVar(Double_t v, Double_t w = 1.);
52  static void FillMethodBody(KVString& body, int type);
53 
54 public:
55  KVVarGlobMean() : KVVarGlob("KVVarGlobMean")
56  {
57  init();
58  }
59  KVVarGlobMean(const Char_t* nom) : KVVarGlob(nom)
60  {
61  init();
62  }
63  ROOT_COPY_CTOR(KVVarGlobMean, KVVarGlob)
64  ROOT_COPY_ASSIGN_OP(KVVarGlobMean)
65  virtual ~KVVarGlobMean() {}
66 
67  void Copy(TObject& obj) const;
68  void Reset();
69  void Init();
70  void Calculate();
71 
72  static void MakeClass(const Char_t* classname, const Char_t* classdesc, int type = KVVarGlob::kOneBody);
73 
74  ClassDef(KVVarGlobMean, 2)// Base class for global variables computing mean values
75 };
76 #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:73
Abstract base class for global variables which calculate a mean value.
Definition: KVVarGlobMean.h:35
Double_t svar2
Definition: KVVarGlobMean.h:39
Double_t min
Definition: KVVarGlobMean.h:42
KVVarGlobMean(const Char_t *nom)
Definition: KVVarGlobMean.h:59
static void MakeClass(const Char_t *classname, const Char_t *classdesc, int type=KVVarGlob::kOneBody)
Double_t max
Definition: KVVarGlobMean.h:43
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:40
Double_t ect
Definition: KVVarGlobMean.h:38
Double_t var
Definition: KVVarGlobMean.h:37
Base class for all global variable implementations.
Definition: KVVarGlob.h:233