]> git.uio.no Git - u/mrichter/AliRoot.git/blame - SHUTTLE/TestShuttle/AliTestShuttle.h
Const declaration removed.
[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;
d461a8a7 20class AliCDBPath;
5c6b40ae 21
22class AliTestShuttle : public AliShuttleInterface
23{
24 public:
17111222 25 AliTestShuttle(Int_t run, UInt_t startTime, UInt_t endTime);
5c6b40ae 26 virtual ~AliTestShuttle();
27
36137ac1 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; }
eba76848 30 void AddInputRunParameter(const char* key, const char* value);
9827400b 31 void SetInputRunType(const char* runType) { fRunType = runType; }
87968cd5 32 void SetInputHLTStatus(Bool_t status) { fHLTStatus = status; }
ca8ea066 33 void SetInputTriggerConfiguration(const char* configuration) { fTriggerConfiguration = configuration; }
d461a8a7 34 Bool_t AddInputCDBEntry(AliCDBEntry* entry);
eff647d5 35 void SetTimeCreated(UInt_t timeCreated) { fTimeCreated = timeCreated;}
36 void SetDCSQueryOffset(UInt_t dcsQueryOffset) { fDCSQueryOffset = dcsQueryOffset;}
36137ac1 37 void Process();
38
39 // AliShuttleInterface functions
9827400b 40 virtual Bool_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
84090f85 41 Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
9827400b 42 virtual Bool_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
43 virtual Bool_t StoreReferenceFile(const char* detector, const char* localFile, const char* gridFileName);
77dc0223 44 virtual Bool_t StoreRunMetadataFile(const char* localFile, const char* gridFileName);
5c6b40ae 45 virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source);
4a33bdd9 46 virtual TList* GetFileSources(Int_t system, const char* detector, const char* id = 0);
47 virtual TList* GetFileIDs(Int_t system, const char* detector, const char* source);
eba76848 48 virtual const char* GetRunParameter(const char* key);
46ad8eef 49 virtual UInt_t GetStartTimeDCSQuery();
50 virtual UInt_t GetEndTimeDCSQuery();
9827400b 51 virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path);
52 virtual const char* GetRunType();
87968cd5 53 virtual Bool_t GetHLTStatus() {return fHLTStatus;}
59def2a2 54 virtual const char* GetTriggerConfiguration();
5c6b40ae 55 virtual void Log(const char* detector, const char* message);
56
36137ac1 57 virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
58
d461a8a7 59 static void SetMainCDB (TString mainCDB) {fgkMainCDB = mainCDB;}
60 static void SetLocalCDB (TString localCDB) {fgkLocalCDB = localCDB;}
61
62 static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;}
63 static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;}
64
65 static void SetShuttleTempDir (const char* tmpDir);
66 static void SetShuttleLogDir (const char* logDir);
67
5c6b40ae 68 protected:
eba76848 69
eff647d5 70 Int_t fRun; // run that is simulated with the AliTestShuttle
71 UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle
72 UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle
73 UInt_t fTimeCreated; // timecreated that is simulated with the AliTestShuttle
74 UInt_t fDCSQueryOffset; // DCS query offset
17111222 75
eba76848 76 TMap* fInputFiles; // files for GetFile, GetFileSources
441b0e9c 77 TMap* fRunParameters; // run parameters
9827400b 78 TString fRunType; // run type
87968cd5 79 Bool_t fHLTStatus; // HLT status for current run (on=1/off=0)
36137ac1 80 TObjArray* fPreprocessors; // list of preprocessors that are to be tested
81 TMap* fDcsAliasMap; // DCS data for testing
ca8ea066 82 TString fTriggerConfiguration; // trigger configuration for testing
5c6b40ae 83
84 private:
77dc0223 85 Bool_t CopyFileLocally(TString& targetDir, const char* localFile, const char* gridFileName);
86 const char* GetRefFilePrefix(const char* base, const char* detector);
87
5c6b40ae 88 ClassDef(AliTestShuttle, 0);
89};
90
91#endif