]>
Commit | Line | Data |
---|---|---|
c9fe8530 | 1 | #ifndef ALI_TOF_PREPROCESSOR_H |
2 | #define ALI_TOF_PREPROCESSOR_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | #include "AliPreprocessor.h" | |
10 | ||
11 | // TOF preprocessor. It takes care of both | |
12 | // DCS Data Points | |
13 | // and DAQ histograms to compute online calibration constants | |
14 | ||
15 | class AliTOFDataDCS; | |
16 | class TObjArray; | |
708db10b | 17 | class TH2S; |
c9fe8530 | 18 | |
19 | class AliTOFPreprocessor : public AliPreprocessor | |
20 | { | |
21 | public: | |
708db10b | 22 | AliTOFPreprocessor(AliShuttleInterface* shuttle); |
c9fe8530 | 23 | virtual ~AliTOFPreprocessor(); |
c42cf4bd | 24 | void SetStoreRefData(Bool_t in){fStoreRefData=in;}; |
25 | Bool_t GetStoreRefData() const {return fStoreRefData;}; | |
c9fe8530 | 26 | |
27 | protected: | |
28 | virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime); | |
29 | virtual UInt_t Process(TMap* dcsAliasMap); | |
30 | ||
31 | private: | |
32 | AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor | |
33 | AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc); | |
ee3e792b | 34 | UInt_t ProcessDCSDataPoints(TMap* dcsAliasMap); |
35 | UInt_t ProcessOnlineDelays(); | |
36 | UInt_t ProcessPulserData(); | |
37 | UInt_t ProcessNoiseData(); | |
c9fe8530 | 38 | |
39 | static const Int_t fgkBinRangeAve; // number of bins where to | |
8d551d44 | 40 | // calculate the mean |
9d883ed9 | 41 | static const Double_t fgkThrPar; // parameter used to trigger the |
10056aa6 | 42 | // calculation of the delay |
43 | AliTOFDataDCS *fData; // CDB class that stores the data | |
44 | TH2S *fh2; // TH2S from DAQ for histograms | |
45 | // for delays | |
46 | TObjArray *fCal; // TOF Calibration object | |
47 | Int_t fNChannels; // number of TOF channels | |
48 | Bool_t fStoreRefData; // Flag to decide storage of Ref Data | |
ee3e792b | 49 | ClassDef(AliTOFPreprocessor, 3); |
c9fe8530 | 50 | }; |
c9fe8530 | 51 | #endif |