adding parameters for extended validity range of data produced by preprocessor
[u/mrichter/AliRoot.git] / STEER / AliPreprocessor.h
CommitLineData
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
18class TList;
19class TMap;
20
21class AliCDBMetaData;
22class AliShuttleInterface;
23
24class AliPreprocessor : public TNamed
25{
26 public:
27 enum { kDAQ, kDCS, kHLT };
28
29 AliPreprocessor(const char* detector, AliShuttleInterface* shuttle);
30 virtual ~AliPreprocessor();
31
32 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
b88146b7 33 virtual UInt_t Process(TMap* dcsAliasMap) = 0;
57459306 34
35 protected:
17111222 36 UInt_t Store(TObject* object, AliCDBMetaData* metaData, Int_t validityStart = 0, Bool_t validityInfinite = kFALSE);
57459306 37 const char* GetFile(Int_t system, const char* id, const char* source);
38 TList* GetFileSources(Int_t system, const char* id);
39 void Log(const char* message);
40
41 Int_t fRun; // current run
42 UInt_t fStartTime; // starttime of current run
43 UInt_t fEndTime; // endtime of current run
44
45 private:
46 AliShuttleInterface* fShuttle; // link to Shuttle
47
48 ClassDef(AliPreprocessor, 0);
49};
50
51#endif