]>
Commit | Line | Data |
---|---|---|
5c6b40ae | 1 | #ifndef ALI_TEST_SHUTTLE_H |
2 | #define ALI_TEST_SHUTTLE_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 | // test implementation of the AliShuttleInterface, to be used for local tests of preprocessors | |
11 | // | |
12 | ||
13 | #include <AliShuttleInterface.h> | |
eba76848 | 14 | #include <TString.h> |
5c6b40ae | 15 | |
16 | class TMap; | |
17 | class TList; | |
18 | class AliCDBMetaData; | |
84090f85 | 19 | class AliCDBPath; |
5c6b40ae | 20 | |
21 | class AliTestShuttle : public AliShuttleInterface | |
22 | { | |
23 | public: | |
17111222 | 24 | AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime); |
5c6b40ae | 25 | virtual ~AliTestShuttle(); |
26 | ||
eba76848 | 27 | static TString GetOCDBStorage () {return fgkOCDBUri;} |
28 | static void SetOCDBStorage (TString ocdbUri) {fgkOCDBUri = ocdbUri;} | |
29 | static TString GetReferenceStorage () {return fgkRefUri;} | |
30 | static void SetReferenceStorage (TString refUri) {fgkRefUri = refUri;} | |
31 | ||
36137ac1 | 32 | void AddInputFile(Int_t system, const char* detector, const char* id, const char* source, const char* fileName); |
33 | void SetDCSInput(TMap* dcsAliasMap) { fDcsAliasMap = dcsAliasMap; } | |
eba76848 | 34 | void AddInputRunParameter(const char* key, const char* value); |
36137ac1 | 35 | |
36 | void Process(); | |
37 | ||
38 | // AliShuttleInterface functions | |
84090f85 | 39 | virtual UInt_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData, |
40 | Int_t validityStart = 0, Bool_t validityInfinite = kFALSE); | |
8c77aee7 | 41 | virtual UInt_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData); |
5c6b40ae | 42 | virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source); |
43 | virtual TList* GetFileSources(Int_t system, const char* detector, const char* id); | |
eba76848 | 44 | virtual const char* GetRunParameter(const char* key); |
5c6b40ae | 45 | virtual void Log(const char* detector, const char* message); |
46 | ||
36137ac1 | 47 | virtual void RegisterPreprocessor(AliPreprocessor* preprocessor); |
48 | ||
5c6b40ae | 49 | protected: |
eba76848 | 50 | static TString fgkOCDBUri; // URI of the test OCDB storage |
51 | static TString fgkRefUri; // URI of the test Reference storage | |
52 | ||
17111222 | 53 | Int_t fRun; // run that is simulated with the AliTestShuttle |
54 | UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle | |
55 | UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle | |
56 | ||
eba76848 | 57 | TMap* fInputFiles; // files for GetFile, GetFileSources |
58 | TMap* fRunParameters; // run parameters | |
36137ac1 | 59 | TObjArray* fPreprocessors; // list of preprocessors that are to be tested |
60 | TMap* fDcsAliasMap; // DCS data for testing | |
5c6b40ae | 61 | |
62 | private: | |
63 | ClassDef(AliTestShuttle, 0); | |
64 | }; | |
65 | ||
66 | #endif |