Adding loading mappig from DBB (now required)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 10:52:30 +0000 (10:52 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 10:52:30 +0000 (10:52 +0000)
(Christian)

MUON/mapping/AliMpDEVisu.cxx

index d8dbf6b..9939360 100644 (file)
@@ -38,6 +38,7 @@
 #include "AliMpPad.h"
 #include "AliMpDDLStore.h"
 #include "AliMpVPadIterator.h"
+#include "AliMpCDB.h"
 
 #include "AliLog.h"
 
@@ -90,11 +91,25 @@ AliMpDEVisu::AliMpDEVisu(UInt_t w, UInt_t h)
   fCurrentDetElem(100),
   fCurrentDEName(),
   fSegmentation(),
-  fDDLStore(AliMpDDLStore::Instance()),
   fZoomMode(false)
 {
 /// Standard constructor
 
+  // Load mapping
+  if ( ! AliMpCDB::LoadMpSegmentation() ) 
+  {
+    AliFatal("Could not access mapping from OCDB !");
+  }
+  
+  // Load DDL store
+  if ( ! AliMpCDB::LoadDDLStore() ) 
+  {
+    AliFatal("Could not access DDL Store from OCDB !");
+  }
+
+  fDDLStore = AliMpDDLStore::Instance();
+
+
   fTrashList.SetOwner(kFALSE);
   
   // Create canvas widget