Skip to content

Commit

Permalink
Update HepMCToEDMConverter.cpp
Browse files Browse the repository at this point in the history
Changed type from float to double for mass
  • Loading branch information
AsgerGaardsvoll authored Feb 8, 2024
1 parent 5e1670c commit 72307a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k4Gen/src/components/HepMCToEDMConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edm4hep::MutableMCParticle HepMCToEDMConverter::convert(std::shared_ptr<const He
// convert momentum
auto p = hepmcParticle->momentum();
edm_particle.setMomentum( {float(p.px()), float(p.py()), float(p.pz())} );
edm_particle.setMass( float ( hepmcParticle->generated_mass() ) );
edm_particle.setMass( double ( hepmcParticle->generated_mass() ) );

// add spin (particle helicity) information if available
std::shared_ptr<HepMC3::VectorFloatAttribute> spin = hepmcParticle->attribute<HepMC3::VectorFloatAttribute>("spin");
Expand Down

0 comments on commit 72307a9

Please sign in to comment.