#include <ActsTrackingGeometryTool.h>
Definition at line 27 of file ActsTrackingGeometryTool.h.
◆ createDetectorElementToGeoIdMap()
Creates and popules the DetectorElement -> Acts::Surface geo identifier map from the geometry service.
Muon system
Definition at line 51 of file ActsTrackingGeometryTool.cxx.
53 auto detector_element_to_geoid = std::make_unique<DetectorElementToActsGeometryIdMap>();
56 unsigned n_detector_elements{0};
57 unsigned n_missing_detector_elements{0};
58 unsigned n_wrong_type{0};
62 if (!surface || !surface->associatedDetectorElement()) {
63 ++counter.n_wrong_type;
66 const auto* detEl =
dynamic_cast<const IDetectorElementBase*
>(surface->associatedDetectorElement());
68 ++
counter.n_missing_detector_elements;
72 const IdentifierHash&
hash) {
74 DetectorElementToActsGeometryIdMap::makeValue(surface->geometryId())));
77 switch(detEl->detectorType()) {
107 counter.n_detector_elements = 0;
111 ATH_MSG_INFO(
"Surfaces without associated detector elements " <<
counter.n_missing_detector_elements
112 <<
" (with " <<
counter.n_detector_elements <<
")" );
113 if (
counter.n_detector_elements==0) {
114 ATH_MSG_ERROR(
"No surface with associated detector element" );
118 ATH_MSG_WARNING(
"Surfaces associated to detector elements not of type Trk::TrkDetElementBase :" <<
counter.n_wrong_type);
120 return detector_element_to_geoid;
◆ getGeometryContext()
◆ getNominalGeometryContext()
◆ initialize()
StatusCode ActsTrackingGeometryTool::initialize |
( |
| ) |
|
|
override |
Definition at line 14 of file ActsTrackingGeometryTool.cxx.
16 if (
parent() != toolSvc()) {
17 ATH_MSG_ERROR(
"The tool is initialized as a private tool but should be public");
18 return StatusCode::FAILURE;
24 return StatusCode::FAILURE;
26 return StatusCode::SUCCESS;
◆ surfaceIdMap()
◆ trackingGeometry()
std::shared_ptr< const Acts::TrackingGeometry > ActsTrackingGeometryTool::trackingGeometry |
( |
| ) |
const |
|
overridevirtual |
◆ m_detIdMap
◆ m_rchk
◆ m_trackingGeometrySvc
The documentation for this class was generated from the following files:
Include the GeoPrimitives which need to be put first.