1 #ifndef ALI_TEST_SHUTTLE_H
2 #define ALI_TEST_SHUTTLE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 // test implementation of the AliShuttleInterface, to be used for local tests of preprocessors
13 #include <AliShuttleInterface.h>
22 class AliTestShuttle : public AliShuttleInterface
25 AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime);
26 virtual ~AliTestShuttle();
28 void AddInputFile(Int_t system, const char* detector, const char* id, const char* source, const char* fileName);
29 void SetDCSInput(TMap* dcsAliasMap) { fDcsAliasMap = dcsAliasMap; }
30 void AddInputRunParameter(const char* key, const char* value);
31 void SetInputRunType(const char* runType) { fRunType = runType; }
32 Bool_t AddInputCDBEntry(AliCDBEntry* entry);
36 // AliShuttleInterface functions
37 virtual Bool_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
38 Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
39 virtual Bool_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
40 virtual Bool_t StoreReferenceFile(const char* detector, const char* localFile, const char* gridFileName);
41 virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source);
42 virtual TList* GetFileSources(Int_t system, const char* detector, const char* id);
43 virtual const char* GetRunParameter(const char* key);
44 virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path);
45 virtual const char* GetRunType();
46 virtual void Log(const char* detector, const char* message);
48 virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
50 static void SetMainCDB (TString mainCDB) {fgkMainCDB = mainCDB;}
51 static void SetLocalCDB (TString localCDB) {fgkLocalCDB = localCDB;}
53 static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;}
54 static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;}
56 static void SetShuttleTempDir (const char* tmpDir);
57 static void SetShuttleLogDir (const char* logDir);
61 Int_t fRun; // run that is simulated with the AliTestShuttle
62 UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle
63 UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle
65 TMap* fInputFiles; // files for GetFile, GetFileSources
66 TMap* fRunParameters; // run parameters
67 TString fRunType; // run type
68 TObjArray* fPreprocessors; // list of preprocessors that are to be tested
69 TMap* fDcsAliasMap; // DCS data for testing
72 ClassDef(AliTestShuttle, 0);