]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecEmcManager.cxx
Updates for Identified High Pt macros
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecEmcManager.cxx
index c6de4e503db58eb85a1a94e60d6247178caeed4c..7ed77ad908115742b7a36af238b51bd787ec8947 100644 (file)
@@ -13,6 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+/* $Id$ */
 
 //_________________________________________________________________________
 // Class for the management by the Emc reconstruction.
 //
 // --- ROOT system ---
 
+#include <TMath.h>
+
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
 #include "AliPHOSRecEmcManager.h"
-#include "AliPHOS.h"
-#include "AliRun.h"
 
 ClassImp(AliPHOSRecEmcManager) 
 
 //____________________________________________________________________________
 
-  AliPHOSRecEmcManager::AliPHOSRecEmcManager()
+AliPHOSRecEmcManager::AliPHOSRecEmcManager():
+  fOneGamChisqCut(1.3f),
+  fOneGamInitialStep(0.00005f),
+  fOneGamChisqMin(1.f),
+  fOneGamStepMin(0.0005f),
+  fOneGamNumOfIterations(50),
+  fTwoGamInitialStep(0.00005f),
+  fTwoGamChisqMin(1.f),
+  fTwoGamEmin(0.1f),
+  fTwoGamStepMin(0.00005),
+  fTwoGamNumOfIterations(50),
+  fThr0(0.f),
+  fSqdCut(0.f)
 {
   // default ctor
-//    fOneGamChisqCut = 3.;
-  fOneGamChisqCut = 1.3; // bvp 31.08.2001 
-
-  fOneGamInitialStep = 0.00005;
-  fOneGamChisqMin = 1.;
-  fOneGamStepMin = 0.0005;
-  fOneGamNumOfIterations = 50;
-
-  fTwoGamInitialStep = 0.00005;
-  fTwoGamChisqMin = 1.;
-  fTwoGamEmin = 0.1;
-  fTwoGamStepMin = 0.00005;
-  fTwoGamNumOfIterations = 50;  
-
-//    fThr0 = 0.6;
-  fThr0 = 0.;
-//    fSqdCut = 3.;
-//    fSqdCut = 0.5; // bvp 31.08.2001
-  fSqdCut = 0.;
-
   SetTitle("Emc Reconstruction Manager");
-
 }
 
 AliPHOSRecEmcManager::~AliPHOSRecEmcManager(void) {}
 
-Float_t AliPHOSRecEmcManager::Dispersion(Float_t eTot, Float_t ai, Float_t ei) const
+Float_t AliPHOSRecEmcManager::Dispersion(Float_t ei) const
 {
   //"Dispresion" of energy deposition in the cell.
   // eTot is the total shower energy, ai is the
@@ -72,7 +64,7 @@ Float_t AliPHOSRecEmcManager::Dispersion(Float_t eTot, Float_t ai, Float_t ei) c
   return ei;
 }
 
-Float_t AliPHOSRecEmcManager::OneGamChi2(Float_t ai, Float_t ei, Float_t eTot, Float_t& gi) const
+Float_t AliPHOSRecEmcManager::OneGamChi2(Float_t ai, Float_t ei, Float_t, Float_t& gi) const
 {
   // Chi2 used in OneGam (one-gamma fitting).
   // gi is d(Chi2)/d(ai).
@@ -85,7 +77,7 @@ Float_t AliPHOSRecEmcManager::OneGamChi2(Float_t ai, Float_t ei, Float_t eTot, F
 
 }
 
-Float_t AliPHOSRecEmcManager::TwoGamChi2(Float_t ai, Float_t ei, Float_t eTot, Float_t& gi) const
+Float_t AliPHOSRecEmcManager::TwoGamChi2(Float_t ai, Float_t ei, Float_t, Float_t& gi) const
 {
   // calculates chi^2
   Float_t da = ai - ei;