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