]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpDEVisu.cxx
Adding loading mappig from DBB (now required)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDEVisu.cxx
index d8dbf6b3e9b9b1c506b2d6286eabbdbb193e6a8c..9939360ef540447322c9618b4d002bad950192b2 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