20 throw std::invalid_argument(
"Missing input event collection");
23 throw std::invalid_argument(
"Missing output particles collection");
31 SimParticleContainer::sequence_type unsortedParticles;
34 for (
const auto& vertex : event) {
35 for (
const auto&
particle : vertex.outgoing) {
36 unsortedParticles.emplace_back(
particle);
39 unsortedParticles.shrink_to_fit();
43 particles.adopt_sequence(std::move(unsortedParticles));
45 ctx.
eventStore.
add(m_cfg.outputParticles, std::move(particles));