]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFPreprocessor.h
Cross library dependency removed
[u/mrichter/AliRoot.git] / TOF / AliTOFPreprocessor.h
CommitLineData
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
15class AliTOFDataDCS;
ea932f75 16class AliTOFLvHvDataPoints;
17149e6b 17class AliTOFChannelOnlineStatusArray;
ea932f75 18class AliTOFChannelOnlineArray;
c9fe8530 19class TObjArray;
708db10b 20class TH2S;
c9fe8530 21
22class AliTOFPreprocessor : public AliPreprocessor
23{
24 public:
708db10b 25 AliTOFPreprocessor(AliShuttleInterface* shuttle);
c9fe8530 26 virtual ~AliTOFPreprocessor();
c42cf4bd 27 void SetStoreRefData(Bool_t in){fStoreRefData=in;};
7fffa85b 28 Bool_t GetStoreRefData() const {return fStoreRefData;}
29 void SetFDRFlag(Bool_t flag) {fFDRFlag = flag;}
30 Bool_t GetFDRFlag() const {return fFDRFlag;}
c9fe8530 31
32 protected:
33 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
ea932f75 34 virtual UInt_t Process(TMap * const dcsAliasMap);
7fffa85b 35 virtual Bool_t ProcessDCS();
c9fe8530 36
37 private:
38 AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
39 AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);
ea932f75 40 UInt_t ProcessDCSDataPoints(TMap * const dcsAliasMap);
41 UInt_t ProcessHVandLVdps(TMap * const dcsAliasMap);
ee3e792b 42 UInt_t ProcessOnlineDelays();
43 UInt_t ProcessPulserData();
44 UInt_t ProcessNoiseData();
db83b789 45 UInt_t ProcessFEEData(); // dummy, for the time being
7fffa85b 46
b06d5296 47 void FillWithCosmicCalibration(AliTOFChannelOnlineArray *cal); // fill with cosmic calibration
48 void FillWithCableLengthMap(AliTOFChannelOnlineArray *cal); // fill with cable-lenght map
49
17149e6b 50 static const Int_t fgkBinRangeAve; // number of bins where to
51 // calculate the mean
52 static const Double_t fgkIntegralThr; // min number of entries per channel
53 // to perform calculation of delay
54 static const Double_t fgkThrPar; // parameter used to trigger the
55 // calculation of the delay
56 AliTOFDataDCS *fData; // CDB class that stores the data
ea932f75 57 AliTOFLvHvDataPoints *fHVLVmaps; // HV and LV status maps
17149e6b 58 AliTOFChannelOnlineArray *fCal; // TOF Calibration object
59 Int_t fNChannels; // number of TOF channels
60 Bool_t fStoreRefData; // Flag to decide storage of Ref Data
61 Bool_t fFDRFlag; // Flag for FDR runs
62 AliTOFChannelOnlineStatusArray *fStatus; // Array with TOF channels' status
013ac2dd 63 Int_t *fMatchingWindow; //[fNChannels]
64 // Array of matching windows (one per channel) - to be used in noise runs
02ede0c4 65 Int_t *fLatencyWindow; //[fNChannels]
66 // Array of latency windows (one per channel)
ea932f75 67 Bool_t fIsStatusMapChanged; // flag to check is the status map OCDB has to be updated
68
69 ClassDef(AliTOFPreprocessor, 1);
70
c9fe8530 71};
c9fe8530 72#endif