]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliShuttleInterface.h
Using AliMpDDLStore::GetBusPatchId instead of static arrays (Christian)
[u/mrichter/AliRoot.git] / STEER / AliShuttleInterface.h
index 258a0b73d15d9a44c10d0cf4cc3cf37d8c6e75f9..7615f30d64162a955762f3dd6e98ca4dfde7beae 100644 (file)
 //
 
 #include <TObject.h>
+#include <TString.h>
 
 class TList;
-class AliCDBMetaData;
 class AliPreprocessor;
+class AliCDBMetaData;
 class AliCDBPath;
+class AliCDBEntry;
 
 class AliShuttleInterface : public TObject
 {
   public:
     enum System { kDAQ = 0, kDCS, kHLT };
-    enum { kNDetectors=17 }; // number of subdetectors in ALICE
+    enum { kNDetectors = 18 }; // number of subdetectors in ALICE
 
     virtual UInt_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
                                Int_t validityStart = 0, Bool_t validityInfinite = kFALSE) = 0;
@@ -29,6 +31,7 @@ class AliShuttleInterface : public TObject
     virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source) = 0;
     virtual TList* GetFileSources(Int_t system, const char* detector, const char* id) = 0;
     virtual const char* GetRunParameter(const char* lbEntry) = 0;
+    virtual AliCDBEntry* GetFromOCDB(const AliCDBPath& path) = 0;
     virtual void Log(const char* detector, const char* message) = 0;
 
     virtual void RegisterPreprocessor(AliPreprocessor* preprocessor) = 0;
@@ -40,10 +43,28 @@ 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 TString GetLocalCDB () {return fgkLocalCDB;}
+
+    static TString GetMainRefStorage() {return fgkMainRefStorage;}
+    static TString GetLocalRefStorage() {return fgkLocalRefStorage;}
+
+    static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();}
+    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);