KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVVarGlobMean.h
1#ifndef KVVarGlobMean_h
2#define KVVarGlobMean_h
3#include "KVVarGlob.h"
4
35class KVVarGlobMean: public KVVarGlob {
36
45
46 void init();
47
48protected:
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
54public:
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.
KVVarGlobMean(const Char_t *nom)
static void MakeClass(const Char_t *classname, const Char_t *classdesc, int type=KVVarGlob::kOneBody)
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.
Base class for all global variable implementations.
Definition KVVarGlob.h:233