]>
Commit | Line | Data |
---|---|---|
543d5224 | 1 | #ifndef AliRICHClusterFinder_h |
2 | #define AliRICHClusterFinder_h | |
8265fa96 | 3 | |
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
cbaf35fb | 7 | #include "TTask.h" |
c3ef84b0 | 8 | #include "TArrayD.h" |
9 | #include "TArrayI.h" | |
543d5224 | 10 | |
9d6f9427 | 11 | #include "AliRICH.h" |
543d5224 | 12 | class AliHitMap; |
eaf390d9 | 13 | |
cbaf35fb | 14 | class AliRICHClusterFinder : public TTask |
8265fa96 | 15 | { |
eaf390d9 | 16 | public: |
17 | AliRICHClusterFinder(AliRICH *pRICH); | |
cbaf35fb | 18 | virtual ~AliRICHClusterFinder() {;} |
543d5224 | 19 | |
eaf390d9 | 20 | AliRICH *Rich() {return fRICH;} //Pointer to RICH |
9d6f9427 | 21 | void Exec(); //Loop on events and chambers |
3582c1f9 | 22 | void FindClusters(Int_t iChamber); //Find all clusters for a given chamber |
6865fb8d | 23 | void FindClusterContribs(AliRICHcluster *pCluster); //Find CombiPid for the current cluster |
9d6f9427 | 24 | void FormRawCluster(Int_t i, Int_t j); //form a raw cluster |
25 | void FindLocalMaxima(); //Find local maxima in a cluster | |
26 | void ResolveCluster(); //Try to resolve a cluster with maxima > 2 | |
27 | void FitCoG(); //Evaluate the CoG as the best | |
6865fb8d | 28 | void WriteRawCluster(); //write in the list of cluster |
29 | void WriteResolvedCluster(); //write in the list of cluster | |
30 | AliRICHcluster *GetRawCluster() {return &fRawCluster;} //Return pointer to the current raw cluster | |
3582c1f9 | 31 | Bool_t GetDebug() const {return fRICH->GetDebug();} //is debug printout needed? |
9d6f9427 | 32 | protected: |
eaf390d9 | 33 | AliRICH *fRICH; //Pointer to RICH |
9d6f9427 | 34 | AliHitMap *fHitMap; //Hit Map with digit positions |
6865fb8d | 35 | AliRICHcluster fRawCluster; //Current raw cluster before deconvolution |
36 | AliRICHcluster fResolvedCluster; //Current cluster after deconvolution | |
37 | Int_t fNlocals; // number of local maxima | |
c3ef84b0 | 38 | TArrayD fLocalX,fLocalY; // list of locals X,Y |
39 | TArrayD fLocalQ; // list of locals charge Q | |
40 | TArrayI fLocalC; // list of locals CombiPid | |
eaf390d9 | 41 | ClassDef(AliRICHClusterFinder,0) //Finds raw clusters, trasfers them to resolved clusters through declustering. |
8265fa96 | 42 | }; |
43 | #endif |