26 throw std::invalid_argument(
"Missing material mapper");
28 throw std::invalid_argument(
"Missing tracking geometry");
31 ACTS_INFO(
"This algorithm requires inter-event information, "
32 <<
"run in single-threaded mode!");
41 m_cfg.materialMapper->finalizeMaps(m_mappingState);
46 for (
auto& [key,
value] : m_mappingState.surfaceMaterial) {
47 detectorMaterial.first.insert({key, std::move(
value)});
51 for (
auto& imw : m_cfg.materialWriters) {
52 imw->writeMaterial(detectorMaterial);
59 std::vector<Acts::RecordedMaterialTrack> mtrackCollection =
60 context.
eventStore.
get<std::vector<Acts::RecordedMaterialTrack>>(
67 for (
auto& mTrack : mtrackCollection) {
69 m_cfg.materialMapper->mapMaterialTrack(*mappingState, mTrack);
73 std::move(mtrackCollection));