]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFPreprocessor.h
double for 4-momentum in Generate()
[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);
104ba366 34 virtual UInt_t Process(TMap *dcsAliasMap);
7fffa85b 35 virtual Bool_t ProcessDCS();
c9fe8530 36
37 private:
38 AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
39 AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);
104ba366 40 UInt_t ProcessDCSDataPoints(TMap *dcsAliasMap);
41 UInt_t ProcessHVandLVdps(TMap *dcsAliasMap);
ee3e792b 42 UInt_t ProcessOnlineDelays();
43 UInt_t ProcessPulserData();
44 UInt_t ProcessNoiseData();
db83b789 45 UInt_t ProcessFEEData(); // dummy, for the time being
104ba366 46 UInt_t ProcessT0Fill();
f04b3a69 47 UInt_t ProcessNoiseCalibTrg();
5b4ed716 48 UInt_t ProcessReadout();
7fffa85b 49
b06d5296 50 void FillWithCosmicCalibration(AliTOFChannelOnlineArray *cal); // fill with cosmic calibration
51 void FillWithCableLengthMap(AliTOFChannelOnlineArray *cal); // fill with cable-lenght map
52
17149e6b 53 static const Int_t fgkBinRangeAve; // number of bins where to
54 // calculate the mean
55 static const Double_t fgkIntegralThr; // min number of entries per channel
56 // to perform calculation of delay
57 static const Double_t fgkThrPar; // parameter used to trigger the
58 // calculation of the delay
59 AliTOFDataDCS *fData; // CDB class that stores the data
ea932f75 60 AliTOFLvHvDataPoints *fHVLVmaps; // HV and LV status maps
17149e6b 61 AliTOFChannelOnlineArray *fCal; // TOF Calibration object
62 Int_t fNChannels; // number of TOF channels
63 Bool_t fStoreRefData; // Flag to decide storage of Ref Data
64 Bool_t fFDRFlag; // Flag for FDR runs
65 AliTOFChannelOnlineStatusArray *fStatus; // Array with TOF channels' status
013ac2dd 66 Int_t *fMatchingWindow; //[fNChannels]
67 // Array of matching windows (one per channel) - to be used in noise runs
02ede0c4 68 Int_t *fLatencyWindow; //[fNChannels]
69 // Array of latency windows (one per channel)
ea932f75 70 Bool_t fIsStatusMapChanged; // flag to check is the status map OCDB has to be updated
71
72 ClassDef(AliTOFPreprocessor, 1);
73
c9fe8530 74};
c9fe8530 75#endif