Skip to content

Commit

Permalink
Make it possible to keep the MCParticle momenta as float (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener authored Feb 7, 2024
1 parent 1996007 commit 07c8f18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ namespace LCIO2EDM4hepConv {
lval.setColorFlow(edm4hep::Vector2i(rval->getColorFlow()));
lval.setVertex(edm4hep::Vector3d(rval->getVertex()));
lval.setEndpoint(edm4hep::Vector3d(rval->getEndpoint()));
lval.setMomentum(rval->getMomentum());
lval.setMomentumAtEndpoint(rval->getMomentumAtEndpoint());
lval.setMomentum(Vector3fFrom(rval->getMomentum()));
lval.setMomentumAtEndpoint(Vector3fFrom(rval->getMomentumAtEndpoint()));

const auto [iterator, inserted] = k4EDM4hep2LcioConv::detail::mapInsert(rval, lval, mcparticlesMap);
if (!inserted) {
Expand Down

0 comments on commit 07c8f18

Please sign in to comment.