]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDtrigParam.h
Coding violations in HLT/MUON
[u/mrichter/AliRoot.git] / TRD / AliTRDtrigParam.h
CommitLineData
0ee00e25 1#ifndef ALITRDTRIGPARAM_H
2#define ALITRDTRIGPARAM_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// TRD trigger parameters class //
9// //
10///////////////////////////////////////////////////////////////////////////////
11
12#include <TNamed.h>
13
14class AliTRDtrigParam : public TNamed {
15
16 public:
17
18 AliTRDtrigParam();
19 AliTRDtrigParam(const Text_t* name, const Text_t* title);
20 AliTRDtrigParam(const AliTRDtrigParam &p);
21 virtual ~AliTRDtrigParam();
22 AliTRDtrigParam &operator=(const AliTRDtrigParam &p);
0ee00e25 23 virtual void Copy(TObject &p) const;
e3b2b5e5 24
25 void Init();
0ee00e25 26
ec35cce0 27 void SetTimeRange(Int_t time1, Int_t time2) { fTime1 = time1; fTime2 = time2; };
0ee00e25 28 Int_t GetTime1() const { return fTime1; };
29 Int_t GetTime2() const { return fTime2; };
ec35cce0 30 void SetClusThr(Float_t clth) { fClusThr = clth; };
31 void SetPadThr(Float_t path) { fPadThr = path; };
0ee00e25 32 Float_t GetClusThr() const { return fClusThr; };
33 Float_t GetPadThr() const { return fPadThr; };
ec35cce0 34 void SetSum10(Int_t sum) { fSum10 = sum; };
35 void SetSum12(Int_t sum) { fSum12 = sum; };
0ee00e25 36 Int_t GetSum10() const { return fSum10; };
37 Int_t GetSum12() const { return fSum12; };
38
39 void SetTailCancelation(Int_t tcOn = 0) { fTCOn = tcOn; };
40 void SetNexponential(Int_t nexp = 1) { fTCnexp = nexp; };
41 void SetFilterType(Int_t ftype = 0) { fFilterType = ftype; };
42 void SetFilterParam(Float_t r1, Float_t r2, Float_t c1, Float_t c2, Float_t ped)
43 { fR1 = r1; fR2 = r2; fC1 = c1; fC2 = c2; fPedestal = ped; };
44
45 Int_t GetTailCancelation() const { return fTCOn; };
46 Int_t GetNexponential() const { return fTCnexp; };
47 Int_t GetFilterType() const { return fFilterType; };
e3b2b5e5 48 void GetFilterParam(Float_t &r1, Float_t &r2, Float_t &c1, Float_t &c2, Float_t &ped) const { r1 = fR1; r2 = fR2; c1 = fC1; c2 = fC2; ped = fPedestal; };
0ee00e25 49
ec35cce0 50 void SetADCnoise(Float_t adcn) { fADCnoise = adcn; };
e3b2b5e5 51 Float_t GetADCnoise() const { return fADCnoise; };
0ee00e25 52
ec35cce0 53 void SetDebugLevel(Int_t deb) { fDebug = deb; };
e3b2b5e5 54 Int_t GetDebugLevel() const { return fDebug; };
0ee00e25 55
56 void SetDeltaY(Float_t dy) { fDeltaY = dy; };
e3b2b5e5 57 Float_t GetDeltaY() const { return fDeltaY; };
0ee00e25 58 void SetDeltaS(Float_t ds) { fDeltaS = ds; };
e3b2b5e5 59 Float_t GetDeltaS() const { return fDeltaS; };
0ee00e25 60
e3b2b5e5 61 Float_t GetXprojPlane() const { return fXprojPlane; };
0ee00e25 62
63 void SetField(Float_t b) { fField = b; };
e3b2b5e5 64 Float_t GetField() const { return fField; };
0ee00e25 65
66 void SetLtuPtCut(Float_t ptcut) { fLtuPtCut = ptcut; };
e3b2b5e5 67 Float_t GetLtuPtCut() const { return fLtuPtCut; };
0ee00e25 68
69 void SetGtuPtCut(Float_t ptcut) { fGtuPtCut = ptcut; };
e3b2b5e5 70 Float_t GetGtuPtCut() const { return fGtuPtCut; };
71
72 void SetHighPt(Float_t hpt) { fHighPt = hpt; };
73 Float_t GetHighPt() const { return fHighPt; };
0ee00e25 74
75 protected:
76
77 Int_t fDebug; // debugging flag
78
79 Int_t fTime1; // first time bin for tracking (incl.)
80 Int_t fTime2; // last time bin for tracking (incl.)
81 Float_t fClusThr; // cluster threshold
82 Float_t fPadThr; // pad threshold
83 Int_t fSum10; // MCM CreateSeeds: Min_Thr_Left_Neighbour
84 Int_t fSum12; // MCM CreateSeeds: Min_Sum_From_Two_Neighbours
85 Int_t fTCOn; // tail cancelation flag
86 Int_t fTCnexp; // number of exp in filter
87 Int_t fFilterType; // filter type (0=A - analog, 1=D - digital)
e3b2b5e5 88
89 // filter parameters (1 = long, 2 = short component)
90 Float_t fR1; // time constant [microseconds]
91 Float_t fR2; // time constant [microseconds]
92 Float_t fC1; // weight
93 Float_t fC2; // weight
94 Float_t fPedestal; // ADC baseline
0ee00e25 95 Float_t fADCnoise; // ADC noise (not contained in the digitizer)
96
97 Float_t fDeltaY; // Y (offset) matching window in the GTU
98 Float_t fDeltaS; // Slope matching window in the GTU
99
100 Float_t fXprojPlane; // Projection plane (X) for GTU matching
101
102 Float_t fLtuPtCut; // Local pt cut
103 Float_t fGtuPtCut; // Global pt cut
104
105 Float_t fField; // Magnetic field
106
e3b2b5e5 107 Float_t fHighPt; // High pt selection
108
109 ClassDef(AliTRDtrigParam,2) // TRD trigger parameter class
0ee00e25 110
111};
112
113#endif