]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizerv1.h
select only primaries
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizerv1.h
index ef68008651dda54246176319fcd621c1a20b7338..137a1a53c9afbd0b0aa71bf2da665a9390e47e0b 100644 (file)
@@ -36,6 +36,7 @@ class AliEMCALClusterizerv1 : public AliEMCALClusterizer {
 public:
   
   AliEMCALClusterizerv1() ;         
+  AliEMCALClusterizerv1(AliEMCALGeometry* geometry);
 
   virtual ~AliEMCALClusterizerv1()  ;
 
@@ -62,34 +63,17 @@ public:
   virtual void SetECALogWeight(Float_t w)                { fECAW0 = w ; }
   virtual void SetTimeCut(Float_t gate)                 { fTimeCut = gate ;}
   virtual void SetUnfolding(Bool_t toUnfold = kTRUE )    {fToUnfold = toUnfold ;}  
-  static Double_t ShowerShape(Double_t r) ; // Shape of EM shower used in unfolding; 
+  static Double_t ShowerShape(Double_t x, Double_t y) ; // 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 passes to MINUIT
   virtual const char * Version() const { return "clu-v1" ; }  
-  TList* BookHists();
-  void   SaveHists(const char *fn="reco.root");  //*MENU*
+
   void   PrintRecoInfo();                        //*MENU*
-  void   DrawLambdasHists();                     //*MENU*
+
 protected:
 
   virtual void   MakeClusters();            
-            
-///////////////////// 
-   TList  *fHists;   //!
-   TH1F* fPointE;    //histogram of point energy
-   TH1F* fPointL1;   //histogram of point L1
-   TH1F* fPointL2;   //histogram of point L2
-   TH1F* fPointDis;  //histogram of point dispersion
-   TH1F* fPointMult; //histogram of point multiplicity
-   TH1F* fDigitAmp;  //histogram of digit ADC Amplitude
-   TH1F* fMaxE;      //histogram of maximum point energy
-   TH1F* fMaxL1;     //histogram of largest (first) of eigenvalue of covariance matrix
-   TH1F* fMaxL2;     //histogram of smalest (second) of eigenvalue of covariace matrix
-   TH1F* fMaxDis;    //histogram of point dispersion
-///////////////////////
-
 
 private:
   AliEMCALClusterizerv1(const AliEMCALClusterizerv1 &); //copy ctor
@@ -100,12 +84,12 @@ private:
   Bool_t  FindFit(AliEMCALRecPoint * emcRP, AliEMCALDigit ** MaxAt, Float_t * maxAtEnergy, 
                  Int_t NPar, Float_t * FitParametres) const; //Used in UnfoldClusters, calls TMinuit
   void Init() ;
-  void InitParameters() ;
+  void InitParameters();
 
-  virtual void   MakeUnfolding() const;
-  void           UnfoldCluster(AliEMCALRecPoint * /*iniEmc*/, Int_t /*Nmax*/
-                              AliEMCALDigit ** /*maxAt*/,
-                              Float_t * /*maxAtEnergy*/ ) const; //Unfolds cluster using TMinuit package
+  virtual void   MakeUnfolding();
+  void           UnfoldCluster(AliEMCALRecPoint * iniEmc, Int_t Nmax
+                              AliEMCALDigit ** maxAt,
+                              Float_t * maxAtEnergy ); //Unfolds cluster using TMinuit package
   void           PrintRecPoints(Option_t * option) ;
 
 private:
@@ -127,7 +111,7 @@ private:
   Float_t fTimeCut ;                // Maximum time difference between the digits in ont EMC cluster
   Float_t fMinECut;                  // Minimum energy for a digit to be a member of a cluster
 
-  ClassDef(AliEMCALClusterizerv1,6)   // Clusterizer implementation version 1
+  ClassDef(AliEMCALClusterizerv1,7)   // Clusterizer implementation version 1
 
 };