ATLAS Offline Software
TRTDigSettings.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /////////////////////////////////////////////////////////////////
6 // //
7 // File: TRTDigSettings.icc //
8 // //
9 // Author: Thomas Kittelmann <kittel@nbi.dk> //
10 // //
11 // First version: April 2005. Rewritten November 2005. //
12 // //
13 // Class containing parameters and settings mainly used by TRT //
14 // digitization. //
15 // //
16 /////////////////////////////////////////////////////////////////
17 
18 inline int TRTDigSettings::digVers() const {
19  return m_digversion;
20 }
21 inline double TRTDigSettings::attenuationLength() const {
22  return m_attenuationLength;
23 }
24 inline bool TRTDigSettings::useAttenuation() const {
25  return m_useAttenuation;
26 }
27 inline bool TRTDigSettings::useMagneticFieldMap() const {
28  return m_useMagneticFieldMap;
29 }
30 inline unsigned int TRTDigSettings::digVersion() const {
31  return m_digversion;
32 }
33 inline double TRTDigSettings::ionisationPotential(int strawGasType) const {
34  if (strawGasType==0) return m_ionisationPotential;
35  else if (strawGasType==1) return m_ionisationPotentialKrypton;
36  else if (strawGasType==2) return m_ionisationPotentialArgon;
37  else return m_ionisationPotential; // should not happen
38 }
39 inline double TRTDigSettings::smearingFactor(int strawGasType) const {
40  if (strawGasType==0) return m_smearingFactor;
41  else if (strawGasType==1) return m_smearingFactorKrypton;
42  else if (strawGasType==2) return m_smearingFactorArgon;
43  else return m_smearingFactor; // should not happen
44 }
45 inline double TRTDigSettings::timeInterval() const {
46  return m_timeInterval;
47 }
48 inline unsigned int TRTDigSettings::numberOfBins() const {
49  return m_numberOfBins;
50 }
51 inline unsigned int TRTDigSettings::numberOfBinsInEncodingBin() const {
52  return m_numberOfBinsInEncodingBin;
53 }
54 inline double TRTDigSettings::minDiscriminatorWidth() const {
55  return m_minDiscriminatorWidth;
56 }
57 inline double TRTDigSettings::discriminatorSettlingTime() const {
58  return m_discriminatorSettlingTime;
59 }
60 inline double TRTDigSettings::discriminatorDeadTime() const {
61  return m_discriminatorDeadTime;
62 }
63 inline double TRTDigSettings::distanceToTimeFactor() const {
64  return m_distanceToTimeFactor;
65 }
66 inline double TRTDigSettings::signalPropagationSpeed() const {
67  return m_signalPropagationSpeed;
68 }
69 inline double TRTDigSettings::lowThresholdBar(int strawGasType) const {
70  if (strawGasType==0) return m_lowThresholdBar;
71  else if (strawGasType==1) return m_lowThresholdBarKrypton;
72  else if (strawGasType==2) return m_lowThresholdBarArgon;
73  else return m_lowThresholdBar; // should not happen
74 }
75 inline double TRTDigSettings::lowThresholdEC(int strawGasType) const {
76  if (strawGasType==0) return m_lowThresholdEC;
77  else if (strawGasType==1) return m_lowThresholdECKrypton;
78  else if (strawGasType==2) return m_lowThresholdECArgon;
79  else return m_lowThresholdEC; // should not happen
80 }
81 inline double TRTDigSettings::highThresholdBarShort(int strawGasType) const {
82  if (strawGasType==0) return m_highThresholdBarShort;
83  else if (strawGasType==1) return m_highThresholdBarShortKrypton;
84  else if (strawGasType==2) return m_highThresholdBarShortArgon;
85  else return m_highThresholdBarShort; // should not happen
86 }
87 inline double TRTDigSettings::highThresholdBarLong(int strawGasType) const {
88  if (strawGasType==0) return m_highThresholdBarLong;
89  else if (strawGasType==1) return m_highThresholdBarLongKrypton;
90  else if (strawGasType==2) return m_highThresholdBarLongArgon;
91  else return m_highThresholdBarLong; // should not happen
92 }
93 inline double TRTDigSettings::highThresholdECAwheels(int strawGasType) const {
94  if (strawGasType==0) return m_highThresholdECAwheels;
95  else if (strawGasType==1) return m_highThresholdECAwheelsKrypton;
96  else if (strawGasType==2) return m_highThresholdECAwheelsArgon;
97  else return m_highThresholdECAwheels; // should not happen
98 }
99 inline double TRTDigSettings::highThresholdECBwheels(int strawGasType) const {
100  if (strawGasType==0) return m_highThresholdECBwheels;
101  else if (strawGasType==1) return m_highThresholdECBwheelsKrypton;
102  else if (strawGasType==2) return m_highThresholdECBwheelsArgon;
103  else return m_highThresholdECBwheels; // should not happen
104 }
105 inline double TRTDigSettings::trEfficiencyBarrel(int strawGasType) const {
106  if (strawGasType==0) return m_trEfficiencyBarrel;
107  else if (strawGasType==1) return m_trEfficiencyBarrelKrypton;
108  else if (strawGasType==2) return m_trEfficiencyBarrelArgon;
109  else return m_trEfficiencyBarrel; // should not happen
110 }
111 inline double TRTDigSettings::trEfficiencyEndCapA(int strawGasType) const {
112  if (strawGasType==0) return m_trEfficiencyEndCapA;
113  else if (strawGasType==1) return m_trEfficiencyEndCapAKrypton;
114  else if (strawGasType==2) return m_trEfficiencyEndCapAArgon;
115  else return m_trEfficiencyEndCapA; // should not happen
116 }
117 inline double TRTDigSettings::trEfficiencyEndCapB(int strawGasType) const {
118  if (strawGasType==0) return m_trEfficiencyEndCapB;
119  else if (strawGasType==1) return m_trEfficiencyEndCapBKrypton;
120  else if (strawGasType==2) return m_trEfficiencyEndCapBArgon;
121  else return m_trEfficiencyEndCapB; // should not happen
122 }
123 inline int TRTDigSettings::htT0shiftBarShort() const {
124  return m_htT0shiftBarShort;
125 }
126 inline int TRTDigSettings::htT0shiftBarLong() const {
127  return m_htT0shiftBarLong;
128 }
129 inline int TRTDigSettings::htT0shiftECAwheels() const {
130  return m_htT0shiftECAwheels;
131 }
132 inline int TRTDigSettings::htT0shiftECBwheels() const {
133  return m_htT0shiftECBwheels;
134 }
135 inline int TRTDigSettings::ltT0shiftBarShort(int strawGasType) const {
136  if (strawGasType==0) return m_ltT0shiftBarShortXe;
137  else if (strawGasType==1) return m_ltT0shiftBarShortKr;
138  else if (strawGasType==2) return m_ltT0shiftBarShortAr;
139  else return 0; // should not happen
140 }
141 inline int TRTDigSettings::ltT0shiftBarLong(int strawGasType) const {
142  if (strawGasType==0) return m_ltT0shiftBarLongXe;
143  else if (strawGasType==1) return m_ltT0shiftBarLongKr;
144  else if (strawGasType==2) return m_ltT0shiftBarLongAr;
145  else return 0; // should not happen
146 }
147 inline int TRTDigSettings::ltT0shiftECAwheels(int strawGasType) const {
148  if (strawGasType==0) return m_ltT0shiftECAwheelsXe;
149  else if (strawGasType==1) return m_ltT0shiftECAwheelsKr;
150  else if (strawGasType==2) return m_ltT0shiftECAwheelsAr;
151  else return 0; // should not happen
152 }
153 inline int TRTDigSettings::ltT0shiftECBwheels(int strawGasType) const {
154  if (strawGasType==0) return m_ltT0shiftECBwheelsXe;
155  else if (strawGasType==1) return m_ltT0shiftECBwheelsKr;
156  else if (strawGasType==2) return m_ltT0shiftECBwheelsAr;
157  else return 0; // should not happen
158 }
159 inline double TRTDigSettings::innerRadiusOfStraw() const {
160  return m_innerRadiusOfStraw;
161 }
162 inline double TRTDigSettings::outerRadiusOfWire() const {
163  return m_outerRadiusOfWire;
164 }
165 inline double TRTDigSettings::lengthOfDeadRegion() const {
166  return m_lengthOfDeadRegion;
167 }
168 inline bool TRTDigSettings::timeCorrection() const {
169  return m_timeCorrection;
170 }
171 inline unsigned int TRTDigSettings::numberOfCrossingsBeforeMain() const {
172  return m_numberOfCrossingsBeforeMain;
173 }
174 inline unsigned int TRTDigSettings::cosmicFlag() const {
175  return m_cosmicFlag;
176 }
177 inline bool TRTDigSettings::isCTB() const {
178  return m_isCTB;
179 }
180 inline bool TRTDigSettings::isOverlay() const {
181  return m_isOverlay;
182 }
183 inline bool TRTDigSettings::killEndCap() const {
184  return m_killEndCap;
185 }
186 inline bool TRTDigSettings::killBarrel() const {
187  return m_killBarrel;
188 }
189 inline double TRTDigSettings::jitterTimeOffset() const {
190  return m_jitterTimeOffset;
191 }
192 inline bool TRTDigSettings::doCosmicTimingPit() const {
193  return m_doCosmicTimingPit;
194 }
195 inline bool TRTDigSettings::doCrosstalk() const {
196  return m_doCrosstalk;
197 }
198 inline double TRTDigSettings::pileUpSDOsMinEkin() const {
199  return m_pileUpSDOsMinEkin;
200 }
201 inline double TRTDigSettings::maxVertexDisplacement() const {
202  return m_maxVertexDisplacement;
203 }
204 inline double TRTDigSettings::timeOffsetCalcVertexX() const {
205  return m_timeOffsetCalcVertexX;
206 }
207 inline double TRTDigSettings::timeOffsetCalcVertexY() const {
208  return m_timeOffsetCalcVertexY;
209 }
210 inline double TRTDigSettings::timeOffsetCalcVertexZ() const {
211  return m_timeOffsetCalcVertexZ;
212 }
213 inline bool TRTDigSettings::electronicsAreAtFarEnd() const {
214  return m_electronicsAreAtFarEnd;
215 }
216 inline bool TRTDigSettings::timeshiftsSymmetricForPhiSectors() const {
217  return m_timeshiftsSymmetricForPhiSectors;
218 }
219 inline bool TRTDigSettings::noiseInUnhitStraws() const {
220  return m_noiseInUnhitStraws;
221 }
222 inline bool TRTDigSettings::noiseInSimhits() const {
223  return m_noiseInSimhits;
224 }
225 inline double TRTDigSettings::fastElectronicsNoisePulseDistance() const {
226  return m_fastElectronicsNoisePulseDistance;
227 }
228 inline double TRTDigSettings::slowPeriodicNoisePulseDistance() const {
229  return m_slowPeriodicNoisePulseDistance;
230 }
231 inline double TRTDigSettings::slowPeriodicNoisePulseFraction() const {
232  return m_slowPeriodicNoisePulseFraction;
233 }
234 inline double TRTDigSettings::averageNoiseLevel() const {
235  return m_averageNoiseLevel;
236 }
237 inline double TRTDigSettings::crossTalkNoiseLevel() const {
238  return m_crosstalkNoiseLevel;
239 }
240 inline double TRTDigSettings::crossTalkNoiseLevelOtherEnd() const {
241  return m_crosstalkNoiseLevelOtherEnd;
242 }
243 inline double TRTDigSettings::relativeLowThresholdFluctuation() const {
244  return m_relativeLowThresholdFluctuation;
245 }
246 inline double TRTDigSettings::relativeHighThresholdFluctuation() const {
247  return m_relativeHighThresholdFluctuation;
248 }
249 inline double TRTDigSettings::solenoidFieldStrength() const {
250  return m_solenoidFieldStrength;
251 }
252 inline unsigned int TRTDigSettings::storeSDO() const {
253  return m_storeSDO;
254 }
255 inline bool TRTDigSettings::getT0FromData() const {
256  return m_getT0FromData;
257 }
258 inline double TRTDigSettings::TrtRangeCutProperty() const {
259  return m_trtRangeCutProperty;
260 }