]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In Initialise(): added loading mapping from CDB
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Jul 2007 14:08:49 +0000 (14:08 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Jul 2007 14:08:49 +0000 (14:08 +0000)
(now required as mapping data are not loaded automatically anymore)

MUON/AliMUONPreprocessor.cxx

index 614f02619d10f55397cea5d37fe8dd6c520d182c..5c91fd08a93393bf97224bd3b3073c0569ea2fb7 100644 (file)
@@ -21,6 +21,9 @@
 #include "AliMUONHVSubprocessor.h"
 #include "AliMUONGMSSubprocessor.h"
 
+#include "AliMpSegmentation.h"
+#include "AliMpDDLStore.h"
+
 #include "AliLog.h"
 #include "AliShuttleInterface.h"
 #include "Riostream.h"
@@ -79,7 +82,17 @@ AliMUONPreprocessor::Add(AliMUONVSubprocessor* sub, Bool_t processDCS)
 void
 AliMUONPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
 {
-  /// loop over subtasks and initialize them
+/// Load mapping and initialize subtasks  
+
+  // Delete previous mapping
+  delete AliMpSegmentation::Instance(false);
+  delete AliMpDDLStore::Instance(false);
+  
+  // Load mapping from CDB for this run
+  GetFromOCDB("Calib", "Mapping");
+  GetFromOCDB("Calib", "DDLStore");
+
+  // loop over subtasks and initialize them
   for ( Int_t i = 0; i <= fSubprocessors->GetLast(); ++i )
   {
     Subprocessor(i)->Initialize(run,startTime,endTime);