]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHClusterFinder.h
Adding comments
[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(AliRunLoader *pRunLoader);
16   virtual ~AliRICHClusterFinder()                                          {;}
17   
18   AliRICH        *R()                                              {return fRICH;}   //returns pointer to RICH  
19   void            Exec(const Option_t *option="");                                   //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 protected:
29   AliRICH                *fRICH;                         //pointer to RICH
30   AliHitMap              *fDigitMap;                     //map of digits positions
31   AliRICHCluster         fRawCluster;                    //current raw cluster before deconvolution
32   AliRICHCluster         fResolvedCluster;               //current cluster after deconvolution
33   Int_t                  fNlocals;                       //number of local maxima
34   Double_t               fLocalX[100],fLocalY[100];      //list of locals X,Y
35   Double_t               fLocalQ[100];                   //list of locals charge Q
36   Int_t                  fLocalC[100];                   //list of locals CombiPid
37   ClassDef(AliRICHClusterFinder,0) //finds raw clusters, trasfers them to resolved clusters through declustering.
38 };
39 #endif