]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONOccupancySubprocessor.cxx
Update of preprocessors.
[u/mrichter/AliRoot.git] / MUON / AliMUONOccupancySubprocessor.cxx
index 5ff5afbb60a66ebbf649eda11bf25fc5e96317cf..cd4bc3a1d1fc95578acd123ff27a8784b9364055 100644 (file)
@@ -58,7 +58,7 @@ AliMUONOccupancySubprocessor::~AliMUONOccupancySubprocessor()
 }
 
 //_____________________________________________________________________________
-void 
+Bool_t 
 AliMUONOccupancySubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
 {
   /// When starting a new run, reads in the occupancy ASCII files.
@@ -87,13 +87,16 @@ AliMUONOccupancySubprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t end
     }
   }
   
+  delete sources;
+
   if (!n)
   {
     Master()->Log("Failed to read any occupancy");
     delete fOccupancyMap;
     fOccupancyMap = 0;
+    return kFALSE;
   }
-  delete sources;
+  return kTRUE;
 }
 
 //_____________________________________________________________________________