From: ivana Date: Sat, 28 Nov 2009 10:05:43 +0000 (+0000) Subject: In AliMUONCDB: X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=73d3aca5ae05bb1f7ae9d3dc06fb04735d59931f In AliMUONCDB: Adding LoadAlignmentData() method (requested by HLT) --- diff --git a/MUON/AliMUONCDB.cxx b/MUON/AliMUONCDB.cxx index 6fe8652ce69..ec9eb12eb27 100644 --- a/MUON/AliMUONCDB.cxx +++ b/MUON/AliMUONCDB.cxx @@ -86,6 +86,7 @@ #include #include #include +#include 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(entry->GetObject()); + } + + if (!alignmentArray) { + AliErrorGeneral("AliMUONCDB", "failed to load Alignemnt from OCDB"); + } + + return alignmentArray; +} + //_____________________________________________________________________________ AliMUONVStore* AliMUONCDB::Diff(AliMUONVStore& store1, AliMUONVStore& store2, diff --git a/MUON/AliMUONCDB.h b/MUON/AliMUONCDB.h index e395ea5aefa..c08d3d95295 100644 --- a/MUON/AliMUONCDB.h +++ b/MUON/AliMUONCDB.h @@ -16,6 +16,7 @@ class AliMUONVStore; class TMap; +class TClonesArray; class AliMUONVCalibParam; class AliMUONTriggerLut; class AliMUONTriggerEfficiencyCells; @@ -32,6 +33,7 @@ namespace AliMUONCDB Bool_t LoadField(); Bool_t LoadMapping(Bool_t segmentationOnly = kFALSE); AliMUONRecoParam* LoadRecoParam(); + TClonesArray* LoadAlignmentData(); Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore);