L1 monitoring code - from Nicolas A and Francesco B
[u/mrichter/AliRoot.git] / T0 / AliT0RecoParam.h
CommitLineData
fbb25869 1#ifndef ALIT0RECOPARAM_H
2#define ALIT0RECOPARAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// //
8// Class with T0 reconstruction parameters //
9// //
10///////////////////////////////////////////////////////////////////////////////
11
12
13#include "AliDetectorRecoParam.h"
14
15class AliT0RecoParam : public AliDetectorRecoParam
16{
17 public:
18 AliT0RecoParam();
19 AliT0RecoParam(const AliT0RecoParam &p); //copy constructor
20 AliT0RecoParam& operator=(const AliT0RecoParam &p);
21 virtual ~AliT0RecoParam();
612737bb 22
23 static AliT0RecoParam *GetLowFluxParam(); // make reco parameters for low flux env
fbb25869 24 static AliT0RecoParam *GetHighFluxParam(); // make reco parameters for high flux env
25 static AliT0RecoParam *GetLaserTestParam(); // special setting for laser SetLaserTestParam
26 //for monitoring
27 // static AliT0RecoParam *GetHistRange(); // limit of monitoring histograms
612737bb 28
29 //old staff
fbb25869 30 Float_t GetRefAmp() const {return fRefAmp;}
31 void SetRefAmp(Float_t amp) { fRefAmp = amp;}
32 Int_t GetRefPoint() const {return fRefPoint;}
33 void SetRefPoint(Int_t ref) {fRefPoint = ref;}
612737bb 34
fbb25869 35 Float_t GetLow(Int_t numhist) const {return fLow[numhist];}
36 // Float_t GetLow() {return *fLow;}
37 void SetLow(Int_t numhist, Float_t low) {fLow[numhist] = low;}
612737bb 38
fbb25869 39 Float_t GetHigh(Int_t numhist) const {return fHigh[numhist];}
40 // Float_t GetHigh() {return *fHigh;}
41 void SetHigh(Int_t numhist, Float_t high) {fHigh[numhist] = high;}
fbb25869 42 Float_t GetLatencyL1() const {return fLatencyL1;}
43 void SetLatencyL1(Float_t lat) {fLatencyL1 = lat;}
e9626e76 44 Float_t GetLatencyL1A() const {return fLatencyL1A;}
45 void SetLatencyL1A(Float_t lat) {fLatencyL1A = lat;}
46 Float_t GetLatencyL1C() const {return fLatencyL1C;}
47 void SetLatencyL1C(Float_t lat) {fLatencyL1C = lat;}
fbb25869 48 Float_t GetLatencyHPTDC() const {return fLatencyHPTDC;}
49 void SetLatencyHPTDC(Float_t lat) {fLatencyHPTDC = lat;}
50 Float_t GetVertexShift() const {return fVertexShift;}
51 void SetVertexShift(Float_t sh) {fVertexShift = sh;}
612737bb 52
53 //new staff
54 Int_t GetBadChannels(Int_t i) const {return fBadChannels[i];}
55 void SetBadChannels(Int_t i, Int_t value) {fBadChannels[i] = value;}
56 Float_t GetAmpLowThreshold() const {return fLow[200];}
57 Float_t GetAmpHighThreshold() const {return fHigh[200];}
58
59
fbb25869 60 void PrintParameters() const;
61
62 protected:
63 Float_t fRefAmp; // for slewing correcton
64 Int_t fRefPoint; // #channel for RefPoint
65 Float_t fLow[500]; //low limit of monitoring histograms
66 Float_t fHigh[500]; //high limit of monitoring histograms
67 Float_t fLatencyL1; //Latency L1
e9626e76 68 Float_t fLatencyL1A; //Latency L1 for OrA
69 Float_t fLatencyL1C; //Latency L1 for orC
fbb25869 70 Float_t fLatencyHPTDC; //Latency HPTDC
71 Float_t fVertexShift; // for slewing correcton
612737bb 72 Int_t fBadChannels[24]; // bad channels map
73
74 ClassDef(AliT0RecoParam, 5);
fbb25869 75
76};
77#endif