diff --git a/k4Gen/src/components/HepMCToEDMConverter.cpp b/k4Gen/src/components/HepMCToEDMConverter.cpp index 9b8148c..06adc13 100644 --- a/k4Gen/src/components/HepMCToEDMConverter.cpp +++ b/k4Gen/src/components/HepMCToEDMConverter.cpp @@ -17,6 +17,7 @@ edm4hep::MutableMCParticle HepMCToEDMConverter::convert(std::shared_ptrmomentum(); edm_particle.setMomentum( {float(p.px()), float(p.py()), float(p.pz())} ); + edm_particle.setMass( double ( hepmcParticle->generated_mass() ) ); // add spin (particle helicity) information if available std::shared_ptr spin = hepmcParticle->attribute("spin");