///
/// For more information, please see READMEcalib
///
-// \author Laurent Aphecetche
+/// \author Laurent Aphecetche
//-----------------------------------------------------------------------------
#include "AliMUONCDB.h"
#include <TSystem.h>
#include <TMath.h>
#include <TGeoGlobalMagField.h>
+#include <TClonesArray.h>
namespace
}
+//_____________________________________________________________________________
+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,