ATLAS Offline Software
Loading...
Searching...
No Matches
InDetBoundaryCheckTool.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef ATHENA_INNERDETECTOR_TOOLS_BOUNDARYCHECKTOOL
6#define ATHENA_INNERDETECTOR_TOOLS_BOUNDARYCHECKTOOL
7
9
13
17
19class SCT_ID;
20
21namespace InDet {
23 public:
25 const std::string &,
26 const std::string &,
27 const IInterface *
28 );
29
30 virtual StatusCode initialize() override;
31 virtual StatusCode finalize() override;
32
35 ) const override;
36 private:
37 bool isAlivePixel(
38 const InDetDD::SiDetectorElement &element,
39 const Trk::TrackParameters &parameters
40 ) const;
41
42 bool isAliveSCT(
43 const InDetDD::SiDetectorElement &element,
44 const Trk::TrackParameters &parameters
45 ) const;
46
49 const Identifier &,
52 ) const;
53
57 ) const;
58
60
62 {this, "GeoModelSvc", "GeoModelSvc"};
63
64 ToolHandle<IInDetConditionsTool> m_sctCondSummaryTool{
65 this,
66 "SctSummaryTool",
67 "SCT_ConditionsSummaryTool/InDetSCT_ConditionsSummaryTool",
68 "Tool to retrieve SCT Conditions summary"
69 };
70
71 ToolHandle<IInDetTestPixelLayerTool> m_pixelLayerTool{
72 this,
73 "PixelLayerTool",
74 "InDet::InDetTestPixelLayerTool",
75 "Tool to retrieve pixel conditions summary"
76 };
77
79
81 Gaudi::Property<double> m_etaTol{this, "ToleranceEta", 3.0};
82 Gaudi::Property<double> m_phiTol{this, "TolerancePhi", 3.0};
83
85 Gaudi::Property<bool> m_usePixel{this, "UsePixel", true};
86 Gaudi::Property<bool> m_useSCT{this, "UseSCT", true};
87
89 Gaudi::Property<bool> m_checkBadSCT{this, "CheckBadSCT", true};
90
95 {this, "SCTDetElStatus", "", "Key of SiDetectorElementStatus for SCT"};
96
97 const SCT_ID* m_sctID{nullptr};
98
99 };
100
103 if (!m_sctDetElStatus.empty()) {
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 }
113}
114
115#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
MsgStream & msg() const
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Class to hold geometrical description of a silicon detector element.
ToolHandle< IInDetConditionsTool > m_sctCondSummaryTool
InDetBoundaryCheckTool(const std::string &, const std::string &, const IInterface *)
bool isAliveSCT(const InDetDD::SiDetectorElement &element, const Trk::TrackParameters &parameters) const
Gaudi::Property< double > m_phiTol
virtual StatusCode initialize() override
SG::ReadHandleKey< InDet::SiDetectorElementStatus > m_sctDetElStatus
Optional read handle to get status data to test whether a SCT detector element is good.
SG::ReadHandle< InDet::SiDetectorElementStatus > getSCTDetElStatus(const EventContext &ctx) const
ToolHandle< IInDetTestPixelLayerTool > m_pixelLayerTool
Gaudi::Property< bool > m_checkBadSCT
Control check of bad SCT chip (should be false for ITk Strip)
Gaudi::Property< bool > m_usePixel
Control usage of pixel and SCT info.
ServiceHandle< IGeoModelSvc > m_geoModelSvc
virtual StatusCode finalize() override
virtual Trk::BoundaryCheckResult boundaryCheck(const Trk::TrackParameters &) const override
Trk::BoundaryCheckResult boundaryCheckSiElement(const InDetDD::SiDetectorElement &, const Trk::TrackParameters &) const
bool isAlivePixel(const InDetDD::SiDetectorElement &element, const Trk::TrackParameters &parameters) const
Gaudi::Property< double > m_etaTol
eta and phi tolerances
bool isBadSCTChipStrip(const InDet::SiDetectorElementStatus *, const Identifier &, const Trk::TrackParameters &, const InDetDD::SiDetectorElement &) const
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Primary Vertex Finder.
ParametersBase< TrackParametersDim, Charged > TrackParameters