]> git.uio.no Git - u/mrichter/AliRoot.git/blame - SHUTTLE/TestShuttle/AliTestShuttle.h
Adding TestShuttle temp and log folder's getter and setter
[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>
eba76848 14#include <TString.h>
5c6b40ae 15
16class TMap;
17class TList;
18class AliCDBMetaData;
84090f85 19class AliCDBPath;
5c6b40ae 20
21class AliTestShuttle : public AliShuttleInterface
22{
23 public:
17111222 24 AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime);
5c6b40ae 25 virtual ~AliTestShuttle();
26
36137ac1 27 void AddInputFile(Int_t system, const char* detector, const char* id, const char* source, const char* fileName);
28 void SetDCSInput(TMap* dcsAliasMap) { fDcsAliasMap = dcsAliasMap; }
eba76848 29 void AddInputRunParameter(const char* key, const char* value);
36137ac1 30
31 void Process();
32
33 // AliShuttleInterface functions
84090f85 34 virtual UInt_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
35 Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
8c77aee7 36 virtual UInt_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
5c6b40ae 37 virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source);
38 virtual TList* GetFileSources(Int_t system, const char* detector, const char* id);
eba76848 39 virtual const char* GetRunParameter(const char* key);
5c6b40ae 40 virtual void Log(const char* detector, const char* message);
41
e19c88ea 42 static TString GetMainCDB () {return fgkMainCDB;}
43 static void SetMainCDB (TString mainCDB) {fgkMainCDB = mainCDB;}
44 static TString GetMainRefStorage() {return fgkMainRefStorage;}
45 static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;}
46
47 static void SetShuttleTempDir (const char* tmpDir);
48 static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();}
49 static void SetShuttleLogDir (const char* logDir);
50 static const char* GetShuttleLogDir() {return fgkShuttleLogDir.Data();}
51
36137ac1 52 virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
53
5c6b40ae 54 protected:
e19c88ea 55 static TString fgkMainCDB; // URI of the main (Grid) CDB storage
56 static TString fgkMainRefStorage; // URI of the main (Grid) REFERENCE storage
57 static TString fgkShuttleTempDir; // base path of SHUTTLE temp folder
58 static TString fgkShuttleLogDir; // path of SHUTTLE log folder
eba76848 59
17111222 60 Int_t fRun; // run that is simulated with the AliTestShuttle
61 UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle
62 UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle
63
eba76848 64 TMap* fInputFiles; // files for GetFile, GetFileSources
65 TMap* fRunParameters; // run parameters
36137ac1 66 TObjArray* fPreprocessors; // list of preprocessors that are to be tested
67 TMap* fDcsAliasMap; // DCS data for testing
5c6b40ae 68
69 private:
70 ClassDef(AliTestShuttle, 0);
71};
72
73#endif