do not delete the pedestal and calibration pointers in reconstructor, pointers filled...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 17:11:53 +0000 (17:11 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 17:11:53 +0000 (17:11 +0000)
EMCAL/AliEMCALReconstructor.cxx

index 08607e5..61c5955 100644 (file)
@@ -113,7 +113,7 @@ AliEMCALReconstructor::AliEMCALReconstructor()
   if(!fPedestalData)
     {
       AliCDBEntry *entry = (AliCDBEntry*) 
-       AliCDBManager::Instance()->Get("EMCAL/Calib/Pedestals");
+      AliCDBManager::Instance()->Get("EMCAL/Calib/Pedestals");
       if (entry) fPedestalData =  (AliCaloCalibPedestal*) entry->GetObject();
     }
   
@@ -145,8 +145,10 @@ AliEMCALReconstructor::~AliEMCALReconstructor()
   // dtor
 
   if(fGeom)              delete fGeom;
-  if(fCalibData)         delete fCalibData;
-  if(fPedestalData)      delete fPedestalData;
+  
+  //No need to delete, recovered from OCDB
+  //if(fCalibData)         delete fCalibData;
+  //if(fPedestalData)      delete fPedestalData;
   
   if(fgDigitsArr){
     fgDigitsArr->Clear("C");