Include pressure sensors. Read Config entry from OCDB (Haavard)
[u/mrichter/AliRoot.git] / TPC / AliTPCPreprocessor.h
1 #ifndef ALI_TPC_PREPROCESSOR_H
2 #define ALI_TPC_PREPROCESSOR_H
3
4 #include "AliPreprocessor.h"
5
6
7 // test preprocessor that writes data to AliTestDataDCS
8
9 class AliTestDataDCS;
10 class AliTPCSensorTempArray;
11 class AliDCSSensorArray;
12
13 class AliTPCPreprocessor : public AliPreprocessor
14 {
15   public:
16     AliTPCPreprocessor(AliShuttleInterface* shuttle);
17 //    AliTPCPreprocessor(const AliTPCPreprocessor &org);
18     virtual ~AliTPCPreprocessor();
19
20   protected:
21     virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
22     virtual UInt_t Process(TMap* dcsAliasMap);
23     UInt_t  MapTemperature(TMap* dcsAliasMap);
24     UInt_t  MapPressure(TMap* dcsAliasMap);
25     AliTPCPreprocessor& operator = (const AliTPCPreprocessor& rhs);
26
27   private:
28     AliTPCSensorTempArray  *fTemp;     // CDB class for temperature sensors
29     AliDCSSensorArray      *fPressure; // CDB class for pressure sensors
30     Bool_t                 fConfigOK;  // Identify succesful reading of OCDB Config
31
32     ClassDef(AliTPCPreprocessor, 2)
33 };
34
35 #endif