]> git.uio.no Git - u/mrichter/AliRoot.git/blame - SHUTTLE/TestShuttle/AliTestShuttle.h
Method: TObjString::GetString() replaced with TObjString::String() in GetFile method...
[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; }
2c5f9d06 34 void SetInputCTPTimeParams(const char* ctptiming) { fCTPtiming = ctptiming; }
c986bd09 35 void SetInputTriggerDetectorMask(const char* triggerDetectorMask) { fTriggerDetectorMask = triggerDetectorMask; }
d461a8a7 36 Bool_t AddInputCDBEntry(AliCDBEntry* entry);
eff647d5 37 void SetTimeCreated(UInt_t timeCreated) { fTimeCreated = timeCreated;}
38 void SetDCSQueryOffset(UInt_t dcsQueryOffset) { fDCSQueryOffset = dcsQueryOffset;}
36137ac1 39 void Process();
6ecb073a 40 void SetLTUConfig(TString* ltuConfig, const char* det);
36137ac1 41
42 // AliShuttleInterface functions
9827400b 43 virtual Bool_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
84090f85 44 Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
9827400b 45 virtual Bool_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData);
46 virtual Bool_t StoreReferenceFile(const char* detector, const char* localFile, const char* gridFileName);
77dc0223 47 virtual Bool_t StoreRunMetadataFile(const char* localFile, const char* gridFileName);
5c6b40ae 48 virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source);
4a33bdd9 49 virtual TList* GetFileSources(Int_t system, const char* detector, const char* id = 0);
50 virtual TList* GetFileIDs(Int_t system, const char* detector, const char* source);
eba76848 51 virtual const char* GetRunParameter(const char* key);
46ad8eef 52 virtual UInt_t GetStartTimeDCSQuery();
53 virtual UInt_t GetEndTimeDCSQuery();
9827400b 54 virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path);
55 virtual const char* GetRunType();
87968cd5 56 virtual Bool_t GetHLTStatus() {return fHLTStatus;}
59def2a2 57 virtual const char* GetTriggerConfiguration();
2c5f9d06 58 virtual const char* GetCTPTimeParams();
c986bd09 59 virtual const char* GetTriggerDetectorMask();
6a150f83 60 virtual void Log(const char* detector, const char* message, UInt_t level=3);
5c6b40ae 61
36137ac1 62 virtual void RegisterPreprocessor(AliPreprocessor* preprocessor);
63
d461a8a7 64 static void SetMainCDB (TString mainCDB) {fgkMainCDB = mainCDB;}
65 static void SetLocalCDB (TString localCDB) {fgkLocalCDB = localCDB;}
66
67 static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;}
68 static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;}
69
70 static void SetShuttleTempDir (const char* tmpDir);
71 static void SetShuttleLogDir (const char* logDir);
72
1f0f7c2e 73 virtual void SendMLFromDet(const char* value);
6ecb073a 74 virtual TString* GetLTUConfig(const char* det);
1f0f7c2e 75
5c6b40ae 76 protected:
eba76848 77
eff647d5 78 Int_t fRun; // run that is simulated with the AliTestShuttle
79 UInt_t fStartTime; // starttime that is simulated with the AliTestShuttle
80 UInt_t fEndTime; // endtime that is simulated with the AliTestShuttle
81 UInt_t fTimeCreated; // timecreated that is simulated with the AliTestShuttle
82 UInt_t fDCSQueryOffset; // DCS query offset
17111222 83
eba76848 84 TMap* fInputFiles; // files for GetFile, GetFileSources
441b0e9c 85 TMap* fRunParameters; // run parameters
9827400b 86 TString fRunType; // run type
87968cd5 87 Bool_t fHLTStatus; // HLT status for current run (on=1/off=0)
36137ac1 88 TObjArray* fPreprocessors; // list of preprocessors that are to be tested
89 TMap* fDcsAliasMap; // DCS data for testing
ca8ea066 90 TString fTriggerConfiguration; // trigger configuration for testing
c986bd09 91 TString fTriggerDetectorMask; // trigger detector mask for testing
2c5f9d06 92 TString fCTPtiming; // CTP time paramters for testing
6ecb073a 93 TObjArray *fltuConfig; // LTU config TObjArray
94
5c6b40ae 95 private:
77dc0223 96 Bool_t CopyFileLocally(TString& targetDir, const char* localFile, const char* gridFileName);
97 const char* GetRefFilePrefix(const char* base, const char* detector);
98
5c6b40ae 99 ClassDef(AliTestShuttle, 0);
100};
101
102#endif