1 #ifndef AliRICHClusterFinder_h
2 #define AliRICHClusterFinder_h
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
13 class AliSegmentation;
14 class AliRICHResponse;
17 class AliRICHClusterFinder : public TObject
20 AliRICHClusterFinder(AliRICH *pRICH);
21 virtual ~AliRICHClusterFinder() {;}
23 void Exec(); //Loop on events and chambers
24 void FindRawClusters(); //Search for clusters
25 void AddDigit2Cluster(Int_t i, Int_t j, AliRICHRawCluster &c);
26 void Decluster(AliRICHRawCluster *cluster); //Decluster
27 void CalibrateCOG(); //Self Calibration of COG
28 void SinoidalFit(Float_t x, Float_t y, TF1 *func);
30 Bool_t Centered(AliRICHRawCluster *cluster);
31 void SplitByLocalMaxima(AliRICHRawCluster *cluster);
32 void FillCluster(AliRICHRawCluster *cluster, Int_t flag);
34 void AddRawCluster(const AliRICHRawCluster c) {c.Print("");Rich()->AddClusterOld(fChamber,c);fNRawClusters++;}
35 void FillCluster(AliRICHRawCluster *cluster) {FillCluster(cluster,1);}
36 void SetNperMax(Int_t npermax=5) {fNperMax = npermax;} //Set max. Number of pads per local cluster
37 void SetClusterSize(Int_t clsize=100) {fMaxClusterSize = clsize;}//Max. cluster size; bigger clusters will be rejected
39 AliRICH * Rich() {return fRICH;}
42 AliSegmentation *fSegmentation; //Segmentation model
43 AliRICHResponse* fResponse; //Response model
44 AliHitMap *fHitMap; //Hit Map with digit positions
45 TF1* fCogCorr; //Correction for center of gravity
46 TClonesArray* fDigits; //List of digits
47 Int_t fNdigits; //Number of digits
48 Int_t fChamber; //Chamber number
49 Int_t fNRawClusters; //Number of raw clusters
50 Int_t fNperMax; //Number of pad hits per local maximum
51 Int_t fMaxClusterSize; //Max size of cluster allowed
52 Int_t fNPeaks; //Number of maxima in the cluster
53 ClassDef(AliRICHClusterFinder,0) //Class for clustering and reconstruction of space points