]>
Commit | Line | Data |
---|---|---|
17b26de4 | 1 | #ifndef ALITRDPARAMETER_H |
2 | #define ALITRDPARAMETER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
0a29d0f1 | 8 | /////////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // TRD parameter class // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
17b26de4 | 14 | #include "TNamed.h" |
15 | ||
16 | class AliTRDgeometry; | |
17 | ||
18 | class AliTRDparameter : public TNamed { | |
19 | ||
20 | public: | |
21 | ||
22 | enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 }; | |
23 | ||
24 | AliTRDparameter(); | |
25 | AliTRDparameter(const Text_t* name, const Text_t* title); | |
26 | AliTRDparameter(const AliTRDparameter &p); | |
27 | virtual ~AliTRDparameter(); | |
28 | AliTRDparameter &operator=(const AliTRDparameter &p); | |
29 | ||
30 | virtual void Copy(TObject &p); | |
31 | virtual void Init(); | |
32 | virtual void ReInit(); | |
33 | ||
34 | virtual void SetNRowPad(); | |
35 | virtual void SetNRowPad(const Int_t p, const Int_t c, const Int_t npad); | |
36 | virtual void SetColPadSize(const Int_t p, const Float_t s); | |
37 | virtual void SetNTimeBin(const Int_t nbin); | |
38 | virtual void SetExpandTimeBin(const Int_t nbefore, const Int_t nafter) | |
39 | { fTimeBefore = nbefore; | |
40 | fTimeAfter = nafter; }; | |
41 | ||
42 | virtual void SetGasGain(Float_t gasgain) { fGasGain = gasgain; }; | |
43 | virtual void SetNoise(Float_t noise) { fNoise = noise; }; | |
44 | virtual void SetChipGain(Float_t chipgain) { fChipGain = chipgain; }; | |
45 | virtual void SetADCoutRange(Float_t range) { fADCoutRange = range; }; | |
46 | virtual void SetADCinRange(Float_t range) { fADCinRange = range; }; | |
47 | virtual void SetADCthreshold(Int_t thresh) { fADCthreshold = thresh; }; | |
48 | virtual void SetDiffusion(Int_t diffOn = 1) { fDiffusionOn = diffOn; }; | |
49 | virtual void SetElAttach(Int_t elOn = 1) { fElAttachOn = elOn; }; | |
50 | virtual void SetElAttachProp(Float_t prop) { fElAttachProp = prop; }; | |
51 | virtual void SetExB(Int_t exbOn = 1) { fExBOn = exbOn; }; | |
52 | virtual void SetPadResponse(Int_t prfOn = 1) { fPRFOn = prfOn; }; | |
53 | virtual void SetTimeResponse(Int_t trfOn = 1) { fTRFOn = trfOn; | |
54 | ReInit(); }; | |
55 | virtual void SetCrossTalk(Int_t ctOn = 1) { fCTOn = ctOn; | |
56 | ReInit(); }; | |
57 | virtual void SetTailCancelation(Int_t tcOn = 1) { fTCOn = tcOn; }; | |
58 | virtual void SetNexponential(Int_t nexp) { fTCnexp = nexp; }; | |
59 | virtual void SetDriftVelocity(Float_t v) { fDriftVelocity = v; | |
60 | ReInit(); }; | |
61 | virtual void SetPadCoupling(Float_t v) { fPadCoupling = v; }; | |
62 | virtual void SetTimeCoupling(Float_t v) { fTimeCoupling = v; }; | |
63 | virtual void SetTiltingAngle(Float_t v); | |
64 | ||
65 | virtual void SetLUT(Int_t lutOn = 1) { fLUTOn = lutOn; }; | |
66 | virtual void SetClusMaxThresh(Int_t thresh) { fClusMaxThresh = thresh; }; | |
67 | virtual void SetClusSigThresh(Int_t thresh) { fClusSigThresh = thresh; }; | |
68 | ||
69 | Int_t GetRowMax(const Int_t p, const Int_t c, const Int_t s) | |
70 | const { return fRowMax[p][c][s]; }; | |
71 | Int_t GetColMax(const Int_t p) const { return fColMax[p]; }; | |
72 | Int_t GetTimeMax() const { return fTimeMax; }; | |
73 | Int_t GetTimeBefore() const { return fTimeBefore; }; | |
74 | Int_t GetTimeAfter() const { return fTimeAfter; }; | |
75 | Int_t GetTimeTotal() const { return fTimeMax | |
76 | + fTimeBefore | |
77 | + fTimeAfter; }; | |
78 | ||
79 | Float_t GetRow0(const Int_t p, const Int_t c, const Int_t s) | |
80 | const { return fRow0[p][c][s]; }; | |
81 | Float_t GetCol0(const Int_t p) const { return fCol0[p]; }; | |
82 | Float_t GetTime0(const Int_t p) const { return fTime0[p]; }; | |
83 | ||
84 | Float_t GetRowPadSize(const Int_t p, const Int_t c, const Int_t s) | |
85 | const { return fRowPadSize[p][c][s]; }; | |
86 | Float_t GetColPadSize(const Int_t p) const { return fColPadSize[p]; }; | |
87 | Float_t GetTimeBinSize() const { return fTimeBinSize; }; | |
88 | ||
89 | Float_t GetGasGain() const { return fGasGain; }; | |
90 | Float_t GetNoise() const { return fNoise; }; | |
91 | Float_t GetChipGain() const { return fChipGain; }; | |
92 | Float_t GetADCoutRange() const { return fADCoutRange; }; | |
93 | Float_t GetADCinRange() const { return fADCinRange; }; | |
94 | Int_t GetADCthreshold() const { return fADCthreshold; }; | |
95 | Float_t GetDiffusionT() const { return fDiffusionT; }; | |
96 | Float_t GetDiffusionL() const { return fDiffusionL; }; | |
97 | Float_t GetElAttachProp() const { return fElAttachProp; }; | |
98 | Float_t GetOmegaTau() const { return fOmegaTau; }; | |
99 | Float_t GetDriftVelocity() const { return fDriftVelocity; }; | |
100 | Float_t GetPadCoupling() const { return fPadCoupling; }; | |
101 | Float_t GetTimeCoupling() const { return fTimeCoupling; }; | |
102 | Float_t GetTimeBinWidth() const { return fTimeBinWidth; }; | |
103 | Float_t GetTRFlo() const { return fTRFlo; }; | |
104 | Float_t GetTRFhi() const { return fTRFhi; }; | |
105 | Float_t GetLorentzFactor() const { return fLorentzFactor; }; | |
106 | Float_t GetTCnexp() const { return fTCnexp; }; | |
107 | Float_t GetTiltingAngle() const; | |
108 | virtual Float_t GetDiffusionL(Float_t vd, Float_t b); | |
109 | virtual Float_t GetDiffusionT(Float_t vd, Float_t b); | |
110 | virtual Float_t GetOmegaTau(Float_t vd, Float_t b); | |
111 | ||
112 | virtual Int_t GetClusMaxThresh() const { return fClusMaxThresh; }; | |
113 | virtual Int_t GetClusSigThresh() const { return fClusSigThresh; }; | |
114 | ||
115 | Int_t ExBOn() const { return fExBOn; }; | |
116 | Int_t PRFOn() const { return fPRFOn; }; | |
117 | Int_t TRFOn() const { return fTRFOn; }; | |
118 | Int_t ElAttachOn() const { return fElAttachOn; }; | |
119 | Int_t DiffusionOn() const { return fDiffusionOn; }; | |
120 | Int_t CTOn() const { return fCTOn; }; | |
121 | Int_t TCOn() const { return fTCOn; }; | |
122 | Int_t LUTOn() const { return fLUTOn; }; | |
123 | ||
124 | virtual Int_t Diffusion(Float_t driftlength, Float_t *xyz); | |
0a29d0f1 | 125 | virtual Int_t ExB(Float_t driftlength, Float_t *xyz) const; |
17b26de4 | 126 | virtual Float_t Col0Tilted(Float_t col0, Float_t rowOffset, Int_t plane); |
0a29d0f1 | 127 | virtual Int_t PadResponse(Float_t signal, Float_t dist, Int_t plane, Float_t *pad) const; |
128 | virtual Float_t CrossTalk(Float_t time) const; | |
129 | virtual Float_t TimeResponse(Float_t time) const; | |
130 | virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR) const; | |
17b26de4 | 131 | |
132 | protected: | |
133 | ||
134 | AliTRDgeometry *fGeo; //! TRD geometry | |
135 | ||
136 | // Pad plane geometry | |
137 | Int_t fRowMax[kNplan][kNcham][kNsect]; // Number of pad-rows | |
138 | Int_t fColMax[kNplan]; // Number of pad-columns | |
139 | Int_t fTimeMax; // Number of timebins in the drift region | |
140 | Int_t fTimeBefore; // Number of timebins before the drift region | |
141 | Int_t fTimeAfter; // Number of timebins after the drift region | |
142 | ||
143 | Float_t fRow0[kNplan][kNcham][kNsect]; // Row-position of pad 0 | |
144 | Float_t fCol0[kNplan]; // Column-position of pad 0 | |
145 | Float_t fTime0[kNplan]; // Time-position of pad 0 | |
146 | ||
147 | Float_t fRowPadSize[kNplan][kNcham][kNsect]; // Pad size in z-direction | |
148 | Float_t fColPadSize[kNplan]; // Pad size in rphi-direction | |
149 | Float_t fTimeBinSize; // Size of the time buckets | |
150 | ||
151 | // Digitization parameter | |
152 | Float_t fField; // Magnetic field | |
153 | Float_t fGasGain; // Gas gain | |
154 | Float_t fNoise; // Electronics noise | |
155 | Float_t fChipGain; // Electronics gain | |
156 | Float_t fADCoutRange; // ADC output range (number of channels) | |
157 | Float_t fADCinRange; // ADC input range (input charge) | |
158 | Int_t fADCthreshold; // ADC threshold in ADC channel | |
159 | Int_t fDiffusionOn; // Switch for the diffusion | |
160 | Float_t fDiffusionT; // Diffusion in transverse direction | |
161 | Float_t fDiffusionL; // Diffusion in longitudinal direction | |
162 | Int_t fElAttachOn; // Switch for the electron attachment | |
163 | Float_t fElAttachProp; // Propability for electron attachment (for 1m) | |
164 | Int_t fExBOn; // Switch for the ExB effects | |
165 | Float_t fOmegaTau; // Tangens of the Lorentz angle | |
166 | Float_t fLorentzFactor; // Factor due to Lorentz force | |
167 | Int_t fPRFOn; // Switch for the pad response | |
168 | Float_t *fPRFsmp; //! Sampled pad response | |
169 | Int_t fPRFbin; // Number of bins for the PRF | |
170 | Float_t fPRFlo; // Lower boundary of the PRF | |
171 | Float_t fPRFhi; // Higher boundary of the PRF | |
172 | Float_t fPRFwid; // Bin width of the sampled PRF | |
173 | Int_t fPRFpad; // Distance to next pad in PRF | |
174 | Int_t fTRFOn; // Switch for the time response | |
175 | Float_t *fTRFsmp; //! Integrated time response | |
176 | Int_t fTRFbin; // Number of bins for the TRF | |
177 | Float_t fTRFlo; // Lower boundary of the TRF | |
178 | Float_t fTRFhi; // Higher boundary of the TRF | |
179 | Float_t fTRFwid; // Bin width of the integrated TRF | |
180 | Int_t fCTOn; // Switch for cross talk | |
181 | Float_t *fCTsmp; //! Integrated cross talk | |
182 | Int_t fTCOn; // Switch for the tail cancelation | |
183 | Int_t fTCnexp; // Number of exponential of the digital filter | |
184 | Float_t fDriftVelocity; // Drift velocity (cm / mus) | |
185 | Float_t fTimeBinWidth; // Time bin width in ns | |
186 | Float_t fPadCoupling; // Pad coupling factor | |
187 | Float_t fTimeCoupling; // Time coupling factor (image charge of moving ions) | |
188 | Float_t fTiltingAngle; // Tilting angle of the readout pads | |
189 | ||
190 | // Clusterization parameter | |
191 | Int_t fClusMaxThresh; // Threshold value for cluster maximum | |
192 | Int_t fClusSigThresh; // Threshold value for cluster signal | |
193 | Int_t fLUTOn; // Switch for the lookup table method | |
194 | Int_t fLUTbin; // Number of bins of the LUT | |
195 | Float_t *fLUT; //! The lookup table | |
196 | ||
197 | private: | |
198 | ||
199 | virtual void SamplePRF(); | |
200 | virtual void SampleTRF(); | |
201 | virtual void FillLUT(); | |
202 | ||
8e64dd77 | 203 | ClassDef(AliTRDparameter,2) // TRD parameter class |
17b26de4 | 204 | |
205 | }; | |
206 | ||
207 | #endif |