+ virtual Int_t AreNeighbours(AliPHOSDigit * d1, AliPHOSDigit * d2)const ;
+ // Checks if digits are in neighbour cells
+
+ virtual void GetNumberOfClustersFound(int * numb )const{ numb[0] = fNumberOfEmcClusters ;
+ numb[1] = fNumberOfCpvClusters ; }
+
+ virtual Float_t GetEmcClusteringThreshold()const{ return fEmcClusteringThreshold;}
+ virtual Float_t GetEmcLocalMaxCut()const { return fEmcLocMaxCut;}
+ virtual Float_t GetEmcLogWeight()const { return fW0;}
+ virtual Float_t GetCpvClusteringThreshold()const{ return fCpvClusteringThreshold; }
+ virtual Float_t GetCpvLocalMaxCut()const { return fCpvLocMaxCut;}
+ virtual Float_t GetCpvLogWeight()const { return fW0CPV;}
+ virtual Float_t GetEcoreRadius()const { return fEcoreRadius;}
+ // virtual const char * GetRecPointsBranch() const{ return GetName() ;}
+
+ virtual void Digits2Clusters(Option_t *option);
+
+ void Print(const Option_t * = "")const ;
+
+ virtual void SetEmcClusteringThreshold(Float_t cluth) { fEmcClusteringThreshold = cluth ; }
+ virtual void SetEmcLocalMaxCut(Float_t cut) { fEmcLocMaxCut = cut ; }
+ virtual void SetEmcLogWeight(Float_t w) { fW0 = w ; }
+ virtual void SetCpvClusteringThreshold(Float_t cluth) { fCpvClusteringThreshold = cluth ; }
+ virtual void SetCpvLocalMaxCut(Float_t cut) { fCpvLocMaxCut = cut ; }
+ virtual void SetCpvLogWeight(Float_t w) { fW0CPV = w ; }
+ virtual void SetUnfolding(Bool_t toUnfold = kTRUE ) { fToUnfold = toUnfold ;}
+ virtual void SetCoreRadius(Float_t coreRadius) { fEcoreRadius = coreRadius ;}
+ //Switch to "on flyght" mode, without writing to TreeR and file
+ void SetWriting(Bool_t toWrite = kFALSE){fWrite = toWrite;}
+ static Double_t ShowerShape(Double_t x, Double_t z) ; // Shape of EM shower used in unfolding;
+ //class member function (not object member function)
+ static void UnfoldingChiSquare(Int_t & nPar, Double_t * Grad, Double_t & fret, Double_t * x, Int_t iflag) ;
+ // Chi^2 of the fit. Should be static to be passed to MINUIT
+ // void Unload() ;
+ virtual const char * Version() const { return "clu-v1"; }
+
+protected:
+
+ void WriteRecPoints() ;
+ virtual void MakeClusters( ) ;
+ virtual Bool_t IsInEmc (AliPHOSDigit * digit)const ; // Tells if id digit is in EMC
+ virtual Bool_t IsInCpv (AliPHOSDigit * digit)const ; // Tells if id digit is in CPV
+ void CleanDigits(TClonesArray * digits) ;
+ void SetDistancesToBadChannels();
+ virtual Float_t Calibrate(Float_t amp, Int_t absId) const ; // Tranforms ADC counts to energy
+ virtual Float_t CalibrateT(Float_t amp, Int_t absId, Bool_t isLG) const ; //Tranforms Sample counts to sec.
+ Bool_t CheckTimeGate(Float_t t1, Float_t amp1, Float_t t2, Float_t amp2)const ; //Checks if time difference is reasonable
+