From 07c8f18a3c9adb55178940e63e0fe8c11a4bbda3 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Wed, 7 Feb 2024 17:09:27 +0100 Subject: [PATCH] Make it possible to keep the MCParticle momenta as float (#50) --- .../include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.ipp b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.ipp index 06807256..0a0babbc 100644 --- a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.ipp +++ b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.ipp @@ -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) {