From 3fe92ec0ea12d7f1d327df7e454811399ca00d02 Mon Sep 17 00:00:00 2001 From: acolla Date: Tue, 13 Feb 2007 10:58:10 +0000 Subject: [PATCH] Shuttle getters and setters for main OCDB/Reference, local OCDB/Reference, temp and log folders moved to AliShuttleInterface --- STEER/AliShuttleInterface.cxx | 24 ++++++++++++++++++++++++ STEER/AliShuttleInterface.h | 28 ++++++++++++++++++++++++++-- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/STEER/AliShuttleInterface.cxx b/STEER/AliShuttleInterface.cxx index 51e4e96894c..4ff00f0a183 100644 --- a/STEER/AliShuttleInterface.cxx +++ b/STEER/AliShuttleInterface.cxx @@ -38,6 +38,14 @@ const char* AliShuttleInterface::fgkDetName[kNDetectors] = {"SPD", "SDD", "SSD", const char* AliShuttleInterface::fgkOfflineDetName[kNDetectors] = {"ITS", "ITS", "ITS", "TPC", "TRD", "TOF", "PHOS", "PHOS", "HMPID", "EMCAL", "MUON", "MUON", "FMD", "ZDC", "PMD", "T0", "VZERO", "GRP"}; +TString AliShuttleInterface::fgkMainCDB("alien://folder=ShuttleCDB"); +TString AliShuttleInterface::fgkLocalCDB("local://LocalShuttleCDB"); +TString AliShuttleInterface::fgkMainRefStorage("alien://folder=ShuttleReference"); +TString AliShuttleInterface::fgkLocalRefStorage("local://LocalReferenceStorage"); + +TString AliShuttleInterface::fgkShuttleTempDir = gSystem->ExpandPathName("$ALICE_ROOT/SHUTTLE/temp"); +TString AliShuttleInterface::fgkShuttleLogDir = gSystem->ExpandPathName("$ALICE_ROOT/SHUTTLE/log"); + //______________________________________________________________________________________________ const char* AliShuttleInterface::GetOfflineDetName(const char* detName){ // Return "offline" detector name @@ -72,3 +80,19 @@ const Int_t AliShuttleInterface::GetDetPos(const char* detName){ } return -1; } + +//______________________________________________________________________________________________ +void AliShuttleInterface::SetShuttleTempDir(const char* tmpDir) +{ +// sets Shuttle temp directory + + fgkShuttleTempDir = gSystem->ExpandPathName(tmpDir); +} + +//______________________________________________________________________________________________ +void AliShuttleInterface::SetShuttleLogDir(const char* logDir) +{ +// sets Shuttle log directory + + fgkShuttleLogDir = gSystem->ExpandPathName(logDir); +} diff --git a/STEER/AliShuttleInterface.h b/STEER/AliShuttleInterface.h index 75a9cd792f4..02919c2a220 100644 --- a/STEER/AliShuttleInterface.h +++ b/STEER/AliShuttleInterface.h @@ -11,6 +11,7 @@ // #include +#include class TList; class AliCDBMetaData; @@ -40,10 +41,33 @@ class AliShuttleInterface : public TObject static const Int_t GetDetPos(const char* detName); static const UInt_t NDetectors() {return kNDetectors;} + static TString GetMainCDB () {return fgkMainCDB;} + static void SetMainCDB (TString mainCDB) {fgkMainCDB = mainCDB;} + static TString GetLocalCDB () {return fgkLocalCDB;} + static void SetLocalCDB (TString localCDB) {fgkLocalCDB = localCDB;} + + static TString GetMainRefStorage() {return fgkMainRefStorage;} + static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;} + static TString GetLocalRefStorage() {return fgkLocalRefStorage;} + static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;} + + static void SetShuttleTempDir (const char* tmpDir); + static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();} + static void SetShuttleLogDir (const char* logDir); + static const char* GetShuttleLogDir() {return fgkShuttleLogDir.Data();} + protected: static const char* fkSystemNames[3]; // names of the systems providing data to the shuttle - static const char* fgkDetName[kNDetectors]; //! names of detectors' preprocessors (3-letter code convention) - static const char* fgkOfflineDetName[kNDetectors]; //! names of detectors in OCDB (AliRoot naming convention) + static const char* fgkDetName[kNDetectors]; // names of detectors' preprocessors (3-letter code convention) + static const char* fgkOfflineDetName[kNDetectors]; // names of detectors in OCDB (AliRoot naming convention) + + static TString fgkMainCDB; // URI of the main (Grid) CDB storage + static TString fgkLocalCDB; // URI of the local backup CDB storage + static TString fgkMainRefStorage; // URI of the main (Grid) REFERENCE storage + static TString fgkLocalRefStorage; // URI of the local REFERENCE storage + + static TString fgkShuttleTempDir; // path of SHUTTLE temp folder + static TString fgkShuttleLogDir; // path of SHUTTLE log folder private: ClassDef(AliShuttleInterface, 0); -- 2.31.1