]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
move minuit initialization to the unfolding method since it leaks and it is not used...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jun 2010 09:35:50 +0000 (09:35 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jun 2010 09:35:50 +0000 (09:35 +0000)
EMCAL/AliEMCALClusterizerv1.cxx

index c15f91705103f1438881d059537fa0cfac9d5afa..98348d42cea60b87723ab67cdc79f7bd55787433 100644 (file)
@@ -122,9 +122,6 @@ AliEMCALClusterizerv1::AliEMCALClusterizerv1(AliEMCALGeometry* geometry)
       AliFatal("Geometry not initialized.");
     }
 
-  if(!gMinuit)
-    gMinuit = new TMinuit(100) ;
-
 }
 
 //____________________________________________________________________________
@@ -275,6 +272,9 @@ Bool_t AliEMCALClusterizerv1::FindFit(AliEMCALRecPoint * recPoint, AliEMCALDigit
   // electromagnetic showers
 
   if (fGeom==0) AliFatal("Did not get geometry from EMCALLoader");
+       
+  if(!gMinuit)
+     gMinuit = new TMinuit(100) ;
 
   gMinuit->mncler();                     // Reset Minuit's list of paramters
   gMinuit->SetPrintLevel(-1) ;           // No Printout
@@ -599,7 +599,7 @@ void AliEMCALClusterizerv1::MakeUnfolding()
 {
   // Unfolds clusters using the shape of an ElectroMagnetic shower
   // Performs unfolding of all clusters
-
+               
   if(fNumberOfECAClusters > 0){
     if (fGeom==0)
       AliFatal("Did not get geometry from EMCALLoader") ;