]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In Initialize(): test if the preprocessor is applicable before
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Dec 2007 12:00:32 +0000 (12:00 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Dec 2007 12:00:32 +0000 (12:00 +0000)
loding mapping
(Laurent)

MUON/AliMUONPreprocessor.cxx

index 6fc433fd2857b79cb38310b41216037befcb53e1..cd02d6d31d9998c8900864dfe1422ab1029c5585 100644 (file)
@@ -92,8 +92,12 @@ AliMUONPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
   delete AliMpSegmentation::Instance(false);
   delete AliMpDDLStore::Instance(false);
   
-  // Load mapping from CDB for this run
+  if ( ! IsApplicable() ) {
+    Log(Form("WARNING-RunType=%s is not one I should handle.",GetRunType()));
+    return;
+  }   
   
+  // Load mapping from CDB for this run
   AliCDBEntry* cdbEntry = GetFromOCDB("Calib", "Mapping");
   if (!cdbEntry)
   {
@@ -116,10 +120,6 @@ AliMUONPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
       Subprocessor(i)->Initialize(run,startTime,endTime);
     }
   }
-
-  if (! IsApplicable() ) 
-    Log(Form("WARNING-RunType=%s is not one I should handle.",GetRunType()));
-
   Log(Form("Initialize was %s",( IsValid() ? "fine" : "NOT OK")));
 }