ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::InDetBoundaryCheckTool Class Reference

#include <InDetBoundaryCheckTool.h>

Inheritance diagram for InDet::InDetBoundaryCheckTool:
Collaboration diagram for InDet::InDetBoundaryCheckTool:

Public Member Functions

 InDetBoundaryCheckTool (const std::string &, const std::string &, const IInterface *)
virtual StatusCode initialize () override
virtual StatusCode finalize () override
virtual Trk::BoundaryCheckResult boundaryCheck (const Trk::TrackParameters &) const override
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static const InterfaceID & interfaceID ()

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

bool isAlivePixel (const InDetDD::SiDetectorElement &element, const Trk::TrackParameters &parameters) const
bool isAliveSCT (const InDetDD::SiDetectorElement &element, const Trk::TrackParameters &parameters) const
bool isBadSCTChipStrip (const InDet::SiDetectorElementStatus *, const Identifier &, const Trk::TrackParameters &, const InDetDD::SiDetectorElement &) const
Trk::BoundaryCheckResult boundaryCheckSiElement (const InDetDD::SiDetectorElement &, const Trk::TrackParameters &) const
SG::ReadHandle< InDet::SiDetectorElementStatusgetSCTDetElStatus (const EventContext &ctx) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< IGeoModelSvcm_geoModelSvc {this, "GeoModelSvc", "GeoModelSvc"}
ToolHandle< IInDetConditionsToolm_sctCondSummaryTool
ToolHandle< IInDetTestPixelLayerToolm_pixelLayerTool
const AtlasDetectorIDm_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::SiDetectorElementStatusm_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_IDm_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

Detailed Description

Definition at line 22 of file InDetBoundaryCheckTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ InDetBoundaryCheckTool()

InDet::InDetBoundaryCheckTool::InDetBoundaryCheckTool ( const std::string & t,
const std::string & n,
const IInterface * p )

Definition at line 13 of file InDetBoundaryCheckTool.cxx.

17 :
18 AthAlgTool(t, n, p),
19 m_atlasId(nullptr)
20{
21 declareInterface<IBoundaryCheckTool>(this);
22}
AthAlgTool()
Default constructor:

Member Function Documentation

◆ boundaryCheck()

Trk::BoundaryCheckResult InDet::InDetBoundaryCheckTool::boundaryCheck ( const Trk::TrackParameters & parameters) const
overridevirtual

Implements Trk::IBoundaryCheckTool.

Definition at line 205 of file InDetBoundaryCheckTool.cxx.

207 {
208 /*
209 * Retrieve the detector element associated with our track parameters. If
210 * such an element does not exist for whatever reason, return a negative
211 * result.
212 */
213 const Trk::TrkDetElementBase *element = parameters.associatedSurface().associatedDetectorElement();
214
215 if (element == nullptr) {
217 }
218
219 /*
220 * Try to see if detector element is a silicon element, otherwise return a
221 * negative result: this tool is not designed to work on non-silicon
222 * elements.
223 */
224 const InDetDD::SiDetectorElement *siElement =
226 ? static_cast<const InDetDD::SiDetectorElement *>(element)
227 : nullptr;
228
229 if (siElement != nullptr) {
230 return boundaryCheckSiElement(*siElement, parameters);
231 } else {
232 ATH_MSG_DEBUG("TrackParameters do not belong to a type of element we can process");
234 }
235}
#define ATH_MSG_DEBUG(x)
Trk::BoundaryCheckResult boundaryCheckSiElement(const InDetDD::SiDetectorElement &, const Trk::TrackParameters &) const
virtual DetectorElemType detectorType() const =0
Return the Detector element type.
@ Error
within the nominally active area of a dead element

◆ boundaryCheckSiElement()

Trk::BoundaryCheckResult InDet::InDetBoundaryCheckTool::boundaryCheckSiElement ( const InDetDD::SiDetectorElement & siElement,
const Trk::TrackParameters & parameters ) const
private

catch if we are on the edge of an active element

Definition at line 77 of file InDetBoundaryCheckTool.cxx.

