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 // Author : S.C. Phatak
13 // Modified by : B.K. Nandi, Ajay Dash
16 #include "AliPMDClustering.h"
22 class AliPMDClusteringV2 : public AliPMDClustering
27 AliPMDClusteringV2(const AliPMDClusteringV2 &pmdclv2);
28 AliPMDClusteringV2 &operator=(const AliPMDClusteringV2 &pmdclv2);
29 virtual ~AliPMDClusteringV2();
31 void DoClust(Int_t idet, Int_t ismn, Double_t celladc[][96],
33 Int_t CrClust(Double_t ave, Double_t cutoff, Int_t nmx1,
34 Int_t iord1[], Double_t edepcell[]);
35 void RefClust(Int_t incr, Double_t edepcell[]);
37 void ClustDetails(Int_t ncell, Int_t nclust, Double_t x[],
38 Double_t y[], Double_t z[], Double_t xc[],
39 Double_t yc[], Double_t zc[],
40 Double_t rcl[], Double_t rcs[], Double_t cells[],
41 TArrayI &testncl, TArrayI &testindex);
42 Double_t Distance(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
43 void SetEdepCut(Float_t decut);
47 TObjArray *fPMDclucont;
49 static const Double_t fgkSqroot3by2; // fgkSqroot3by2 = sqrt(3.)/2.
51 kNMX = 11424, // no. of cells in a module
52 kNDIMX = 119, // max no. of cells along x direction
53 kNDIMY = 96 // max no. of cells along axis at 60 deg with x axis
55 Int_t fInfocl[2][kNDIMX][kNDIMY]; // cellwise information on the
56 // cluster to which the cell
57 Int_t fInfcl[3][kNMX]; // cluster information [0][i]
59 Double_t fCoord[2][kNDIMX][kNDIMY];
61 Float_t fCutoff; // Energy(ADC) cutoff per cell before clustering
63 ClassDef(AliPMDClusteringV2,3) // Does clustering for PMD