]> git.uio.no Git - u/mrichter/AliRoot.git/blob - SHUTTLE/TestShuttle/AliTestShuttle.h
c9e163db54e031beba2e1950aabd872da11334d8
[u/mrichter/AliRoot.git] / SHUTTLE / TestShuttle / AliTestShuttle.h
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:
22     AliTestShuttle();
23     virtual ~AliTestShuttle();
24
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
31     virtual UInt_t Store(const char* detector, TObject* object, AliCDBMetaData* metaData);
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
36     virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
37
38   protected:
39     TMap* fInputFiles;   // files for GetFile, GetFileSources
40     TObjArray* fPreprocessors; // list of preprocessors that are to be tested
41     TMap* fDcsAliasMap; // DCS data for testing
42
43   private:
44     ClassDef(AliTestShuttle, 0);
45 };
46
47 #endif