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 void FillWithCosmicCalibration(AliTOFChannelOnlineArray *cal); // fill with cosmic calibration
45 void FillWithCableLengthMap(AliTOFChannelOnlineArray *cal); // fill with cable-lenght map
47 static const Int_t fgkBinRangeAve; // number of bins where to
49 static const Double_t fgkIntegralThr; // min number of entries per channel
50 // to perform calculation of delay
51 static const Double_t fgkThrPar; // parameter used to trigger the
52 // calculation of the delay
53 AliTOFDataDCS *fData; // CDB class that stores the data
54 AliTOFChannelOnlineArray *fCal; // TOF Calibration object
55 Int_t fNChannels; // number of TOF channels
56 Bool_t fStoreRefData; // Flag to decide storage of Ref Data
57 Bool_t fFDRFlag; // Flag for FDR runs
58 AliTOFChannelOnlineStatusArray *fStatus; // Array with TOF channels' status
59 Int_t *fMatchingWindow; //[fNChannels]
60 // Array of matching windows (one per channel) - to be used in noise runs
61 ClassDef(AliTOFPreprocessor, 0);