17 #include <edm4hep/MCParticleCollection.h>
18 #include <edm4hep/SimTrackerHitCollection.h>
19 #include <podio/Frame.h>
21 namespace ActsExamples {
36 return "EDM4hepSimHitReader";
46 const auto& mcParticleCollection =
50 SimParticleContainer::sequence_type unordered;
52 for (
const auto& mcParticle : mcParticleCollection) {
54 mcParticle, [](
const edm4hep::MCParticle&
p) {
65 particles.insert(unordered.begin(), unordered.end());
69 SimHitContainer::sequence_type unordered;
71 const auto& simTrackerHitCollection =
74 for (
const auto& simTrackerHit : simTrackerHitCollection) {
78 [](
const edm4hep::MCParticle&
particle) {
84 [&](std::uint64_t cellId) {
87 .lookupDetElement(cellId);
93 ACTS_ERROR(
"EDM4hepSimHitReader: failed to convert SimTrackerHit");
99 simHits.insert(unordered.begin(), unordered.end());