1 #ifndef ALI_PREPROCESSOR_H
2 #define ALI_PREPROCESSOR_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 // This class is the CDBPreProcessor interface,
11 // supposed to be implemented by any detector
12 // interested in immediate processing of data
13 // which is retrieved from DCS, DAQ or HLT.
23 class AliShuttleInterface;
25 class AliPreprocessor : public TNamed
29 enum { kDAQ, kDCS, kHLT };
31 AliPreprocessor(const char* detector, AliShuttleInterface* shuttle);
32 virtual ~AliPreprocessor();
34 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
35 virtual UInt_t Process(TMap* dcsAliasMap) = 0;
38 UInt_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object,
39 AliCDBMetaData* metaData, Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
40 UInt_t StoreReferenceData(const char* pathLevel2, const char* pathLevel3, TObject* object,
41 AliCDBMetaData* metaData);
42 const char* GetFile(Int_t system, const char* id, const char* source);
43 TList* GetFileSources(Int_t system, const char* id);
44 const char* GetRunParameter(const char* param);
45 AliCDBEntry* GetFromOCDB(const char* pathLevel2, const char* pathLevel3);
46 const char* GetRunType();
47 void Log(const char* message);
49 Int_t fRun; // current run
50 UInt_t fStartTime; // starttime of current run
51 UInt_t fEndTime; // endtime of current run
54 AliPreprocessor(const AliPreprocessor & source);
55 AliPreprocessor & operator=(const AliPreprocessor & source);
56 AliShuttleInterface* fShuttle; // link to Shuttle
58 ClassDef(AliPreprocessor, 0);