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