]>
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> | |
14 | ||
15 | class TMap; | |
16 | class TList; | |
17 | class AliCDBMetaData; | |
18 | ||
19 | class AliTestShuttle : public AliShuttleInterface | |
20 | { | |
21 | public: | |
17111222 | 22 | AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime); |
5c6b40ae | 23 | virtual ~AliTestShuttle(); |
24 | ||
36137ac1 | 25 | void AddInputFile(Int_t system, const char* detector, const char* id, const char* source, const char* fileName); |
26 | void SetDCSInput(TMap* dcsAliasMap) { fDcsAliasMap = dcsAliasMap; } | |
27 | ||
28 | void Process(); | |
29 | ||
30 | // AliShuttleInterface functions | |
17111222 | 31 | virtual UInt_t Store(const char* detector, TObject* object, AliCDBMetaData* metaData, Int_t validityStart = 0, Bool_t validityInfinite = kFALSE); |
5c6b40ae | 32 | virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source); |
33 | virtual TList* GetFileSources(Int_t system, const char* detector, const char* id); | |
34 | virtual void Log(const char* detector, const char* message); | |
35 | ||
36137ac1 | 36 | virtual void RegisterPreprocessor(AliPreprocessor* preprocessor); |
37 | ||
5c6b40ae | 38 | protected: |
17111222 | 39 | Int_t fRun; // run that is simulated with the AliTestShuttle |
40 | UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle | |
41 | UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle | |
42 | ||
5c6b40ae | 43 | TMap* fInputFiles; // files for GetFile, GetFileSources |
36137ac1 | 44 | TObjArray* fPreprocessors; // list of preprocessors that are to be tested |
45 | TMap* fDcsAliasMap; // DCS data for testing | |
5c6b40ae | 46 | |
47 | private: | |
48 | ClassDef(AliTestShuttle, 0); | |
49 | }; | |
50 | ||
51 | #endif |