]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHClusterFinder.h
Zero suppression added. Sigmas of noise generated randomly.
[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 *Rich() {return fRICH;}                                             //Pointer to RICH  
19   void     Exec();                                                            //Loop on events and chambers  
20   void     FindRawClusters(Int_t iChamber);                                   //Find raw clusters  
21   void     FormRawCluster(Int_t i, Int_t j);                                  //form a raw cluster
22   void     FindLocalMaxima();                                                 //Find local maxima in a cluster
23   void     ResolveCluster();                                                  //Try to resolve a cluster with maxima > 2
24   void     FitCoG();                                                          //Evaluate the CoG as the best 
25   void     WriteRawCluster();                                                 //write in the list of the raw clusters  
26   AliRICHcluster *GetCurrentCluster() {return &fCurrentCluster;}              //Return pointer to the current cluster
27 protected:
28   AliRICH                *fRICH;                         //Pointer to RICH
29   AliHitMap              *fHitMap;                       //Hit Map with digit positions
30   AliRICHcluster         fCurrentCluster;                //Current cluster to examine
31   ClassDef(AliRICHClusterFinder,0) //Finds raw clusters, trasfers them to resolved clusters through declustering.
32 };
33 #endif