32 return Acts::ParticleHypothesis::pion();
34 return Acts::ParticleHypothesis::chargedGeantino();
36 return Acts::ParticleHypothesis::electron();
38 return Acts::ParticleHypothesis::muon();
40 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts does not handle kaon");
42 return Acts::ParticleHypothesis(Acts::PdgParticle::eProton);
44 return Acts::ParticleHypothesis::photon();
46 return Acts::ParticleHypothesis(Acts::PdgParticle::eNeutron);
48 return Acts::ParticleHypothesis::pion0();
50 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts does not handle k0");
51 case nonInteractingMuon:
52 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts does not handle nonInteractingMuon");
56 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts failed for" +std::to_string(
h));
62 return Acts::ParticleHypothesis::geantino();
64 return Acts::ParticleHypothesis::electron();
66 return Acts::ParticleHypothesis::muon();
68 return Acts::ParticleHypothesis::pion();
70 throw std::domain_error(
71 "ActsTrk::ParticleHypothesis conversion to Acts does not handle "
75 return Acts::ParticleHypothesis(Acts::PdgParticle::eProton);
77 return Acts::ParticleHypothesis::photon();
79 throw std::domain_error(
80 "ActsTrk::ParticleHypothesis conversion to Acts doe not handle "
84 return Acts::ParticleHypothesis::pion0();
86 throw std::domain_error(
87 "ActsTrk::ParticleHypothesis conversion to Acts doe not handle K0");
90 throw std::domain_error(
91 "ActsTrk::ParticleHypothesis conversion to Acts does not handle "
92 "nonInteractingMuon");
94 throw std::domain_error(
95 "ActsTrk::ParticleHypothesis conversion to Acts does not handle "
96 "undefined/noHypothesis");
98 throw std::domain_error(
99 "ActsTrk::ParticleHypothesis conversion to Acts failed for" +
xAOD::ParticleHypothesis convert(Acts::ParticleHypothesis h)