1 #ifndef ALIPMDCLUSTERINGV2_H
2 #define ALIPMDCLUSTERINGV2_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5 //-----------------------------------------------------//
7 // Header File : PMDClusteringV2.h, //
9 // clustering code for alice pmd //
11 //-----------------------------------------------------//
12 /* --------------------------------------------------------------------
13 Code developed by S. C. Phatak, Institute of Physics,
14 Bhubaneswar 751 005 ( phatak@iopb.res.in ) Given the energy deposited
15 ( or ADC value ) in each cell of supermodule ( pmd or cpv ), the code
16 builds up superclusters and breaks them into clusters. The input is
17 in array d[ndimx][ndimy] and cluster information is in array
18 clusters[5][5000]. integer clno gives total number of clusters in the
20 d, clno and clusters are the only global ( public ) variables. Others
21 are local ( private ) to the code.
22 At the moment, the data is read for whole detector ( all supermodules
23 and pmd as well as cpv. This will have to be modify later )
24 LAST UPDATE : October 23, 2002
25 -----------------------------------------------------------------------*/
30 class AliPMDClusteringV2 : public AliPMDClustering
35 virtual ~AliPMDClusteringV2();
37 void DoClust(Int_t idet, Int_t ismn, Double_t celladc[][96],
41 Int_t CrClust(Double_t ave, Double_t cutoff, Int_t nmx1);
42 void RefClust(Int_t incr);
44 void ClustDetails(Int_t ncell, Int_t nclust, Double_t &x,
45 Double_t &y, Double_t &z, Double_t &xc,
46 Double_t &yc, Double_t &zc,
47 Double_t &rcl, Double_t &rcs, Double_t &cells);
48 Double_t Distance(Double_t x1, Double_t y1,
49 Double_t x2, Double_t y2);
50 void SetEdepCut(Float_t decut);
54 static const Double_t fgkSqroot3by2; // fgkSqroot3by2 = sqrt(3.)/2.
63 kNMX : # of cells in a supermodule
64 kNDIMX : maximum number of cells along x direction (origin at one corner)
65 kNDIMY : maximum number of cells along axis at 60 degrees with x axis
68 Double_t fEdepCell[kNDIMX][kNDIMY]; //energy(ADC) in each cell of the supermodule
69 Double_t fClusters[6][5000]; // Cluster informations
70 Int_t fClno; // number of clusters in a supermodule
73 clusters[0][i] --- x position of the cluster center
74 clusters[1][i] --- y position of the cluster center
75 clusters[2][i] --- total energy in the cluster
76 clusters[3][i] --- number of cells forming the cluster
77 ( possibly fractional )
78 clusters[4][i] --- cluster sigma x
79 clusters[5][i] --- cluster sigma y
82 Int_t fIord[2][kNMX]; // ordered list of i and j according to
83 // decreasing energy dep.
84 Int_t fInfocl[2][kNDIMX][kNDIMY]; // cellwise information on the
85 // cluster to which the cell
86 Int_t fInfcl[3][kNMX]; // cluster information [0][i]
88 Double_t fCoord[2][kNDIMX][kNDIMY];
91 fIord --- ordered list of i and j according to decreasing energy dep.
92 fInfocl --- cellwise information on the cluster to which the cell
93 belongs and whether it has largest energy dep. or not
94 ( now redundant - probably )
95 fInfcl --- cluster information [0][i] -- cluster number
96 [1][i] -- i of the cell
97 [2][i] -- j of the cell
98 coord --- x and y coordinates of center of each cell
101 Float_t fCutoff; // Energy(ADC) cutoff per cell before clustering
103 ClassDef(AliPMDClusteringV2,0) // Does clustering for PMD