KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVCouple.h
1
3
4#ifndef __KVCOUPLE_H
5#define __KVCOUPLE_H
6
7#include "Rtypes.h"
8#include "TMath.h"
9
16class KVCouple {
17
18protected:
19 std::vector<Int_t> tz1;
20 std::vector<Int_t> tz2;
27
28public:
29 KVCouple();
30
31 KVCouple(Int_t zf, Int_t zsup);
32 KVCouple(Int_t zf, Int_t zsup, Int_t div);
33
34 void ResetVars()
35 {
36 current_idx = 0;
37 zlim = 0;
38 nbre = 0;
39 zfra = 0;
40 zmax = 0;
41 init = kFALSE;
42 }
43
44 virtual ~KVCouple()
45 {
46 ResetVars();
47 init = kFALSE;
48 }
49
51 {
52 return tz1[idx];
53 }
55 {
56 return tz2[idx];
57 }
59 {
60 return nbre;
61 }
62
63
64 ClassDef(KVCouple, 1) //Handle binary decomposition of an integer
65};
66
67#endif
int Int_t
bool Bool_t
constexpr Bool_t kFALSE
#define ClassDef(name, id)
Handles binary decomposition of an integer.
Definition KVCouple.h:16
Int_t GetNbreCouples()
Definition KVCouple.h:58
Int_t nbre
Definition KVCouple.h:23
std::vector< Int_t > tz1
Definition KVCouple.h:19
Int_t current_idx
Definition KVCouple.h:21
virtual ~KVCouple()
Definition KVCouple.h:44
Int_t zfra
Definition KVCouple.h:24
Int_t zmax
Definition KVCouple.h:25
Bool_t init
Definition KVCouple.h:26
Int_t GetZ2(Int_t idx)
Definition KVCouple.h:54
KVCouple()
Default constructor.
Definition KVCouple.cpp:13
Int_t GetZ1(Int_t idx)
Definition KVCouple.h:50
Int_t zlim
Definition KVCouple.h:22
void ResetVars()
Definition KVCouple.h:34
std::vector< Int_t > tz2
Definition KVCouple.h:20