]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHClusterFinder.h
Bug Correction
[u/mrichter/AliRoot.git] / RICH / AliRICHClusterFinder.h
1 #ifndef AliRICHClusterFinder_h
2 #define AliRICHClusterFinder_h
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 #include "TTask.h"
8
9 #include "AliRICH.h"
10 class AliHitMap;
11
12 class AliRICHClusterFinder : public TTask
13 {
14 public:    
15            AliRICHClusterFinder(AliRICH *pRICH);
16   virtual ~AliRICHClusterFinder()                                          {;}
17   
18   AliRICH        *R()                                              {return fRICH;}   //returns pointer to RICH  
19   void            Exec();                                                            //loop on events and chambers  
20   void            FindClusters(Int_t iChamber);                                      //find all clusters for a given chamber
21   void            FindClusterContribs(AliRICHcluster *pCluster);                     //find CFM for the current cluster
22   void            FormRawCluster(Int_t i, Int_t j);                                  //form a raw cluster
23   void            FindLocalMaxima();                                                 //find local maxima in a cluster
24   void            FitCoG();                                                          //evaluate the CoG as the best 
25   void            WriteRawCluster();                                                 //write in the list of cluster  
26   void            WriteResolvedCluster();                                            //write in the list of cluster  
27   AliRICHcluster *GetRawCluster()                           {return &fRawCluster;}   //returns pointer to the current raw cluster
28   Bool_t          GetDebug()                      const{return fRICH->GetDebug();}   //is debug printout needed?
29 protected:
30   AliRICH                *fRICH;                         //pointer to RICH
31   AliHitMap              *fDigitMap;                     //map of digits positions
32   AliRICHcluster         fRawCluster;                    //current raw cluster before deconvolution
33   AliRICHcluster         fResolvedCluster;               //current cluster after deconvolution
34   Int_t                  fNlocals;                       //number of local maxima
35   Double_t               fLocalX[100],fLocalY[100];      //list of locals X,Y
36   Double_t               fLocalQ[100];                   //list of locals charge Q
37   Int_t                  fLocalC[100];                   //list of locals CombiPid
38   ClassDef(AliRICHClusterFinder,0) //finds raw clusters, trasfers them to resolved clusters through declustering.
39 };
40 #endif