ATLAS Offline Software
DetectorElementToActsGeometryIdMappingAlg.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 ACTSTRK_ACTSDETECTORELEMENTTOGEOIDMAPPINGALG_H
6 #define ACTSTRK_ACTSDETECTORELEMENTTOGEOIDMAPPINGALG_H
7 
10 
13 
14 namespace ActsTrk {
16  public:
17  DetectorElementToActsGeometryIdMappingAlg(const std::string &name, ISvcLocator *pSvcLocator);
19 
20  StatusCode initialize() override;
21  StatusCode execute(const EventContext &ctx) const override;
22 
23  private:
24  void createDetectorElementToGeoIdMap(const Acts::TrackingGeometry &acts_tracking_geometry,
25  DetectorElementToActsGeometryIdMap &detector_element_to_geoid) const;
26 
27  ToolHandle<IActsTrackingGeometryTool> m_trackingGeometryTool
28  {this, "TrackingGeometryTool", ""};
29 
31  {this, "DetectorElementToActsGeometryIdMapKey", "DetectorElementToActsGeometryIdMap",
32  "Map which associates detector elements to Acts Geometry IDs"};
33  };
34 }
35 #endif
ActsTrk::DetectorElementToActsGeometryIdMap
Definition: DetectorElementToActsGeometryIdMap.h:31
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::~DetectorElementToActsGeometryIdMappingAlg
virtual ~DetectorElementToActsGeometryIdMappingAlg()
WriteCondHandleKey.h
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::DetectorElementToActsGeometryIdMappingAlg
DetectorElementToActsGeometryIdMappingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: DetectorElementToActsGeometryIdMappingAlg.cxx:20
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::m_detectorElementToGeometryIdMapKey
SG::WriteCondHandleKey< ActsTrk::DetectorElementToActsGeometryIdMap > m_detectorElementToGeometryIdMapKey
Definition: DetectorElementToActsGeometryIdMappingAlg.h:31
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::m_trackingGeometryTool
ToolHandle< IActsTrackingGeometryTool > m_trackingGeometryTool
Definition: DetectorElementToActsGeometryIdMappingAlg.h:28
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::initialize
StatusCode initialize() override
Definition: DetectorElementToActsGeometryIdMappingAlg.cxx:25
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::createDetectorElementToGeoIdMap
void createDetectorElementToGeoIdMap(const Acts::TrackingGeometry &acts_tracking_geometry, DetectorElementToActsGeometryIdMap &detector_element_to_geoid) const
Definition: DetectorElementToActsGeometryIdMappingAlg.cxx:82
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::DetectorElementToActsGeometryIdMappingAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: DetectorElementToActsGeometryIdMappingAlg.cxx:31
ActsTrk::DetectorElementToActsGeometryIdMappingAlg
Definition: DetectorElementToActsGeometryIdMappingAlg.h:15
SG::WriteCondHandleKey< ActsTrk::DetectorElementToActsGeometryIdMap >
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:54
IActsTrackingGeometryTool.h
DetectorElementToActsGeometryIdMap.h