ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsGeometry
src
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
8
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
9
#include "
StoreGate/WriteCondHandleKey.h
"
10
#include "
StoreGate/CondHandleKeyArray.h
"
11
12
#include "
ActsGeometryInterfaces/ITrackingGeometrySvc.h
"
13
#include "
ActsGeometry/ActsVolumeIdToDetectorElementCollectionMap.h
"
14
#include "
InDetReadoutGeometry/SiDetectorElementCollection.h
"
15
16
namespace
ActsTrk
{
17
class
ActsVolumeIdToDetectorElementCollectionMappingAlg
:
public
AthCondAlgorithm
{
18
public
:
19
ActsVolumeIdToDetectorElementCollectionMappingAlg
(
const
std::string &name, ISvcLocator *pSvcLocator);
20
virtual
~ActsVolumeIdToDetectorElementCollectionMappingAlg
();
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
ServiceHandle<ActsTrk::ITrackingGeometrySvc>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
};
31
32
SG::ReadCondHandleKeyArray<InDetDD::SiDetectorElementCollection>
m_detEleCollKeys
33
{
this
,
"DetectorElementsKeys"
, {},
"Keys of input SiDetectorElementCollection"
};
34
35
SG::WriteCondHandleKey<ActsTrk::ActsVolumeIdToDetectorElementCollectionMap>
m_volumeIdToDetectorElementCollMapKey
36
{
this
,
"ActsVolumeIdToDetectorElementCollectionMap"
,
"ActsVolumeIdToDetectorElementCollectionMap"
,
37
"Map which associates Acts geometry volume IDs to detector element collections."
};
38
};
39
}
40
#endif
ActsVolumeIdToDetectorElementCollectionMap.h
ITrackingGeometrySvc.h
AthCondAlgorithm.h
Base class for conditions algorithms.
CondHandleKeyArray.h
SiDetectorElementCollection.h
WriteCondHandleKey.h
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:73
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::m_detEleCollKeys
SG::ReadCondHandleKeyArray< InDetDD::SiDetectorElementCollection > m_detEleCollKeys
Definition
ActsVolumeIdToDetectorElementCollectionMappingAlg.h:33
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:27
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition
ActsVolumeIdToDetectorElementCollectionMappingAlg.h:30
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::~ActsVolumeIdToDetectorElementCollectionMappingAlg
virtual ~ActsVolumeIdToDetectorElementCollectionMappingAlg()
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::ActsVolumeIdToDetectorElementCollectionMappingAlg
ActsVolumeIdToDetectorElementCollectionMappingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:15
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::initialize
StatusCode initialize() override
Definition
ActsVolumeIdToDetectorElementCollectionMappingAlg.cxx:20
ActsTrk::ActsVolumeIdToDetectorElementCollectionMappingAlg::m_volumeIdToDetectorElementCollMapKey
SG::WriteCondHandleKey< ActsTrk::ActsVolumeIdToDetectorElementCollectionMap > m_volumeIdToDetectorElementCollMapKey
Definition
ActsVolumeIdToDetectorElementCollectionMappingAlg.h:36
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
SG::ReadCondHandleKeyArray
HandleKeyArray< ReadCondHandle< T >, CondHandleDefault::Key< ReadCondHandleKey< T > >, Gaudi::DataHandle::Reader > ReadCondHandleKeyArray
Definition
CondHandleKeyArray.h:30
Generated on
for ATLAS Offline Software by
1.17.0