]>
Commit | Line | Data |
---|---|---|
57459306 | 1 | #ifndef ALI_PREPROCESSOR_H |
2 | #define ALI_PREPROCESSOR_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 | // 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. | |
14 | // | |
15 | ||
16 | #include <TNamed.h> | |
17 | ||
18 | class TList; | |
19 | class TMap; | |
20 | ||
21 | class AliCDBMetaData; | |
4426d64a | 22 | class AliCDBEntry; |
57459306 | 23 | class AliShuttleInterface; |
24 | ||
25 | class AliPreprocessor : public TNamed | |
26 | { | |
27 | public: | |
1b82b32d | 28 | |
57459306 | 29 | enum { kDAQ, kDCS, kHLT }; |
30 | ||
31 | AliPreprocessor(const char* detector, AliShuttleInterface* shuttle); | |
32 | virtual ~AliPreprocessor(); | |
33 | ||
84090f85 | 34 | virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime); |
b88146b7 | 35 | virtual UInt_t Process(TMap* dcsAliasMap) = 0; |
57459306 | 36 | |
eb4a4f5c | 37 | virtual Bool_t ProcessDCS() {return kTRUE;} |
38 | ||
57459306 | 39 | protected: |
eb4a4f5c | 40 | Bool_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object, |
84090f85 | 41 | AliCDBMetaData* metaData, Int_t validityStart = 0, Bool_t validityInfinite = kFALSE); |
eb4a4f5c | 42 | Bool_t StoreReferenceData(const char* pathLevel2, const char* pathLevel3, TObject* object, |
3c78eaa5 | 43 | AliCDBMetaData* metaData); |
57459306 | 44 | const char* GetFile(Int_t system, const char* id, const char* source); |
45 | TList* GetFileSources(Int_t system, const char* id); | |
1b82b32d | 46 | const char* GetRunParameter(const char* param); |
4426d64a | 47 | AliCDBEntry* GetFromOCDB(const char* pathLevel2, const char* pathLevel3); |
5c957e4a | 48 | const char* GetRunType(); |
57459306 | 49 | void Log(const char* message); |
50 | ||
51 | Int_t fRun; // current run | |
52 | UInt_t fStartTime; // starttime of current run | |
53 | UInt_t fEndTime; // endtime of current run | |
54 | ||
55 | private: | |
fe12e09c | 56 | AliPreprocessor(const AliPreprocessor & source); |
57 | AliPreprocessor & operator=(const AliPreprocessor & source); | |
57459306 | 58 | AliShuttleInterface* fShuttle; // link to Shuttle |
59 | ||
60 | ClassDef(AliPreprocessor, 0); | |
61 | }; | |
62 | ||
63 | #endif |