KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVClust3D.h
1
3
4#ifndef __KVCLUST3D_H
5#define __KVCLUST3D_H
6
7#include "TH3D.h"
8#include "TH2D.h"
9#include "TArray.h"
10
18class KVClust3D : public TH3D {
19
20protected:
21
31
32 void init();
33
34public:
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();
50 Double_t GetThreshold() const;
51
54
55 Double_t GetVolumeCell() 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)
TH3 object which allow clusterization in cell density.
Definition KVClust3D.h:18
void init()
initialization method
Definition KVClust3D.cpp:16
Int_t GetNclusters() const
void PrintResults() const
KVClust3D()
Default constructor.
Definition KVClust3D.cpp:38
void ResetObjects()
TH3D * ProduceTH3D(const Char_t *name) const
Double_t * GetPop() const
void SetDensityThreshold(Double_t)
Set density threshold on the content of a cell to be considered has filled.
void Clusterize()
virtual ~KVClust3D()
Definition KVClust3D.cpp:93
Bool_t fKeepLonelyCells
tells if we keep or not lonely cells, par default kTRUE
Definition KVClust3D.h:26
TArrayD * fPop
array where total contents of the clusters are stored
Definition KVClust3D.h:30
Int_t fNvoisins
Definition KVClust3D.h:27
Int_t GetNvoisins() const
Double_t GetThreshold() const
return the value of the threshold for the content of a cell to be considered has filled
void SetThreshold(Double_t)
Set threshold on the content of a cell to be considered has filled.
TH2D * fVoisins
internal histogram to gather possible connected clusters
Definition KVClust3D.h:24
void PrintInputs() const
TArrayI * fNcells
exemple sur une dimension les cellules de nx-fNvoisins a nx+fNvoisins sont prises en compte,...
Definition KVClust3D.h:29
void SetNvoisins(Int_t)
void SetLonelyCells(Bool_t)
TH3D * fCluster
3D histogram where index of each cluster is putted as content in the associated cells
Definition KVClust3D.h:25
TH3D * GetClusterIndex() const
Double_t GetVolumeVoisin() const
Bool_t IsLonelyCellsAreKept() const
Double_t GetVolumeCell() const
Double_t fThreshold
threshold on the content of each cell to be considered has filled
Definition KVClust3D.h:23
Int_t fNclusters
number of clusters found by the Clusterize method
Definition KVClust3D.h:22
Int_t * GetSize() const