]>
Commit | Line | Data |
---|---|---|
57459306 | 1 | #ifndef ALI_SHUTTLE_INTERFACE_H |
2 | #define ALI_SHUTTLE_INTERFACE_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | // | |
10 | // abstract interface class to AliShuttle | |
11 | // | |
12 | ||
13 | #include <TObject.h> | |
3fe92ec0 | 14 | #include <TString.h> |
57459306 | 15 | |
16 | class TList; | |
b88146b7 | 17 | class AliPreprocessor; |
4426d64a | 18 | class AliCDBMetaData; |
84090f85 | 19 | class AliCDBPath; |
4426d64a | 20 | class AliCDBEntry; |
57459306 | 21 | |
22 | class AliShuttleInterface : public TObject | |
23 | { | |
24 | public: | |
1b82b32d | 25 | enum System { kDAQ = 0, kDCS, kHLT }; |
fc665cf2 | 26 | enum { kNDetectors = 20 }; // number of subdetectors in ALICE |
57459306 | 27 | |
eb4a4f5c | 28 | virtual Bool_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData, |
84090f85 | 29 | Int_t validityStart = 0, Bool_t validityInfinite = kFALSE) = 0; |
eb4a4f5c | 30 | virtual Bool_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData) = 0; |
9827400b | 31 | virtual Bool_t StoreReferenceFile(const char* detector, const char* localFile, const char* gridFileName) = 0; |
4a33bdd9 | 32 | |
57459306 | 33 | virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source) = 0; |
4a33bdd9 | 34 | |
35 | virtual TList* GetFileSources(Int_t system, const char* detector, const char* id = 0) = 0; | |
36 | virtual TList* GetFileIDs(Int_t system, const char* detector, const char* source) = 0; | |
37 | ||
1b82b32d | 38 | virtual const char* GetRunParameter(const char* lbEntry) = 0; |
9827400b | 39 | virtual const char* GetRunType() = 0; |
03b6e5e2 | 40 | virtual Bool_t GetHLTStatus() = 0; |
41 | ||
4a33bdd9 | 42 | virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path) = 0; |
43 | ||
57459306 | 44 | virtual void Log(const char* detector, const char* message) = 0; |
45 | ||
b88146b7 | 46 | virtual void RegisterPreprocessor(AliPreprocessor* preprocessor) = 0; |
47 | ||
1b82b32d | 48 | static const char* GetSystemName(UInt_t system) {return (system < 3) ? fkSystemNames[system] : 0;} |
49 | ||
50 | static const char* GetOfflineDetName(const char* detName); | |
51 | static const char* GetDetName(UInt_t detPos); | |
4426d64a | 52 | static const Int_t GetDetPos(const char* detName); |
53 | static const UInt_t NDetectors() {return kNDetectors;} | |
1b82b32d | 54 | |
3fe92ec0 | 55 | static TString GetMainCDB () {return fgkMainCDB;} |
3fe92ec0 | 56 | static TString GetLocalCDB () {return fgkLocalCDB;} |
3fe92ec0 | 57 | |
58 | static TString GetMainRefStorage() {return fgkMainRefStorage;} | |
3fe92ec0 | 59 | static TString GetLocalRefStorage() {return fgkLocalRefStorage;} |
3fe92ec0 | 60 | |
3fe92ec0 | 61 | static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();} |
3fe92ec0 | 62 | static const char* GetShuttleLogDir() {return fgkShuttleLogDir.Data();} |
63 | ||
1b82b32d | 64 | protected: |
4426d64a | 65 | |
1b82b32d | 66 | static const char* fkSystemNames[3]; // names of the systems providing data to the shuttle |
3fe92ec0 | 67 | static const char* fgkDetName[kNDetectors]; // names of detectors' preprocessors (3-letter code convention) |
68 | static const char* fgkOfflineDetName[kNDetectors]; // names of detectors in OCDB (AliRoot naming convention) | |
69 | ||
70 | static TString fgkMainCDB; // URI of the main (Grid) CDB storage | |
71 | static TString fgkLocalCDB; // URI of the local backup CDB storage | |
72 | static TString fgkMainRefStorage; // URI of the main (Grid) REFERENCE storage | |
73 | static TString fgkLocalRefStorage; // URI of the local REFERENCE storage | |
74 | ||
75 | static TString fgkShuttleTempDir; // path of SHUTTLE temp folder | |
76 | static TString fgkShuttleLogDir; // path of SHUTTLE log folder | |
1b82b32d | 77 | |
57459306 | 78 | private: |
79 | ClassDef(AliShuttleInterface, 0); | |
80 | }; | |
81 | ||
82 | #endif |