#include <InDetBoundaryCheckTool.h>
|
| ServiceHandle< IGeoModelSvc > | m_geoModelSvc {this, "GeoModelSvc", "GeoModelSvc"} |
| ToolHandle< IInDetConditionsTool > | m_sctCondSummaryTool |
| ToolHandle< IInDetTestPixelLayerTool > | m_pixelLayerTool |
| const AtlasDetectorID * | m_atlasId |
| Gaudi::Property< double > | m_etaTol {this, "ToleranceEta", 3.0} |
| | eta and phi tolerances
|
| Gaudi::Property< double > | m_phiTol {this, "TolerancePhi", 3.0} |
| Gaudi::Property< bool > | m_usePixel {this, "UsePixel", true} |
| | Control usage of pixel and SCT info.
|
| Gaudi::Property< bool > | m_useSCT {this, "UseSCT", true} |
| Gaudi::Property< bool > | m_checkBadSCT {this, "CheckBadSCT", true} |
| | Control check of bad SCT chip (should be false for ITk Strip)
|
| SG::ReadHandleKey< InDet::SiDetectorElementStatus > | m_sctDetElStatus {this, "SCTDetElStatus", "", "Key of SiDetectorElementStatus for SCT"} |
| | Optional read handle to get status data to test whether a SCT detector element is good.
|
| const SCT_ID * | m_sctID {nullptr} |
| StoreGateSvc_t | m_evtStore |
| | Pointer to StoreGate (event store by default)
|
| StoreGateSvc_t | m_detStore |
| | Pointer to StoreGate (detector store by default)
|
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 22 of file InDetBoundaryCheckTool.h.
◆ StoreGateSvc_t
◆ InDetBoundaryCheckTool()
| InDet::InDetBoundaryCheckTool::InDetBoundaryCheckTool |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
◆ boundaryCheck()
Implements Trk::IBoundaryCheckTool.
Definition at line 205 of file InDetBoundaryCheckTool.cxx.
207 {
208
209
210
211
212
213 const Trk::TrkDetElementBase *element =
parameters.associatedSurface().associatedDetectorElement();
214
215 if (element == nullptr) {
217 }
218
219
220
221
222
223
224 const InDetDD::SiDetectorElement *siElement =
226 ? static_cast<const InDetDD::SiDetectorElement *>(element)
227 : nullptr;
228
229 if (siElement != nullptr) {
231 } else {
232 ATH_MSG_DEBUG(
"TrackParameters do not belong to a type of element we can process");
234 }
235}
virtual DetectorElemType detectorType() const =0
Return the Detector element type.
@ Error
within the nominally active area of a dead element
◆ boundaryCheckSiElement()
catch if we are on the edge of an active element
Definition at line 77 of file InDetBoundaryCheckTool.cxx.
80 {
81
82
83
84
85
86
87 double phitol;
88 double etatol;
89
90
91
92
93
94
95
96
98
99
100
101
102
103
104 Eigen::Matrix<double, 5, 1>
var =
parameters.covariance()->diagonal().cwiseSqrt();
107 } else {
108
109
110
111
112
113 phitol = 2.5;
114 etatol = 5;
115 }
116
117
118
119
120
121
122
125 );
126
129
130
131
132
133
134
135
137 }
138
140
141
142
144 }
145
146
147
148
149 Identifier
id = siElement.
identify();
150
151 bool alive;
152
153
154
155
156
157
158
163 } else {
166 }
167
168
169
170
171
172 if (alive) {
173
174
175
176
177
178
179
180
181
182
183
184
187 }
188
189
190
191
192
194
195 }
196 else {
197
198
199
200
202 }
203}
#define ATH_MSG_WARNING(x)
bool nearBondGap(const Amg::Vector2D &localPosition, double etaTol) const
Test if near bond gap within tolerances.
SiIntersect inDetector(const Amg::Vector2D &localPosition, double phiTol, double etaTol) const
Test that it is in the active region.
virtual Identifier identify() const override final
identifier of this detector element (inline)
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
@ OnEdge
within the sensitive area of an active element
@ DeadElement
outside the element
@ Insensitive
close to the edge of an active element
@ Outside
with the insensitive area of an active element
@ iEta
(old readout) will be skipped
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
| StatusCode InDet::InDetBoundaryCheckTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getSCTDetElStatus()
Definition at line 101 of file InDetBoundaryCheckTool.h.
101 {
102 SG::ReadHandle<InDet::SiDetectorElementStatus> sctDetElStatus;
104 sctDetElStatus = SG::ReadHandle<InDet::SiDetectorElementStatus>(
m_sctDetElStatus, ctx);
105 if (!sctDetElStatus.
isValid()) {
106 std::stringstream
msg;
108 throw std::runtime_error(
msg.str());
109 }
110 }
111 return sctDetElStatus;
112 }
virtual bool isValid() override final
Can the handle be successfully dereferenced?
◆ initialize()
| StatusCode InDet::InDetBoundaryCheckTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 24 of file InDetBoundaryCheckTool.cxx.
24 {
26
27 if (
sc.isFailure())
return sc;
28
30
36 }
37
39
40
41
42
44
47 ATH_MSG_WARNING(
"Since ITk Strip is used, m_check_bad_sct is turned off.");
48 }
49 }
50 return StatusCode::SUCCESS;
51}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
::StatusCode StatusCode
StatusCode definition for legacy code.
retrieve(aClass, aKey=None)
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & Trk::IBoundaryCheckTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ isAlivePixel()
◆ isAliveSCT()
Definition at line 64 of file InDetBoundaryCheckTool.cxx.
67 {
68 const EventContext& ctx{Gaudi::Hive::currentContext()};
69 SG::ReadHandle<InDet::SiDetectorElementStatus> sctDetElStatus(
getSCTDetElStatus(ctx));
71 return false;
72 }
75}
#define VALIDATE_STATUS_ARRAY(use_info, info_val, summary_val)
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
◆ isBadSCTChipStrip()
Definition at line 237 of file InDetBoundaryCheckTool.cxx.
242 {
243
244
245
246
247
250 return true;
251 }
252
253
254
257
258 if (!
m_atlasId->is_sct(stripIdentifier)) {
260 return true;
261 }
262
263 {
264 const EventContext& ctx{Gaudi::Hive::currentContext()};
265 if (sctDetElStatus) {
269
271 }
272 else {
274
275 return true;
277
278 return true;
279 }
280 }
281 }
282 return false;
283}
Identifier identifierOfPosition(const Amg::Vector2D &localPos) const
Full identifier of the cell for a given position: assumes a raw local position (no Lorentz shift)
bool isChipGood(IdentifierHash hash, unsigned int chip) const
bool isCellGood(IdentifierHash hash, unsigned short cell_i) const
Eigen::Matrix< double, 2, 1 > Vector2D
constexpr unsigned int getGeometricalChipID(unsigned int strip)
Get the geometrical chip ID for the given strip.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_atlasId
◆ m_checkBadSCT
| Gaudi::Property<bool> InDet::InDetBoundaryCheckTool::m_checkBadSCT {this, "CheckBadSCT", true} |
|
private |
◆ m_detStore
◆ m_etaTol
| Gaudi::Property<double> InDet::InDetBoundaryCheckTool::m_etaTol {this, "ToleranceEta", 3.0} |
|
private |
◆ m_evtStore
◆ m_geoModelSvc
◆ m_phiTol
| Gaudi::Property<double> InDet::InDetBoundaryCheckTool::m_phiTol {this, "TolerancePhi", 3.0} |
|
private |
◆ m_pixelLayerTool
Initial value:{
this,
"PixelLayerTool",
"InDet::InDetTestPixelLayerTool",
"Tool to retrieve pixel conditions summary"
}
Definition at line 71 of file InDetBoundaryCheckTool.h.
71 {
72 this,
73 "PixelLayerTool",
74 "InDet::InDetTestPixelLayerTool",
75 "Tool to retrieve pixel conditions summary"
76 };
◆ m_sctCondSummaryTool
Initial value:{
this,
"SctSummaryTool",
"SCT_ConditionsSummaryTool/InDetSCT_ConditionsSummaryTool",
"Tool to retrieve SCT Conditions summary"
}
Definition at line 64 of file InDetBoundaryCheckTool.h.
64 {
65 this,
66 "SctSummaryTool",
67 "SCT_ConditionsSummaryTool/InDetSCT_ConditionsSummaryTool",
68 "Tool to retrieve SCT Conditions summary"
69 };
◆ m_sctDetElStatus
Optional read handle to get status data to test whether a SCT detector element is good.
If set to e.g. SCTDetectorElementStatus the event data will be used instead of the SCT conditions summary tool.
Definition at line 94 of file InDetBoundaryCheckTool.h.
95{this, "SCTDetElStatus", "", "Key of SiDetectorElementStatus for SCT"};
◆ m_sctID
| const SCT_ID* InDet::InDetBoundaryCheckTool::m_sctID {nullptr} |
|
private |
◆ m_usePixel
| Gaudi::Property<bool> InDet::InDetBoundaryCheckTool::m_usePixel {this, "UsePixel", true} |
|
private |
◆ m_useSCT
| Gaudi::Property<bool> InDet::InDetBoundaryCheckTool::m_useSCT {this, "UseSCT", true} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: