]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALSDigitizer.cxx
Define Clear for AliEMCALDigits to delete the owned arrays when the TClonesArray...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSDigitizer.cxx
index 9c6ee153513d8bff276273a1298a80185188e92a..86fedf03ed482da50f4ddcb0a38f587a36d1e9f2 100644 (file)
@@ -272,9 +272,9 @@ void AliEMCALSDigitizer::Exec(Option_t *option)
                        emcalLoader->MakeSDigitsContainer();
                        treeS = emcalLoader->TreeS();
                }
-               //TClonesArray * hits = emcalLoader->Hits() ; 
+
                TClonesArray * sdigits = emcalLoader->SDigits() ;
-               sdigits->Clear();
+               sdigits->Clear("C");
                
                Int_t nSdigits = 0 ;
                Int_t iHit, iTrack, iSDigit;
@@ -487,7 +487,7 @@ void AliEMCALSDigitizer::PrintSDigits(Option_t * option)
        printf("%s",tempo); 
       }         
     }
-    delete tempo ;
+    delete [] tempo ;
     printf("\n** Sum %2.3f : %10.3f GeV/c **\n ", isum, Calibrate(isum));
   } else printf("\n");
 }