Skip to content

Commit

Permalink
Fix compiler warnings related to double - float
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 27, 2024
1 parent 2d8393f commit 7f821f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ namespace EDM4hep2LCIOConv {
lcio_mcp->setEndpoint(endpoint);
double momentum[3] = {edm_mcp.getMomentum()[0], edm_mcp.getMomentum()[1], edm_mcp.getMomentum()[2]};
lcio_mcp->setMomentum(momentum);
float momentumEndpoint[3] = {
double momentumEndpoint[3] = {
edm_mcp.getMomentumAtEndpoint()[0], edm_mcp.getMomentumAtEndpoint()[1], edm_mcp.getMomentumAtEndpoint()[2]};
lcio_mcp->setMomentumAtEndpoint(momentumEndpoint);
#warning "double to float"
Expand Down
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(Vector3fFrom(rval->getMomentum()));
lval.setMomentumAtEndpoint(Vector3fFrom(rval->getMomentumAtEndpoint()));
lval.setMomentum(rval->getMomentum());
lval.setMomentumAtEndpoint(rval->getMomentumAtEndpoint());

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

0 comments on commit 7f821f4

Please sign in to comment.