ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsMaterial
src
Acts/ActsMaterial/src/MaterialMapping.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSMATERIAL_MATERIALMAPPING_H
6
#define ACTSMATERIAL_MATERIALMAPPING_H
7
8
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
11
#include "GaudiKernel/ServiceHandle.h"
12
#include "
StoreGate/ReadHandleKey.h
"
13
#include "
StoreGate/WriteHandleKey.h
"
14
#include "
AsgTools/ToolHandleArray.h
"
15
#include "
ActsGeometryInterfaces/ITrackingGeometrySvc.h
"
16
#include "
ActsGeometry/RecordedMaterialTrackCollection.h
"
17
#include "
ActsMaterial/IMaterialWriterTool.h
"
18
#include "Acts/Material/MaterialMapper.hpp"
19
20
namespace
ActsTrk
{
27
28
class
MaterialMapping
:
public
AthReentrantAlgorithm
{
29
public
:
30
MaterialMapping
(
const
std::string &name, ISvcLocator *pSvcLocator);
31
virtual
StatusCode
initialize
()
override
;
32
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
33
virtual
StatusCode
finalize
()
override
;
34
virtual
~MaterialMapping
();
35
36
private
:
37
39
ToolHandleArray<IMaterialWriterTool>
m_materialMapWriters
{
this
,
"MaterialMapWriters"
, {},
"The material map writes"
};
40
42
std::shared_ptr<Acts::MaterialMapper>
m_materialMapper
;
43
45
std::unique_ptr<Acts::MaterialMapper::State> m_mappingState
ATLAS_THREAD_SAFE
= {};
46
48
ServiceHandle<ActsTrk::ITrackingGeometrySvc>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
,
"The ACTS geometry service for the geometry context"
};
49
51
SG::ReadHandleKey<RecordedMaterialTrackCollection>
m_materialTrackCollectionKey
{
this
,
"MaterialTrackCollectionKey"
,
"InputMaterialTracks"
,
"Name of the input RecordedMaterialTrackCollection"
};
53
SG::WriteHandleKey<RecordedMaterialTrackCollection>
m_mappedMaterialTrackCollectionKey
{
this
,
"MappedMaterialTrackCollectionKey"
,
"OutputMappedMaterialTracks"
,
"Name of the output mapped RecordedMaterialTrackCollection"
};
54
SG::WriteHandleKey<RecordedMaterialTrackCollection>
m_unmappedMaterialTrackCollectionKey
{
this
,
"UnmappedMaterialTrackCollectionKey"
,
"OutputUnmappedMaterialTracks"
,
"Name of the output unmapped RecordedMaterialTrackCollection"
};
55
};
56
}
57
58
#endif
ITrackingGeometrySvc.h
AthReentrantAlgorithm.h
IMaterialWriterTool.h
RecordedMaterialTrackCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
ToolHandleArray.h
ActsTrk::MaterialMapping::m_mappedMaterialTrackCollectionKey
SG::WriteHandleKey< RecordedMaterialTrackCollection > m_mappedMaterialTrackCollectionKey
The mapped and unmapped material tracks.
Definition
Acts/ActsMaterial/src/MaterialMapping.h:53
ActsTrk::MaterialMapping::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
Acts/ActsMaterial/src/MaterialMapping.cxx:83
ActsTrk::MaterialMapping::m_unmappedMaterialTrackCollectionKey
SG::WriteHandleKey< RecordedMaterialTrackCollection > m_unmappedMaterialTrackCollectionKey
Definition
Acts/ActsMaterial/src/MaterialMapping.h:54
ActsTrk::MaterialMapping::m_materialTrackCollectionKey
SG::ReadHandleKey< RecordedMaterialTrackCollection > m_materialTrackCollectionKey
The RecordedMaterialTrackCollection to read.
Definition
Acts/ActsMaterial/src/MaterialMapping.h:51
ActsTrk::MaterialMapping::m_materialMapper
std::shared_ptr< Acts::MaterialMapper > m_materialMapper
The material mapper from the ACTS core components.
Definition
Acts/ActsMaterial/src/MaterialMapping.h:42
ActsTrk::MaterialMapping::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
The tracking geometry service to retrive the geometry context and material surfaces.
Definition
Acts/ActsMaterial/src/MaterialMapping.h:48
ActsTrk::MaterialMapping::ATLAS_THREAD_SAFE
std::unique_ptr< Acts::MaterialMapper::State > m_mappingState ATLAS_THREAD_SAFE
The material mapping state.
Definition
Acts/ActsMaterial/src/MaterialMapping.h:45
ActsTrk::MaterialMapping::~MaterialMapping
virtual ~MaterialMapping()
Definition
Acts/ActsMaterial/src/MaterialMapping.cxx:17
ActsTrk::MaterialMapping::m_materialMapWriters
ToolHandleArray< IMaterialWriterTool > m_materialMapWriters
The material map writes.
Definition
Acts/ActsMaterial/src/MaterialMapping.h:39
ActsTrk::MaterialMapping::MaterialMapping
MaterialMapping(const std::string &name, ISvcLocator *pSvcLocator)
Definition
Acts/ActsMaterial/src/MaterialMapping.cxx:13
ActsTrk::MaterialMapping::initialize
virtual StatusCode initialize() override
Definition
Acts/ActsMaterial/src/MaterialMapping.cxx:20
ActsTrk::MaterialMapping::finalize
virtual StatusCode finalize() override
Definition
Acts/ActsMaterial/src/MaterialMapping.cxx:69
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.17.0