KaliVeda
Toolkit for HIC analysis
KVClust3D.h
1 
4 #ifndef __KVCLUST3D_H
5 #define __KVCLUST3D_H
6 
7 #include "TH3D.h"
8 #include "TH2D.h"
9 #include "TArray.h"
10 
18 class KVClust3D : public TH3D {
19 
20 protected:
21 
22  Int_t fNclusters;
23  Double_t fThreshold;
24  TH2D* fVoisins;
25  TH3D* fCluster;
26  Bool_t fKeepLonelyCells;
27  Int_t fNvoisins;
29  TArrayI* fNcells;
30  TArrayD* fPop;
31 
32  void init();
33 
34 public:
35 
36  KVClust3D();
37  KVClust3D(const char* name, const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup, Int_t nbinsz, Double_t zlow, Double_t zup);
38  KVClust3D(const char* name, const char* title, Int_t nbinsx, const Float_t* xbins, Int_t nbinsy, const Float_t* ybins, Int_t nbinsz, const Float_t* zbins);
39  KVClust3D(const char* name, const char* title, Int_t nbinsx, const Double_t* xbins, Int_t nbinsy, const Double_t* ybins, Int_t nbinsz, const Double_t* zbins);
40 
41  virtual ~KVClust3D();
42 
43  TH3D* ProduceTH3D(const Char_t* name) const;
44  void PrintInputs() const;
45  void ResetObjects();
46  void PrintResults() const;
47  void Clusterize();
48  void SetThreshold(Double_t);
50  Double_t GetThreshold() const;
51 
52  void SetLonelyCells(Bool_t);
54 
55  Double_t GetVolumeCell() const;
56  Double_t GetVolumeVoisin() const;
57 
58  void SetNvoisins(Int_t);
59  Int_t GetNvoisins() const;
60 
61  Int_t GetNclusters() const;
62  Int_t* GetSize() const;
63  Double_t* GetPop() const;
64  TH3D* GetClusterIndex() const;
65 
66  ClassDef(KVClust3D, 1) //TH3 object which allow clusterization in cell density
67 };
68 
69 #endif
int Int_t
bool Bool_t
char Char_t
float Float_t
double Double_t
#define ClassDef(name, id)
char name[80]
TH3 object which allow clusterization in cell density.
Definition: KVClust3D.h:18
Int_t GetNclusters() const
Definition: KVClust3D.cpp:543
void PrintResults() const
Definition: KVClust3D.cpp:587
KVClust3D()
Default constructor.
Definition: KVClust3D.cpp:38
void ResetObjects()
Definition: KVClust3D.cpp:173
TH3D * ProduceTH3D(const Char_t *name) const
Definition: KVClust3D.cpp:251
Double_t * GetPop() const
Definition: KVClust3D.cpp:572
void SetDensityThreshold(Double_t)
Set density threshold on the content of a cell to be considered has filled.
Definition: KVClust3D.cpp:204
void Clusterize()
Definition: KVClust3D.cpp:285
virtual ~KVClust3D()
Definition: KVClust3D.cpp:93
Int_t GetNvoisins() const
Definition: KVClust3D.cpp:139
Double_t GetThreshold() const
return the value of the threshold for the content of a cell to be considered has filled
Definition: KVClust3D.cpp:217
void SetThreshold(Double_t)
Set threshold on the content of a cell to be considered has filled.
Definition: KVClust3D.cpp:191
void PrintInputs() const
Definition: KVClust3D.cpp:229
void SetNvoisins(Int_t)
Definition: KVClust3D.cpp:129
void SetLonelyCells(Bool_t)
Definition: KVClust3D.cpp:109
TH3D * GetClusterIndex() const
Definition: KVClust3D.cpp:608
Double_t GetVolumeVoisin() const
Definition: KVClust3D.cpp:159
Bool_t IsLonelyCellsAreKept() const
Definition: KVClust3D.cpp:119
Double_t GetVolumeCell() const
Definition: KVClust3D.cpp:149
Int_t * GetSize() const
Definition: KVClust3D.cpp:557
const double xbins[xbins_n]