class AliRICHClusterFinder : public TTask
{
public:
- AliRICHClusterFinder(AliRICH *pRICH);
+ AliRICHClusterFinder(AliRunLoader *pRunLoader);
virtual ~AliRICHClusterFinder() {;}
- AliRICH *Rich() {return fRICH;} //Pointer to RICH
- void Exec(); //Loop on events and chambers
- void FindRawClusters(Int_t iChamber); //Find raw clusters
- void FormRawCluster(Int_t i, Int_t j); //form a raw cluster
- void FindLocalMaxima(); //Find local maxima in a cluster
- void ResolveCluster(); //Try to resolve a cluster with maxima > 2
- void FitCoG(); //Evaluate the CoG as the best
- void WriteRawCluster(); //write in the list of the raw clusters
- AliRICHcluster *GetCurrentCluster() {return &fCurrentCluster;} //Return pointer to the current cluster
+ AliRICH *R() {return fRICH;} //returns pointer to RICH
+ void Exec(const Option_t *option=""); //loop on events and chambers
+ void FindClusters(Int_t iChamber); //find all clusters for a given chamber
+ void FindClusterContribs(AliRICHCluster *pCluster); //find CFM for the current cluster
+ void FormRawCluster(Int_t i, Int_t j); //form a raw cluster
+ void FindLocalMaxima(); //find local maxima in a cluster
+ void FitCoG(); //evaluate the CoG as the best
+ void WriteRawCluster(); //write in the list of cluster
+ void WriteResolvedCluster(); //write in the list of cluster
+ AliRICHCluster *GetRawCluster() {return &fRawCluster;} //returns pointer to the current raw cluster
protected:
- AliRICH *fRICH; //Pointer to RICH
- AliHitMap *fHitMap; //Hit Map with digit positions
- AliRICHcluster fCurrentCluster; //Current cluster to examine
- ClassDef(AliRICHClusterFinder,0) //Finds raw clusters, trasfers them to resolved clusters through declustering.
+ AliRICH *fRICH; //pointer to RICH
+ AliHitMap *fDigitMap; //map of digits positions
+ AliRICHCluster fRawCluster; //current raw cluster before deconvolution
+ AliRICHCluster fResolvedCluster; //current cluster after deconvolution
+ Int_t fNlocals; //number of local maxima
+ Double_t fLocalX[100],fLocalY[100]; //list of locals X,Y
+ Double_t fLocalQ[100]; //list of locals charge Q
+ Int_t fLocalC[100]; //list of locals CombiPid
+ ClassDef(AliRICHClusterFinder,0) //finds raw clusters, trasfers them to resolved clusters through declustering.
};
#endif