Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.h
CommitLineData
e5c60cc7 1#ifndef ALI_TRD_PREPROCESSOR_H
2#define ALI_TRD_PREPROCESSOR_H
3
ec55623f 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
e5c60cc7 8
ec55623f 9////////////////////////////////////////////////////////////////////////////
10// //
11// TRD preprocessor for the database SHUTTLE //
12// //
13////////////////////////////////////////////////////////////////////////////
14
15#include "AliPreprocessor.h"
e5c60cc7 16
6ace5fe2 17class TMap;
d6a1ec13 18class AliTRDCalDCSv2;
5029ad25 19class AliTRDCalROC;
20class AliTRDCalSingleChamberStatus;
6ace5fe2 21
e5c60cc7 22class AliTRDPreprocessor : public AliPreprocessor
23{
24
c8ab4518 25 public:
e5c60cc7 26
c8ab4518 27 AliTRDPreprocessor(AliShuttleInterface *shuttle);
6a0417c1 28 AliTRDPreprocessor(const AliTRDPreprocessor &org);
c8ab4518 29 virtual ~AliTRDPreprocessor();
e5c60cc7 30
6a0417c1 31
8dd14606 32 protected:
e5c60cc7 33
c8ab4518 34 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
35 virtual UInt_t Process(TMap *dcsAliasMap);
a5e1169e 36
6a0417c1 37 Bool_t ExtractHalfChamberStatusDAQ();
c8ab4518 38 Bool_t ExtractPedestals();
39 Bool_t ExtractDriftVelocityDAQ();
40 Bool_t ExtractHLT();
41 Bool_t ProcessDCS();
42 Bool_t ProcessDCS(TMap *dcsAliasMap);
6a0417c1 43 AliTRDPreprocessor& operator = (const AliTRDPreprocessor& rhs);
6ace5fe2 44
c8ab4518 45 private:
6a0417c1 46
92df0132 47 AliTRDCalDCSv2* fCalDCSObjSOR; // calDCS object Start of Run
48 AliTRDCalDCSv2* fCalDCSObjEOR; // calDCS object End of Run
6ace5fe2 49
6a0417c1 50 Bool_t fVdriftHLT; // HLT Vdrift
197b835e 51 UInt_t ProcessDCSConfigData(); // process DCS configuration
6e5d4cb2 52
92df0132 53 Bool_t AreThereDataPedestal(const AliTRDCalSingleChamberStatus * const calROCStatus, Bool_t second);
5029ad25 54 void SetDefaultStatus(AliTRDCalSingleChamberStatus &calROCStatus, Bool_t second);
55 void SetStatus(AliTRDCalSingleChamberStatus &calROCStatus, AliTRDCalSingleChamberStatus *calROCStatusPrevious,Bool_t second);
56 void SetDefaultNoise(AliTRDCalROC &calROCNoise, Bool_t second);
57 void SetNoise(AliTRDCalROC &calROCNoise, AliTRDCalROC *calROCNoisePrevious, Bool_t second);
58
5f481838 59 ClassDef(AliTRDPreprocessor,1) // The SHUTTLE preprocessor for TRD
e5c60cc7 60
61};
e5c60cc7 62#endif
6a0417c1 63