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 AliTOFLvHvDataPoints;
17 class AliTOFChannelOnlineStatusArray;
18 class AliTOFChannelOnlineArray;
22 class AliTOFPreprocessor : public AliPreprocessor
25 AliTOFPreprocessor(AliShuttleInterface* shuttle);
26 virtual ~AliTOFPreprocessor();
27 void SetStoreRefData(Bool_t in){fStoreRefData=in;};
28 Bool_t GetStoreRefData() const {return fStoreRefData;}
29 void SetFDRFlag(Bool_t flag) {fFDRFlag = flag;}
30 Bool_t GetFDRFlag() const {return fFDRFlag;}
33 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
34 virtual UInt_t Process(TMap *dcsAliasMap);
35 virtual Bool_t ProcessDCS();
38 AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
39 AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);
40 UInt_t ProcessDCSDataPoints(TMap *dcsAliasMap);
41 UInt_t ProcessHVandLVdps(TMap *dcsAliasMap);
42 UInt_t ProcessOnlineDelays();
43 UInt_t ProcessPulserData();
44 UInt_t ProcessNoiseData();
45 UInt_t ProcessFEEData(); // dummy, for the time being
46 UInt_t ProcessT0Fill();
48 void FillWithCosmicCalibration(AliTOFChannelOnlineArray *cal); // fill with cosmic calibration
49 void FillWithCableLengthMap(AliTOFChannelOnlineArray *cal); // fill with cable-lenght map
51 static const Int_t fgkBinRangeAve; // number of bins where to
53 static const Double_t fgkIntegralThr; // min number of entries per channel
54 // to perform calculation of delay
55 static const Double_t fgkThrPar; // parameter used to trigger the
56 // calculation of the delay
57 AliTOFDataDCS *fData; // CDB class that stores the data
58 AliTOFLvHvDataPoints *fHVLVmaps; // HV and LV status maps
59 AliTOFChannelOnlineArray *fCal; // TOF Calibration object
60 Int_t fNChannels; // number of TOF channels
61 Bool_t fStoreRefData; // Flag to decide storage of Ref Data
62 Bool_t fFDRFlag; // Flag for FDR runs
63 AliTOFChannelOnlineStatusArray *fStatus; // Array with TOF channels' status
64 Int_t *fMatchingWindow; //[fNChannels]
65 // Array of matching windows (one per channel) - to be used in noise runs
66 Int_t *fLatencyWindow; //[fNChannels]
67 // Array of latency windows (one per channel)
68 Bool_t fIsStatusMapChanged; // flag to check is the status map OCDB has to be updated
70 ClassDef(AliTOFPreprocessor, 1);