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