]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPreprocessor.cxx
Load pythia libraries.
[u/mrichter/AliRoot.git] / MUON / AliMUONPreprocessor.cxx
index 3fe840195f1384d9bd5eb6cf03f75c8fca85bddb..cd02d6d31d9998c8900864dfe1422ab1029c5585 100644 (file)
@@ -48,6 +48,7 @@ ClassImp(AliMUONPreprocessor)
 AliMUONPreprocessor::AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle)
 : AliPreprocessor(detName, shuttle),
   fIsValid(kFALSE),
+  fIsApplicable(kTRUE),
   fSubprocessors(new TObjArray()),
   fProcessDCS(kFALSE)
 {
@@ -69,6 +70,7 @@ AliMUONPreprocessor::ClearSubprocessors()
   fSubprocessors->Clear();
   fProcessDCS = kFALSE;
   fIsValid = kFALSE;
+  fIsApplicable = kTRUE;
 }
 
 //_____________________________________________________________________________
@@ -90,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)
   {
@@ -114,7 +120,6 @@ AliMUONPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
       Subprocessor(i)->Initialize(run,startTime,endTime);
     }
   }
-
   Log(Form("Initialize was %s",( IsValid() ? "fine" : "NOT OK")));
 }
 
@@ -130,6 +135,12 @@ AliMUONPreprocessor::Process(TMap* dcsAliasMap)
     return 99;
   }
   
+  if (!IsApplicable())
+  {
+    Log("Nothing to do for me");
+    return 0;
+  }
+  
   UInt_t rv(0);
   
   for ( Int_t i = 0; i <= fSubprocessors->GetLast(); ++i )