From ec1f909babe59fa4c439ad8cc3da8628f8ee7003 Mon Sep 17 00:00:00 2001 From: zampolli Date: Thu, 17 Jun 2010 14:46:06 +0000 Subject: [PATCH] Adding GetGeometryFromOCDB function to retrieve geometry (from GRP/Geometry/Data) for current run from any preprocessor. --- STEER/AliPreprocessor.cxx | 11 +++++++++++ STEER/AliPreprocessor.h | 1 + 2 files changed, 12 insertions(+) diff --git a/STEER/AliPreprocessor.cxx b/STEER/AliPreprocessor.cxx index 0fd756bb6f2..0ba065bddf7 100644 --- a/STEER/AliPreprocessor.cxx +++ b/STEER/AliPreprocessor.cxx @@ -336,6 +336,17 @@ AliCDBEntry* AliPreprocessor::GetFromOCDB(const char* pathLevel2, const char* pa (fShuttle->GetFromOCDB(GetName(), AliCDBPath(offlineDetName, pathLevel2, pathLevel3))); } +//______________________________________________________________________________________________ +AliCDBEntry* AliPreprocessor::GetGeometryFromOCDB() +{ + // Return geometry from OCDB (GRP/Geometry/Data) valid for current run + // + // The call is delegated to AliShuttleInterface + + return dynamic_cast + (fShuttle->GetFromOCDB(GetName(), AliCDBPath("GRP", "Geometry", "Data"))); +} + //______________________________________________________________________________________________ const char* AliPreprocessor::GetRunType() { diff --git a/STEER/AliPreprocessor.h b/STEER/AliPreprocessor.h index f8bcbf9c12b..dfecb8bbccc 100644 --- a/STEER/AliPreprocessor.h +++ b/STEER/AliPreprocessor.h @@ -52,6 +52,7 @@ class AliPreprocessor : public TNamed TList* GetFileIDs(Int_t system, const char* source); const char* GetRunParameter(const char* param); AliCDBEntry* GetFromOCDB(const char* pathLevel2, const char* pathLevel3); + AliCDBEntry* GetGeometryFromOCDB(); const char* GetRunType(); Bool_t GetHLTStatus(); const char* GetTriggerConfiguration(); -- 2.43.0