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