]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFPreprocessor.h
added verbosity to QA histograms (Yves)
[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;
17149e6b 16class AliTOFChannelOnlineStatusArray;
c9fe8530 17class TObjArray;
708db10b 18class TH2S;
c9fe8530 19
20class AliTOFPreprocessor : public AliPreprocessor
21{
22 public:
708db10b 23 AliTOFPreprocessor(AliShuttleInterface* shuttle);
c9fe8530 24 virtual ~AliTOFPreprocessor();
c42cf4bd 25 void SetStoreRefData(Bool_t in){fStoreRefData=in;};
7fffa85b 26 Bool_t GetStoreRefData() const {return fStoreRefData;}
27 void SetFDRFlag(Bool_t flag) {fFDRFlag = flag;}
28 Bool_t GetFDRFlag() const {return fFDRFlag;}
c9fe8530 29
30 protected:
31 virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
32 virtual UInt_t Process(TMap* dcsAliasMap);
7fffa85b 33 virtual Bool_t ProcessDCS();
c9fe8530 34
35 private:
36 AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
37 AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);
ee3e792b 38 UInt_t ProcessDCSDataPoints(TMap* dcsAliasMap);
39 UInt_t ProcessOnlineDelays();
40 UInt_t ProcessPulserData();
41 UInt_t ProcessNoiseData();
db83b789 42 UInt_t ProcessFEEData(); // dummy, for the time being
7fffa85b 43
17149e6b 44 static const Int_t fgkBinRangeAve; // number of bins where to
45 // calculate the mean
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
17149e6b 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
013ac2dd 56 Int_t *fMatchingWindow; //[fNChannels]
57 // Array of matching windows (one per channel) - to be used in noise runs
58 ClassDef(AliTOFPreprocessor, 0);
c9fe8530 59};
c9fe8530 60#endif