47 return Acts::ParticleHypothesis::pion();
49 return Acts::ParticleHypothesis::chargedGeantino();
51 return Acts::ParticleHypothesis::electron();
53 return Acts::ParticleHypothesis::muon();
55 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts does not handle kaon");
57 return Acts::ParticleHypothesis(Acts::PdgParticle::eProton);
59 return Acts::ParticleHypothesis::photon();
61 return Acts::ParticleHypothesis(Acts::PdgParticle::eNeutron);
63 return Acts::ParticleHypothesis::pion0();
65 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts does not handle k0");
66 case nonInteractingMuon:
67 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts does not handle nonInteractingMuon");
71 throw std::domain_error(
"ActsTrk::ParticleHypothesis conversion to Acts failed for" +std::to_string(
h));
77 return Acts::ParticleHypothesis::geantino();
79 return Acts::ParticleHypothesis::electron();
81 return Acts::ParticleHypothesis::muon();
83 return Acts::ParticleHypothesis::pion();
85 throw std::domain_error(
86 "ActsTrk::ParticleHypothesis conversion to Acts does not handle "
90 return Acts::ParticleHypothesis(Acts::PdgParticle::eProton);
92 return Acts::ParticleHypothesis::photon();
94 throw std::domain_error(
95 "ActsTrk::ParticleHypothesis conversion to Acts doe not handle "
99 return Acts::ParticleHypothesis::pion0();
101 throw std::domain_error(
102 "ActsTrk::ParticleHypothesis conversion to Acts doe not handle K0");
105 throw std::domain_error(
106 "ActsTrk::ParticleHypothesis conversion to Acts does not handle "
107 "nonInteractingMuon");
109 throw std::domain_error(
110 "ActsTrk::ParticleHypothesis conversion to Acts does not handle "
111 "undefined/noHypothesis");
113 throw std::domain_error(
114 "ActsTrk::ParticleHypothesis conversion to Acts failed for" +
Trk::ParticleHypothesis convertTrk(Acts::ParticleHypothesis h)
xAOD::ParticleHypothesis convert(Acts::ParticleHypothesis h)