ATLAS Offline Software
ActsVolumeIdToDetectorElementCollectionMappingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSTRK_ACTSGEOMETRYIDTODETECTORELEMENTMAPPINGALG_H
6 #define ACTSTRK_ACTSGEOMETRYIDTODETECTORELEMENTMAPPINGALG_H
7 
11 
15 
16 namespace ActsTrk {
18  public:
19  ActsVolumeIdToDetectorElementCollectionMappingAlg(const std::string &name, ISvcLocator *pSvcLocator);
21 
22  StatusCode initialize() override;
23  StatusCode execute(const EventContext &ctx) const override;
24 
25  private:
26  void createDetectorElementToVolumeIdMap(const Acts::TrackingGeometry &acts_tracking_geometry,
27  std::unordered_map<unsigned long long,
28  unsigned int> &detector_element_to_volume_id) const;
29 
30  PublicToolHandle<ActsTrk::ITrackingGeometryTool> m_trackingGeometryTool
31  {this, "TrackingGeometryTool", ""};
32 
34  {this, "DetectorElementsKeys", {}, "Keys of input SiDetectorElementCollection"};
35 
37  {this, "ActsVolumeIdToDetectorElementCollectionMap", "ActsVolumeIdToDetectorElementCollectionMap",
38  "Map which associates Acts geometry volume IDs to detector element collections."};
39  };
40 }
41 #endif
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::ActsVolumeIdToDetectorElementCollectionMappingAlg
ActsVolumeIdToDetectorElementCollectionMappingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:20
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::createDetectorElementToVolumeIdMap
void createDetectorElementToVolumeIdMap(const Acts::TrackingGeometry &acts_tracking_geometry, std::unordered_map< unsigned long long, unsigned int > &detector_element_to_volume_id) const
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:78
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::m_volumeIdToDetectorElementCollMapKey
SG::WriteCondHandleKey< ActsTrk::ActsVolumeIdToDetectorElementCollectionMap > m_volumeIdToDetectorElementCollMapKey
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.h:37
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:32
WriteCondHandleKey.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
ActsVolumeIdToDetectorElementCollectionMap.h
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::m_trackingGeometryTool
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.h:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CondHandleKeyArray.h
AthReentrantAlgorithm.h
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::initialize
StatusCode initialize() override
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:25
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SiDetectorElementCollection.h
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::m_detEleCollKeys
SG::ReadCondHandleKeyArray< InDetDD::SiDetectorElementCollection > m_detEleCollKeys
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.h:34
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::~ActsVolumeIdToDetectorElementCollectionMappingAlg
virtual ~ActsVolumeIdToDetectorElementCollectionMappingAlg()
ITrackingGeometryTool.h
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg
Definition: ActsVolumeIdToDetectorElementCollectionMappingAlg.h:17
SG::WriteCondHandleKey< ActsTrk::ActsVolumeIdToDetectorElementCollectionMap >
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MSTrackingVolumeBuilder.cxx:25