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:
46  Double_t getvalue_int(Int_t) const override;
47 
48  void fill(const KVNucleus*) override;
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 override;
67 
68  void Init() override;
69  void Reset() override;
70  void Calculate() override;
71 
72 private:
73  void init();
74 
75  ClassDefOverride(KVSubEventMaker, 1) //Global variable for defining subevents
76 };
77 
78 #endif
int Int_t
char Char_t
double Double_t
#define ClassDefOverride(name, id)
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:123
Global variable for defining random subevents.
void Init() override
Initialisation of internal variables, called once before beginning treatment.
void Calculate() override
Calculation of global variable value(s) after filling is finished.
KVSubEventMaker(const Char_t *nom)
void fill(const KVNucleus *) override
add to internal list
std::vector< KVNucleus * > particles
Double_t getvalue_int(Int_t) const override
void Reset() override
Reset internal variables, called before treatment of each event.
void Copy(TObject &obj) const override
void init()
PRIVATE method.
Base class for all global variable implementations.
Definition: KVVarGlob.h:233