2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 /////////////////////////////////////////////////////////////////
7 // File: TRTDigSettings.icc //
9 // Author: Thomas Kittelmann <kittel@nbi.dk> //
11 // First version: April 2005. Rewritten November 2005. //
13 // Class containing parameters and settings mainly used by TRT //
16 /////////////////////////////////////////////////////////////////
18 inline int TRTDigSettings::digVers() const {
21 inline double TRTDigSettings::attenuationLength() const {
22 return m_attenuationLength;
24 inline bool TRTDigSettings::useAttenuation() const {
25 return m_useAttenuation;
27 inline bool TRTDigSettings::useMagneticFieldMap() const {
28 return m_useMagneticFieldMap;
30 inline unsigned int TRTDigSettings::digVersion() const {
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
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
45 inline double TRTDigSettings::timeInterval() const {
46 return m_timeInterval;
48 inline unsigned int TRTDigSettings::numberOfBins() const {
49 return m_numberOfBins;
51 inline unsigned int TRTDigSettings::numberOfBinsInEncodingBin() const {
52 return m_numberOfBinsInEncodingBin;
54 inline double TRTDigSettings::minDiscriminatorWidth() const {
55 return m_minDiscriminatorWidth;
57 inline double TRTDigSettings::discriminatorSettlingTime() const {
58 return m_discriminatorSettlingTime;
60 inline double TRTDigSettings::discriminatorDeadTime() const {
61 return m_discriminatorDeadTime;
63 inline double TRTDigSettings::distanceToTimeFactor() const {
64 return m_distanceToTimeFactor;
66 inline double TRTDigSettings::signalPropagationSpeed() const {
67 return m_signalPropagationSpeed;
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
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
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
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
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
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
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
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
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
123 inline int TRTDigSettings::htT0shiftBarShort() const {
124 return m_htT0shiftBarShort;
126 inline int TRTDigSettings::htT0shiftBarLong() const {
127 return m_htT0shiftBarLong;
129 inline int TRTDigSettings::htT0shiftECAwheels() const {
130 return m_htT0shiftECAwheels;
132 inline int TRTDigSettings::htT0shiftECBwheels() const {
133 return m_htT0shiftECBwheels;
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
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
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
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
159 inline double TRTDigSettings::innerRadiusOfStraw() const {
160 return m_innerRadiusOfStraw;
162 inline double TRTDigSettings::outerRadiusOfWire() const {
163 return m_outerRadiusOfWire;
165 inline double TRTDigSettings::lengthOfDeadRegion() const {
166 return m_lengthOfDeadRegion;
168 inline bool TRTDigSettings::timeCorrection() const {
169 return m_timeCorrection;
171 inline unsigned int TRTDigSettings::numberOfCrossingsBeforeMain() const {
172 return m_numberOfCrossingsBeforeMain;
174 inline unsigned int TRTDigSettings::cosmicFlag() const {
177 inline bool TRTDigSettings::isCTB() const {
180 inline bool TRTDigSettings::isOverlay() const {
183 inline bool TRTDigSettings::killEndCap() const {
186 inline bool TRTDigSettings::killBarrel() const {
189 inline double TRTDigSettings::jitterTimeOffset() const {
190 return m_jitterTimeOffset;
192 inline bool TRTDigSettings::doCosmicTimingPit() const {
193 return m_doCosmicTimingPit;
195 inline bool TRTDigSettings::doCrosstalk() const {
196 return m_doCrosstalk;
198 inline double TRTDigSettings::pileUpSDOsMinEkin() const {
199 return m_pileUpSDOsMinEkin;
201 inline double TRTDigSettings::maxVertexDisplacement() const {
202 return m_maxVertexDisplacement;
204 inline double TRTDigSettings::timeOffsetCalcVertexX() const {
205 return m_timeOffsetCalcVertexX;
207 inline double TRTDigSettings::timeOffsetCalcVertexY() const {
208 return m_timeOffsetCalcVertexY;
210 inline double TRTDigSettings::timeOffsetCalcVertexZ() const {
211 return m_timeOffsetCalcVertexZ;
213 inline bool TRTDigSettings::electronicsAreAtFarEnd() const {
214 return m_electronicsAreAtFarEnd;
216 inline bool TRTDigSettings::timeshiftsSymmetricForPhiSectors() const {
217 return m_timeshiftsSymmetricForPhiSectors;
219 inline bool TRTDigSettings::noiseInUnhitStraws() const {
220 return m_noiseInUnhitStraws;
222 inline bool TRTDigSettings::noiseInSimhits() const {
223 return m_noiseInSimhits;
225 inline double TRTDigSettings::fastElectronicsNoisePulseDistance() const {
226 return m_fastElectronicsNoisePulseDistance;
228 inline double TRTDigSettings::slowPeriodicNoisePulseDistance() const {
229 return m_slowPeriodicNoisePulseDistance;
231 inline double TRTDigSettings::slowPeriodicNoisePulseFraction() const {
232 return m_slowPeriodicNoisePulseFraction;
234 inline double TRTDigSettings::averageNoiseLevel() const {
235 return m_averageNoiseLevel;
237 inline double TRTDigSettings::crossTalkNoiseLevel() const {
238 return m_crosstalkNoiseLevel;
240 inline double TRTDigSettings::crossTalkNoiseLevelOtherEnd() const {
241 return m_crosstalkNoiseLevelOtherEnd;
243 inline double TRTDigSettings::relativeLowThresholdFluctuation() const {
244 return m_relativeLowThresholdFluctuation;
246 inline double TRTDigSettings::relativeHighThresholdFluctuation() const {
247 return m_relativeHighThresholdFluctuation;
249 inline double TRTDigSettings::solenoidFieldStrength() const {
250 return m_solenoidFieldStrength;
252 inline unsigned int TRTDigSettings::storeSDO() const {
255 inline bool TRTDigSettings::getT0FromData() const {
256 return m_getT0FromData;
258 inline double TRTDigSettings::TrtRangeCutProperty() const {
259 return m_trtRangeCutProperty;