#define AliHMPIDCluster_h
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-
+//
+// Implementation class: AliHMPIDCluster
+//
+// class to reconstruct clester in HMPID
+// it is forseen to Solve (split) the raw cluster in
+// several clusters (# local maxima in the raw cluster -> deconvolution
+// according to a Mathieson profile of the charge
+//
#include "AliHMPIDDigit.h" //DigAdd()
#include <TObjArray.h> //DigAdd()
class TClonesArray; //Solve()
//framework part
void Draw (Option_t *opt="" ); //overloaded TObject::Print() to draw cluster in current canvas
void Print (Option_t *opt="" )const; //overloaded TObject::Print() to print cluster info
- static void FitFunc(Int_t &, Double_t *, Double_t &, Double_t *, Int_t); //fit function to be used by MINUIT
+ static void FitFunc(Int_t &iNpars, Double_t* /*deriv*/, Double_t &chi2, Double_t *par, Int_t /* */);//fit function to be used by MINUIT
//private part
Int_t Box ( )const{return fBox; }
void CoG ( ); //calculates center of gravity
Double_t Y ( )const{return fY; } //cluster y position in LRS
Double_t Ye ( )const{return fErrY; } //cluster charge in QDC channels
Double_t Chi2 ( )const{return fChi2; } //chi2 of the fit
- void DoCorrSin(Bool_t doCorrSin ){fDoCorrSin=doCorrSin;} // Set sinoidal correction
+ void DoCorrSin(Bool_t doCorrSin ){fgDoCorrSin=doCorrSin;} // Set sinoidal correction
void SetX (Double_t x ){fX=x;} // Setter
void SetY (Double_t y ){fY=y;} // Setter
protected:
Double_t fErrY; //error on y postion, [cm]
Double_t fChi2; //some estimator of the fit quality
TObjArray *fDigs; //! list of digits forming this cluster
- static Bool_t fDoCorrSin; //
+ static Bool_t fgDoCorrSin; //flag to switch on/off correction for Sinusoidal to cluster reco
ClassDef(AliHMPIDCluster,6) //HMPID cluster class
};//class AliHMPIDCluster
Int_t pc = ((AliHMPIDDigit*)fDigs->At(0))->Pc();
- if ( fX < AliHMPIDDigit::MinPcX(pc) || fX > AliHMPIDDigit::MaxPcX(pc) ||
- fY < AliHMPIDDigit::MinPcY(pc) || fY > AliHMPIDDigit::MaxPcY(pc) ) return kFALSE;
+ if ( fX < AliHMPIDParam::MinPcX(pc) || fX > AliHMPIDParam::MaxPcX(pc) ||
+ fY < AliHMPIDParam::MinPcY(pc) || fY > AliHMPIDParam::MaxPcY(pc) ) return kFALSE;
return kTRUE;