80 {
81 /*
82 * We're supporting SCT and Pixel elements. Some of the checking code can
83 * be shared, and some of it is different for these detector types. This
84 * method will perform all the shared checks that apply to both SCTs and
85 * pixels.
86 */
87 double phitol;
88 double etatol;
89
90 /*
91 * We set our \phi and \eta tolerances by scaling the configured value in
92 * the tool's parameters by the standard deviation of the relative
93 * positions. If we do not have a covariance matrix to gather these \sigma
94 * values from, we use default parameters of 2.5 for \phi and 5.0 for
95 * \eta.
96 */
97 if (parameters.covariance() != nullptr) {
98 /*
99 * From the covariance matrix, we grab the diagonal to get the
100 * variance vector. Then, if we take the component-wise square root
101 * of that, we get a vector of \sigma. Then all we need to do is use
102 * the right indexes to retrieve the values for \eta and \phi.
103 */
104 Eigen::Matrix<double, 5, 1> var = parameters.covariance()->diagonal().cwiseSqrt();
105 etatol = m_etaTol.value() * var(Trk::iEta);
106 phitol = m_phiTol.value() * var(Trk::iPhi);
107 } else {
108 /*
109 * If we don't have the covariance matrix, set our defaults. In the
110 * future, these two default values could be lifted into separate
111 * configuration parameters.
112 */
113 phitol = 2.5;
114 etatol = 5;
115 }
116
117
118 /*
119 * Next, we determine whether the hit is in the active region of the
120 * element using the SiDetectorElement::inDetector() method followed by
121 * the SiIntersect::in() method.
122 */
123 InDetDD::SiIntersect intersection = siElement.inDetector(
124 parameters.localPosition(), phitol, etatol
125 );
126
128 if (intersection.nearBoundary()){
129
130 /*
131 * If we are around the boundary, we return a special state which
132 * will not be counted as a hole or missing hit in the pattern,
133 * while still being recorded on the trajectory for later
134 * refinement.
135 */
137 }
138
139 if (intersection.out()) {
140 /*
141 * In this case, we are _not_ inside the active region of the element.
142 */
144 }
145
146 /* Now, to proceed further we need to confirm that the module is actually active
147 */
148
149 Identifier id = siElement.identify();
150
151 bool alive;
152
153 /*
154 * If we have not yet determined our hit to lie in any inactive region, we
155 * check whether the module hit is actually alive. For this, we deletage
156 * to two dedicated methods which essentially wrap external tools which
157 * know about element states.
158 */
159 if (m_usePixel.value() && m_atlasId->is_pixel(id)) {
160 alive = isAlivePixel(siElement, parameters);
161 } else if (m_useSCT.value() && m_atlasId->is_sct(id)) {
162 alive = isAliveSCT(siElement, parameters);
163 } else {
164 ATH_MSG_WARNING("Unsupported identifier type! "+m_atlasId->print_to_string(id));
166 }
167
168 /*
169 * We now have all the necessary information to make a judgement about the
170 * track parameters.
171 */
172 if (alive) {
173
174 /*
175 * now, we check whether the local position on the silicon element is
176 * near the bonding gap of the module, which is insensitive. For this, we
177 * can simply delegate to the SiDetectorElement::newBondGap() method.
178 *
179 * Keen-eyed readers may note that bond gaps are only relevant for SCT
180 * modules and that Pixels do not have them. Therefore, we can technically
181 * consider this a check relevant only to SCTs. However, as this logic is
182 * abstracted into the SiDetectorElement class, we will treat is as a
183 * shared property and a shared check.
184 */
185 if (siElement.nearBondGap(parameters.localPosition(), etatol )) {
187 }
188 /*
189 * If the module is alive and we hit the active region on it, we know
190 * we have a good hit. Note that this is the only way we can return a
191 * Candidate result! It's the only success state.
192 */
194
195 }
196 else {
197 /*
198 * Finally, if the module is not alive, we simply return a DeadElement
199 * result.
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)
bool isAliveSCT(const InDetDD::SiDetectorElement &element, const Trk::TrackParameters &parameters) const
Gaudi::Property< double > m_phiTol
Gaudi::Property< bool > m_usePixel
Control usage of pixel and SCT info.
bool isAlivePixel(const InDetDD::SiDetectorElement &element, const Trk::TrackParameters &parameters) const
Gaudi::Property< double > m_etaTol
eta and phi tolerances
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
Definition ParamDefs.h:48
@ iPhi
Definition ParamDefs.h:47

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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

Definition at line 53 of file InDetBoundaryCheckTool.cxx.

53 {
54 return AlgTool::finalize();
55}

◆ getSCTDetElStatus()

SG::ReadHandle< InDet::SiDetectorElementStatus > InDet::InDetBoundaryCheckTool::getSCTDetElStatus ( const EventContext & ctx) const
inlineprivate

Definition at line 101 of file InDetBoundaryCheckTool.h.

101 {
102 SG::ReadHandle<InDet::SiDetectorElementStatus> sctDetElStatus;
103 if (!m_sctDetElStatus.empty()) {
104 sctDetElStatus = SG::ReadHandle<InDet::SiDetectorElementStatus>(m_sctDetElStatus, ctx);
105 if (!sctDetElStatus.isValid()) {
106 std::stringstream msg;
107 msg << "Failed to get " << m_sctDetElStatus.key() << " from StoreGate in " << name();
108 throw std::runtime_error(msg.str());
109 }
110 }
111 return sctDetElStatus;
112 }
MsgStream & msg() const
SG::ReadHandleKey< InDet::SiDetectorElementStatus > m_sctDetElStatus
Optional read handle to get status data to test whether a SCT detector element is good.
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 {
25 StatusCode sc = AlgTool::initialize();
26
27 if (sc.isFailure()) return sc;
28
29 ATH_CHECK(detStore()->retrieve(m_atlasId, "AtlasID"));
30
31 ATH_CHECK(m_pixelLayerTool.retrieve(DisableTool{!m_usePixel.value()}));
32 ATH_CHECK(m_sctCondSummaryTool.retrieve(DisableTool{!m_useSCT.value() || (!m_sctDetElStatus.empty() && !VALIDATE_STATUS_ARRAY_ACTIVATED)}));
33 ATH_CHECK(m_sctDetElStatus.initialize(m_useSCT.value() && !m_sctDetElStatus.empty()) );
34 if (m_useSCT.value() && !m_sctDetElStatus.empty()) {
35 ATH_CHECK( detStore()->retrieve(m_sctID,"SCT_ID") );
36 }
37
38 if (m_checkBadSCT.value()) {
39 /*
40 * Check if ITk Strip is used because isBadSCTChipStrip method is
41 * valid only for SCT.
42 */
43 ATH_CHECK(m_geoModelSvc.retrieve());
44
45 if (m_geoModelSvc->geoConfig()==GeoModel::GEO_RUN4) {
46 m_checkBadSCT.set(false);
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.
static Double_t sc
const ServiceHandle< StoreGateSvc > & detStore() const
ToolHandle< IInDetConditionsTool > m_sctCondSummaryTool
ToolHandle< IInDetTestPixelLayerTool > m_pixelLayerTool
Gaudi::Property< bool > m_checkBadSCT
Control check of bad SCT chip (should be false for ITk Strip)
ServiceHandle< IGeoModelSvc > m_geoModelSvc
::StatusCode StatusCode
StatusCode definition for legacy code.
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

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

Definition at line 27 of file IBoundaryCheckTool.h.

27 {
29 }
static const InterfaceID IID_IBoundaryCheckTool("Trk::IBoundaryCheckTool", 1, 0)

◆ isAlivePixel()

bool InDet::InDetBoundaryCheckTool::isAlivePixel ( const InDetDD::SiDetectorElement & element,
const Trk::TrackParameters & parameters ) const
private

Definition at line 57 of file InDetBoundaryCheckTool.cxx.

60 {
61 return m_pixelLayerTool->expectHit(&parameters);
62}

◆ isAliveSCT()

bool InDet::InDetBoundaryCheckTool::isAliveSCT ( const InDetDD::SiDetectorElement & element,
const Trk::TrackParameters & parameters ) const
private

Definition at line 64 of file InDetBoundaryCheckTool.cxx.

67 {
68 const EventContext& ctx{Gaudi::Hive::currentContext()};
69 SG::ReadHandle<InDet::SiDetectorElementStatus> sctDetElStatus( getSCTDetElStatus(ctx));
70 if (m_checkBadSCT.value() && isBadSCTChipStrip(!m_sctDetElStatus.empty() ? sctDetElStatus.cptr() : nullptr, element.identify(), parameters, element)) {
71 return false;
72 }
73 VALIDATE_STATUS_ARRAY(!m_sctDetElStatus.empty(),sctDetElStatus->isGood(element.identifyHash()), m_sctCondSummaryTool->isGood(element.identifyHash(), ctx));
74 return !m_sctDetElStatus.empty() ? sctDetElStatus->isGood(element.identifyHash()) : m_sctCondSummaryTool->isGood(element.identifyHash(), ctx);
75}
#define VALIDATE_STATUS_ARRAY(use_info, info_val, summary_val)
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
SG::ReadHandle< InDet::SiDetectorElementStatus > getSCTDetElStatus(const EventContext &ctx) const
bool isBadSCTChipStrip(const InDet::SiDetectorElementStatus *, const Identifier &, const Trk::TrackParameters &, const InDetDD::SiDetectorElement &) const

◆ isBadSCTChipStrip()

bool InDet::InDetBoundaryCheckTool::isBadSCTChipStrip ( const InDet::SiDetectorElementStatus * sctDetElStatus,
const Identifier & waferId,
const Trk::TrackParameters & parameters,
const InDetDD::SiDetectorElement & siElement ) const
private

Definition at line 237 of file InDetBoundaryCheckTool.cxx.

242 {
243 // Check if the track passes through a bad SCT ABCD chip or a bad SCT strip.
244 // A chip and a strip are determined by the parameter position.
245 // Algorithm is based on InnerDetector/InDetMonitoring/SCT_Monitoring/src/SCTHitEffMonTool.cxx
246
247 // Check the input.
248 if (!m_atlasId->is_sct(waferId)) {
249 ATH_MSG_ERROR(waferId << " is not an SCT Identifier");
250 return true;
251 }
252
253 // Get strip id from local position.
254 // Due to the limited position resolution, we may pick up a neighboring strip...
255 const Amg::Vector2D localPos(parameters.localPosition());
256 const Identifier stripIdentifier(siElement.identifierOfPosition(localPos));
257
258 if (!m_atlasId->is_sct(stripIdentifier)) {
259 ATH_MSG_WARNING(stripIdentifier << " is not an SCT Identifier");
260 return true;
261 }
262
263 {
264 const EventContext& ctx{Gaudi::Hive::currentContext()};
265 if (sctDetElStatus) {
266 unsigned int chip_i=SCT::getGeometricalChipID(*m_sctID, stripIdentifier);
267 VALIDATE_STATUS_ARRAY(sctDetElStatus,sctDetElStatus->isChipGood(siElement.identifyHash(), chip_i) && sctDetElStatus->isCellGood(siElement.identifyHash(), m_sctID->strip(stripIdentifier) ),m_sctCondSummaryTool->isGood(stripIdentifier, InDetConditions::SCT_CHIP, ctx) && m_sctCondSummaryTool->isGood(stripIdentifier, InDetConditions::SCT_STRIP, ctx));
268 if (!sctDetElStatus->isChipGood(siElement.identifyHash(), chip_i)) return true;
269
270 return !sctDetElStatus->isCellGood(siElement.identifyHash(), m_sctID->strip(stripIdentifier) );
271 }
272 else {
273 if (!m_sctCondSummaryTool->isGood(stripIdentifier, InDetConditions::SCT_CHIP, ctx)) {
274 // The position is on a bad chip.
275 return true;
276 } else if (!m_sctCondSummaryTool->isGood(stripIdentifier, InDetConditions::SCT_STRIP, ctx)) {
277 // The position is on a bad strip. (We may need to check neighboring strips.)
278 return true;
279 }
280 }
281 }
282 return false;
283}
#define ATH_MSG_ERROR(x)
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()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

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()

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 > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
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()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_atlasId

const AtlasDetectorID* InDet::InDetBoundaryCheckTool::m_atlasId
private

Definition at line 78 of file InDetBoundaryCheckTool.h.

◆ m_checkBadSCT

Gaudi::Property<bool> InDet::InDetBoundaryCheckTool::m_checkBadSCT {this, "CheckBadSCT", true}
private

Control check of bad SCT chip (should be false for ITk Strip)

Definition at line 89 of file InDetBoundaryCheckTool.h.

89{this, "CheckBadSCT", true};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_etaTol

Gaudi::Property<double> InDet::InDetBoundaryCheckTool::m_etaTol {this, "ToleranceEta", 3.0}
private

eta and phi tolerances

Definition at line 81 of file InDetBoundaryCheckTool.h.

81{this, "ToleranceEta", 3.0};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_geoModelSvc

ServiceHandle<IGeoModelSvc> InDet::InDetBoundaryCheckTool::m_geoModelSvc {this, "GeoModelSvc", "GeoModelSvc"}
private

Definition at line 61 of file InDetBoundaryCheckTool.h.

62{this, "GeoModelSvc", "GeoModelSvc"};

◆ m_phiTol

Gaudi::Property<double> InDet::InDetBoundaryCheckTool::m_phiTol {this, "TolerancePhi", 3.0}
private

Definition at line 82 of file InDetBoundaryCheckTool.h.

82{this, "TolerancePhi", 3.0};

◆ m_pixelLayerTool

ToolHandle<IInDetTestPixelLayerTool> InDet::InDetBoundaryCheckTool::m_pixelLayerTool
private
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

ToolHandle<IInDetConditionsTool> InDet::InDetBoundaryCheckTool::m_sctCondSummaryTool
private
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

SG::ReadHandleKey<InDet::SiDetectorElementStatus> InDet::InDetBoundaryCheckTool::m_sctDetElStatus {this, "SCTDetElStatus", "", "Key of SiDetectorElementStatus for SCT"}
private

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

Definition at line 97 of file InDetBoundaryCheckTool.h.

97{nullptr};

◆ m_usePixel

Gaudi::Property<bool> InDet::InDetBoundaryCheckTool::m_usePixel {this, "UsePixel", true}
private

Control usage of pixel and SCT info.

Definition at line 85 of file InDetBoundaryCheckTool.h.

85{this, "UsePixel", true};

◆ m_useSCT

Gaudi::Property<bool> InDet::InDetBoundaryCheckTool::m_useSCT {this, "UseSCT", true}
private

Definition at line 86 of file InDetBoundaryCheckTool.h.

86{this, "UseSCT", true};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: