KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVVarGlob1.h
1#ifndef KVVarGlob1_h
2#define KVVarGlob1_h
3#include "KVVarGlob.h"
4
14class KVVarGlob1: public KVVarGlob {
15
17 void init(void)
18 {
19 var = 0;
20 }
21
22protected:
23 void FillVar(Double_t val)
24 {
25 var += val;
26 }
28 {
29 var = val;
30 }
31 static void FillMethodBody(KVString& body, int type);
32
34 {
35 return var;
36 }
37
38public:
39 KVVarGlob1() : KVVarGlob("KVVarGlob1")
40 {
41 init();
42 }
43 KVVarGlob1(const Char_t* nom) : KVVarGlob(nom)
44 {
45 init();
46 }
47 ROOT_COPY_CTOR(KVVarGlob1, KVVarGlob)
48 ROOT_COPY_ASSIGN_OP(KVVarGlob1)
49 virtual ~KVVarGlob1() {}
50
51 void Copy(TObject& obj) const
52 {
53 KVVarGlob::Copy(obj);
54 ((KVVarGlob1&)obj).var = var;
55 }
56 void Init()
57 {
58 init();
59 }
60 void Reset()
61 {
62 init();
63 }
64
65 static void MakeClass(const Char_t* classname,
66 const Char_t* classdesc, int type = KVVarGlob::kOneBody);
68 {
69 return 1;
70 }
71
72 ClassDef(KVVarGlob1, 1) // Base class for global variables with one value
73};
74#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 single value.
Definition KVVarGlob1.h:14
void init(void)
Definition KVVarGlob1.h:17
void Init()
Definition KVVarGlob1.h:56
Int_t GetNumberOfValues() const
Definition KVVarGlob1.h:67
Double_t getvalue_int(Int_t) const
Definition KVVarGlob1.h:33
static void MakeClass(const Char_t *classname, const Char_t *classdesc, int type=KVVarGlob::kOneBody)
KVVarGlob1(const Char_t *nom)
Definition KVVarGlob1.h:43
void SetValue(Double_t val)
Definition KVVarGlob1.h:27
void FillVar(Double_t val)
Definition KVVarGlob1.h:23
static void FillMethodBody(KVString &body, int type)
Double_t var
the quantity to be calculated
Definition KVVarGlob1.h:16
void Reset()
Definition KVVarGlob1.h:60
void Copy(TObject &obj) const
Definition KVVarGlob1.h:51
Base class for all global variable implementations.
Definition KVVarGlob.h:233
void Copy(TObject &obj) const
Definition KVVarGlob.h:346