]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Clear() removed; safer delating of histogram added
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Oct 2007 11:12:40 +0000 (11:12 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Oct 2007 11:12:40 +0000 (11:12 +0000)
TOF/AliTOFPreprocessor.cxx

index 13992f70d178aed2d8d8241c8c6befaa157513de..bc3b44746b44bd86c3018f3e194019641c633350 100644 (file)
@@ -81,7 +81,7 @@ AliTOFPreprocessor::~AliTOFPreprocessor()
     fh2 = 0;
   }
   if (fCal){
-    fCal->Clear();
+    //    fCal->Clear();
     delete fCal;
     fCal = 0;
   }
@@ -226,6 +226,7 @@ UInt_t AliTOFPreprocessor::Process(TMap* dcsAliasMap)
          AliInfo(Form("Got the file %s, now we can extract some values.", fileName.Data()));
 
          daqFile = new TFile(fileName.Data(),"READ");
+         if (fh2) delete fh2;
          fh2 = (TH2S*) daqFile->Get("htoftot");
          if (!fh2){
            Log("some problems occurred:: No histo retrieved, TOF exiting from Shuttle");