]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONClusterFinderv0.h
New version of MUON from M.Bondila & A.Morsch
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterFinderv0.h
1 #ifndef AliMUONClusterFinderv0_H
2 #define AliMUONClusterFinderv0_H
3 ////////////////////////////////////////////////
4 //  MUON Cluster Finder Class                 //
5 ////////////////////////////////////////////////
6 #include "AliMUONClusterFinder.h"
7 //#include "TF1.h"
8
9 class AliMUONClusterFinderv0 :
10 public AliMUONClusterFinder {
11 //public:
12 //    TClonesArray*           fDigits;
13 //    Int_t                   fNdigits;
14 //protected:
15 //    AliMUONsegmentation*    fSegmentation;
16 //    AliMUONresponse*        fResponse;
17 //    TClonesArray*           fRawClusters;
18 //    Int_t                   fChamber;
19 //    Int_t                   fNRawClusters;
20 //    AliMUONHitMapA1*        fHitMap;
21 //    TF1*                   fCogCorr;
22     
23  public:
24     AliMUONClusterFinderv0
25         (AliMUONsegmentation *segmentation,
26          AliMUONresponse *response, TClonesArray *digits, Int_t chamber);
27     AliMUONClusterFinderv0();
28     ~AliMUONClusterFinderv0(){delete fRawClusters;}
29 //    virtual void SetSegmentation(
30 //      AliMUONsegmentation *segmentation){
31 //      fSegmentation=segmentation;
32 //   }
33 //    virtual void SetResponse(AliMUONresponse *response) {
34 //      fResponse=response;
35 //   }
36
37 //    virtual void SetDigits(TClonesArray *MUONdigits) {
38 //      fDigits=MUONdigits;
39 //      fNdigits = fDigits->GetEntriesFast();
40 //   }
41     
42 //    virtual void SetChamber(Int_t ich){
43 //      fChamber=ich;
44 //   }
45     
46 //    virtual void AddRawCluster(const AliMUONRawCluster);
47     // Search for raw clusters
48     virtual void FindRawClusters();
49 //    virtual void  FindCluster(Int_t i, Int_t j, AliMUONRawCluster &c);
50     // Specific methods
51     virtual void SetOffset(AliMUONRawCluster *cluster);
52     virtual Int_t PeakOffsetAndCoordinates(Int_t DigitIndex, Float_t *X, Float_t *Y);
53     // Decluster
54     virtual void Decluster(AliMUONRawCluster *cluster);
55     // Self Calibration of COG 
56 //    virtual void CalibrateCOG();
57 //    virtual void SinoidalFit(Float_t x, Float_t y, TF1 &func);
58     //
59 //    virtual void CorrectCOG(){;}
60     
61     //
62     virtual Bool_t Centered(AliMUONRawCluster *cluster);
63     virtual void   SplitByLocalMaxima(AliMUONRawCluster *cluster);
64 //    virtual void   FillCluster(AliMUONRawCluster *cluster);
65     void AliMUONClusterFinderv0::DumpCluster(class AliMUONRawCluster *);
66     
67     
68     TClonesArray* RawClusters(){return fRawClusters;}
69     ClassDef(AliMUONClusterFinderv0,1) //Class for clustering and reconstruction of space points
70 };
71 #endif
72
73
74
75
76
77
78