KaliVeda
Toolkit for HIC analysis
KVSubEventMaker.h
1 #ifndef __KVSUBEVENTMAKER_H
2 #define __KVSUBEVENTMAKER_H
3 
4 #include "KVVarGlob.h"
5 
6 #include "KVEvent.h"
7 
41 class KVSubEventMaker: public KVVarGlob {
42 
43  std::vector<KVNucleus*> particles;
44 
45 protected:
47 
48  void fill(const KVNucleus*);
49 
50 public:
52  : KVVarGlob()
53  {
54  init();
55  }
56  KVSubEventMaker(const Char_t* nom)
57  : KVVarGlob(nom)
58  {
59  init();
60  }
61  ROOT_COPY_CTOR(KVSubEventMaker, KVVarGlob)
62  ROOT_COPY_ASSIGN_OP(KVSubEventMaker)
63 
64  virtual ~KVSubEventMaker() {}
65 
66  void Copy(TObject& obj) const;
67 
68  void Init();
69  void Reset();
70  void Calculate();
71 
72 private:
73  void init();
74 
75  ClassDef(KVSubEventMaker, 1) //Global variable for defining subevents
76 };
77 
78 #endif
int Int_t
char Char_t
double Double_t
#define ClassDef(name, id)
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:126
Global variable for defining random subevents.
void Reset()
Reset internal variables, called before treatment of each event.
KVSubEventMaker(const Char_t *nom)
void fill(const KVNucleus *)
add to internal list
void Init()
Initialisation of internal variables, called once before beginning treatment.
std::vector< KVNucleus * > particles
void init()
PRIVATE method.
Double_t getvalue_int(Int_t) const
void Copy(TObject &obj) const
void Calculate()
Calculation of global variable value(s) after filling is finished.
Base class for all global variable implementations.
Definition: KVVarGlob.h:233