]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONCDB.cxx
Bug fix for loading the LUT for chambers 1 to 6. (Indra)
[u/mrichter/AliRoot.git] / MUON / AliMUONCDB.cxx
index f97edf99a7ef541ae1427c692724f81612f54401..ec9eb12eb27d81c876aebd5b62f5f636ff3a1b4b 100644 (file)
@@ -28,7 +28,7 @@
 ///
 /// For more information, please see READMEcalib
 ///
-// \author Laurent Aphecetche
+/// \author Laurent Aphecetche
 //-----------------------------------------------------------------------------
 
 #include "AliMUONCDB.h"
@@ -86,6 +86,7 @@
 #include <TSystem.h>
 #include <TMath.h>
 #include <TGeoGlobalMagField.h>
+#include <TClonesArray.h>
 
 
 namespace
@@ -305,6 +306,30 @@ AliMUONRecoParam* AliMUONCDB::LoadRecoParam()
   
 }
 
+//_____________________________________________________________________________
+TClonesArray* AliMUONCDB::LoadAlignmentData()
+{
+  /// Load and return the array of alignment objects.
+  
+  AliInfoGeneral("AliMUONCDB", "Loading Alignemnt from OCDB...");
+  
+  if (!AliMUONCDB::CheckOCDB()) return kFALSE;
+  
+  TClonesArray* alignmentArray = 0x0;
+  AliCDBEntry* entry = AliCDBManager::Instance()->Get("MUON/Align/Data");
+  
+  if (entry) {
+    // load alignement array
+    alignmentArray = dynamic_cast<TClonesArray*>(entry->GetObject());
+  }
+  
+  if (!alignmentArray) { 
+    AliErrorGeneral("AliMUONCDB", "failed to load Alignemnt from OCDB");
+  }  
+  
+  return alignmentArray;
+}
+
 //_____________________________________________________________________________
 AliMUONVStore* 
 AliMUONCDB::Diff(AliMUONVStore& store1, AliMUONVStore& store2,