1 #ifndef ALI_TOF_PREPROCESSOR_H
2 #define ALI_TOF_PREPROCESSOR_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 #include "AliPreprocessor.h"
11 // TOF preprocessor. It takes care of both
13 // and DAQ histograms to compute online calibration constants
16 class AliTOFChannelOnlineStatusArray;
20 class AliTOFPreprocessor : public AliPreprocessor
23 AliTOFPreprocessor(AliShuttleInterface* shuttle);
24 virtual ~AliTOFPreprocessor();
25 void SetStoreRefData(Bool_t in){fStoreRefData=in;};
26 Bool_t GetStoreRefData() const {return fStoreRefData;}
27 void SetFDRFlag(Bool_t flag) {fFDRFlag = flag;}
28 Bool_t GetFDRFlag() const {return fFDRFlag;}
31 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
32 virtual UInt_t Process(TMap* dcsAliasMap);
33 virtual Bool_t ProcessDCS();
36 AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
37 AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);
38 UInt_t ProcessDCSDataPoints(TMap* dcsAliasMap);
39 UInt_t ProcessOnlineDelays();
40 UInt_t ProcessPulserData();
41 UInt_t ProcessNoiseData();
42 UInt_t ProcessFEEData(); // dummy, for the time being
44 static const Int_t fgkBinRangeAve; // number of bins where to
46 static const Double_t fgkIntegralThr; // min number of entries per channel
47 // to perform calculation of delay
48 static const Double_t fgkThrPar; // parameter used to trigger the
49 // calculation of the delay
50 AliTOFDataDCS *fData; // CDB class that stores the data
51 AliTOFChannelOnlineArray *fCal; // TOF Calibration object
52 Int_t fNChannels; // number of TOF channels
53 Bool_t fStoreRefData; // Flag to decide storage of Ref Data
54 Bool_t fFDRFlag; // Flag for FDR runs
55 AliTOFChannelOnlineStatusArray *fStatus; // Array with TOF channels' status
56 Int_t *fMatchingWindow; //[fNChannels]
57 // Array of matching windows (one per channel) - to be used in noise runs
58 ClassDef(AliTOFPreprocessor, 0);