ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11#include "GaudiKernel/ServiceHandle.h"
18#include "Acts/Material/MaterialMapper.hpp"
19
20namespace ActsTrk {
27
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::WriteHandleKey< RecordedMaterialTrackCollection > m_mappedMaterialTrackCollectionKey
The mapped and unmapped material tracks.
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteHandleKey< RecordedMaterialTrackCollection > m_unmappedMaterialTrackCollectionKey
SG::ReadHandleKey< RecordedMaterialTrackCollection > m_materialTrackCollectionKey
The RecordedMaterialTrackCollection to read.
std::shared_ptr< Acts::MaterialMapper > m_materialMapper
The material mapper from the ACTS core components.
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
The tracking geometry service to retrive the geometry context and material surfaces.
std::unique_ptr< Acts::MaterialMapper::State > m_mappingState ATLAS_THREAD_SAFE
The material mapping state.
ToolHandleArray< IMaterialWriterTool > m_materialMapWriters
The material map writes.
MaterialMapping(const std::string &name, ISvcLocator *pSvcLocator)
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...