]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AliHMPIDCluster.h
IO test for Interpolator
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDCluster.h
index 8ad95e3e83eed054130c20fbca48d24573e1c72f..163fb0bb1da0ec38108853b7e6e17f522e6286c4 100644 (file)
@@ -2,7 +2,14 @@
 #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()
@@ -28,7 +35,7 @@ public:
 //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
@@ -49,7 +56,7 @@ public:
          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:
@@ -69,7 +76,7 @@ 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
 
@@ -107,8 +114,8 @@ Bool_t AliHMPIDCluster::IsInPc()
   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;