KaliVeda
Toolkit for HIC analysis
KVPartitionGenerator.h
1 
4 #ifndef __KVPartitionGenerator_H
5 #define __KVPartitionGenerator_H
6 #include "KVString.h"
7 #include "KVUniqueNameList.h"
8 
9 class TTree;
10 
71 protected:
72 
74  Double_t npar, npar_zt_mt;
76  KVString kwriting_path, tname, cname;
77 
78  Bool_t to_be_checked;
79 
84  Int_t mshift;
85  Int_t zshift;
86 
89  Int_t mtot, ztot;
90  Int_t* tabz;
91 
92  Int_t kzt, kmt, kzinf;
93  Int_t* kcurrent;
94 
95  TTree* tree;
96  KVUniqueNameList* flist;
97 
99  Int_t tstart, tstop, tellapsed;
100  void Start();
101  void Stop();
102  Int_t GetDeltaTime();
103 
104  void MakePartitions(Int_t Ztot, Int_t Mtot, Int_t Zinf);
105  void SetConditions(Int_t Ztot, Int_t Mtot, Int_t Zinf);
106  void PreparTree();
107  void Process();
108 
109  void BeforeBreak();
110  void AfterBreak();
111 
112  void init();
113 
114 public:
116  virtual ~KVPartitionGenerator();
117 
118  void SetPathForFile(KVString path);
119 
120  void BreakUsing_Ztot_Zinf_Criterion(Int_t Ztot, Int_t Zinf, KVString chain_name = "", Int_t min = -1, Int_t max = -1);
121  void BreakUsing_Ztot_Zmax_Zinf_Criterion(Int_t Ztot, Int_t Zmax, Int_t Zinf, KVString chain_name = "");
122  void BreakUsing_Mtot_Zmax_Zinf_Criterion(Int_t Mtot, Int_t Zmax, Int_t Zinf, KVString chain_name = "");
123  void BreakUsing_Ztot_Mtot_Zinf_Criterion(Int_t Ztot, Int_t Mtot, Int_t Zinf, KVString chain_name = "");
124 
125  virtual void TreatePartition();
126  virtual void WriteTreeAndCloseFile();
127 
128  ClassDef(KVPartitionGenerator, 1) //Calcul numeriquement toutes les partitions d'un couple Ztot/Mtot donne
129 };
130 
131 #endif
int Int_t
bool Bool_t
double Double_t
#define ClassDef(name, id)
Permet de determiner numeriquement et exactement un ensemble de partitions d'entrees remplissante cer...
void SetPathForFile(KVString path)
void BreakUsing_Ztot_Zmax_Zinf_Criterion(Int_t Ztot, Int_t Zmax, Int_t Zinf, KVString chain_name="")
virtual ~KVPartitionGenerator()
Destructor.
KVPartitionGenerator()
Default constructor.
void BreakUsing_Ztot_Zinf_Criterion(Int_t Ztot, Int_t Zinf, KVString chain_name="", Int_t min=-1, Int_t max=-1)
virtual void WriteTreeAndCloseFile()
void BreakUsing_Ztot_Mtot_Zinf_Criterion(Int_t Ztot, Int_t Mtot, Int_t Zinf, KVString chain_name="")
void BreakUsing_Mtot_Zmax_Zinf_Criterion(Int_t Mtot, Int_t Zmax, Int_t Zinf, KVString chain_name="")
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
Optimised list in which named objects can only be placed once.
double min(double x, double y)
double max(double x, double y)