1 #ifndef AliMUONClusterFinder_H
2 #define AliMUONClusterFinder_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////
9 // MUON Cluster Finder Class //
10 ////////////////////////////////////////////////
11 #include "AliMUONHitMap.h"
13 class AliMUONClusterFinder :
17 TClonesArray* fDigits;
20 AliMUONsegmentation* fSegmentation;
21 AliMUONresponse* fResponse;
22 TClonesArray* fRawClusters;
25 AliMUONHitMapA1* fHitMap;
33 (AliMUONsegmentation *segmentation,
34 AliMUONresponse *response, TClonesArray *digits, Int_t chamber);
35 AliMUONClusterFinder();
36 ~AliMUONClusterFinder(){delete fRawClusters;}
37 virtual void SetSegmentation(
38 AliMUONsegmentation *segmentation){
39 fSegmentation=segmentation;
41 virtual void SetResponse(AliMUONresponse *response) {
45 virtual void SetDigits(TClonesArray *MUONdigits) {
47 fNdigits = fDigits->GetEntriesFast();
50 virtual void SetChamber(Int_t ich){
54 virtual void AddRawCluster(const AliMUONRawCluster);
55 // Search for raw clusters
56 virtual void FindRawClusters();
57 virtual void FindCluster(Int_t i, Int_t j, AliMUONRawCluster &c);
59 virtual void Decluster(AliMUONRawCluster *cluster);
60 // Set max. Number of pads per local cluster
61 virtual void SetNperMax(Int_t npermax=5) {fNperMax = npermax;}
63 virtual void SetDeclusterFlag(Int_t flag=1) {fDeclusterFlag =flag;}
64 // Set max. cluster size ; bigger clusters will be rejected
65 virtual void SetClusterSize(Int_t clsize=5) {fClusterSize = clsize;}
66 // Self Calibration of COG
67 virtual void CalibrateCOG();
68 virtual void SinoidalFit(Float_t x, Float_t y, TF1 &func);
70 virtual void CorrectCOG(){;}
73 virtual Bool_t Centered(AliMUONRawCluster *cluster);
74 virtual void SplitByLocalMaxima(AliMUONRawCluster *cluster);
75 virtual void FillCluster(AliMUONRawCluster *cluster, Int_t);
76 virtual void FillCluster(AliMUONRawCluster *cluster) {
77 FillCluster(cluster,1);}
78 TClonesArray* RawClusters(){return fRawClusters;}
79 ClassDef(AliMUONClusterFinder,1) //Class for clustering and reconstruction of space points