Shuttle getters and setters for main OCDB/Reference, local OCDB/Reference, temp
[u/mrichter/AliRoot.git] / STEER / AliShuttleInterface.cxx
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);
+}