]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Shuttle getters and setters for main OCDB/Reference, local OCDB/Reference, temp
authoracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Feb 2007 10:58:10 +0000 (10:58 +0000)
committeracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Feb 2007 10:58:10 +0000 (10:58 +0000)
and log folders moved to AliShuttleInterface

STEER/AliShuttleInterface.cxx
STEER/AliShuttleInterface.h

index 51e4e96894c0c01ce11ad8847d574e12edb3aa58..4ff00f0a1836c1d4666a7e540941d6579a26fc84 100644 (file)
@@ -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);
+}
index 75a9cd792f48abcd43e372f50b31782ce303fd47..02919c2a220bba9862b1b2e2749c515cef4f5bf0 100644 (file)
@@ -11,6 +11,7 @@
 //
 
 #include <TObject.h>
+#include <TString.h>
 
 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);