delete pid utils in destructor
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Sep 2011 19:59:40 +0000 (19:59 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Sep 2011 19:59:40 +0000 (19:59 +0000)
EMCAL/AliEMCALRecoUtils.cxx

index a5ae33b..43c2093 100644 (file)
@@ -288,10 +288,10 @@ AliEMCALRecoUtils::~AliEMCALRecoUtils()
 {
   //Destructor.
        
-       if(fEMCALRecalibrationFactors) { 
-               fEMCALRecalibrationFactors->Clear();
-               delete  fEMCALRecalibrationFactors;
-       }       
+  if(fEMCALRecalibrationFactors) { 
+    fEMCALRecalibrationFactors->Clear();
+    delete  fEMCALRecalibrationFactors;
+  }    
   
   if(fEMCALTimeRecalibrationFactors) { 
                fEMCALTimeRecalibrationFactors->Clear();
@@ -299,15 +299,17 @@ AliEMCALRecoUtils::~AliEMCALRecoUtils()
        }       
   
   if(fEMCALBadChannelMap) { 
-               fEMCALBadChannelMap->Clear();
-               delete  fEMCALBadChannelMap;
-       }
+    fEMCALBadChannelMap->Clear();
+    delete  fEMCALBadChannelMap;
+  }
  
   delete fMatchedTrackIndex   ; 
   delete fMatchedClusterIndex ; 
   delete fResidualEta         ; 
   delete fResidualPhi         ; 
+  delete fPIDUtils            ;
 
+  InitTrackCuts();
 }
 
 //_______________________________________________________________