File indexing completed on 2025-01-18 09:12:14
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "ActsFatras/EventData/ParticleOutcome.hpp"
0010
0011 #include <ostream>
0012 #include <stdexcept>
0013
0014 namespace ActsFatras {
0015
0016 std::ostream &operator<<(std::ostream &os, ParticleOutcome outcome) {
0017 switch (outcome) {
0018 case ActsFatras::ParticleOutcome::Alive:
0019 return (os << "Alive");
0020 case ActsFatras::ParticleOutcome::KilledInteraction:
0021 return (os << "KilledInteraction");
0022 case ActsFatras::ParticleOutcome::KilledVolumeExit:
0023 return (os << "KilledVolumeExit");
0024 case ActsFatras::ParticleOutcome::KilledTime:
0025 return (os << "KilledTime");
0026 case ActsFatras::ParticleOutcome::KilledSecondaryParticle:
0027 return (os << "KilledSecondaryParticle");
0028 }
0029
0030 throw std::runtime_error("Unknown ParticleOutcome");
0031 }
0032
0033 }