Change pointer to obj for the creation of SDigitizer
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Jan 2005 04:27:14 +0000 (04:27 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 Jan 2005 04:27:14 +0000 (04:27 +0000)
EMCAL/AliEMCAL.cxx

index 74be313..2822ed5 100644 (file)
@@ -279,10 +279,9 @@ void AliEMCAL::Hits2SDigits()
 { 
 // create summable digits
 
-  AliEMCALSDigitizer* emcalDigitizer = 
-    new AliEMCALSDigitizer(fLoader->GetRunLoader()->GetFileName().Data()) ;
-  emcalDigitizer->SetEventRange(0, -1) ; // do all the events
-  emcalDigitizer->ExecuteTask() ;
+  AliEMCALSDigitizer emcalDigitizer(fLoader->GetRunLoader()->GetFileName().Data()) ;
+  emcalDigitizer.SetEventRange(0, -1) ; // do all the events
+  emcalDigitizer.ExecuteTask() ;
 }
 
 //____________________________________________________________________________