Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDM4hep output: ensure float / double is consistent with EDM4hep version used #1250

Closed
andresailer opened this issue Apr 3, 2024 · 0 comments · Fixed by #1251
Closed

EDM4hep output: ensure float / double is consistent with EDM4hep version used #1250

andresailer opened this issue Apr 3, 2024 · 0 comments · Fixed by #1251

Comments

@andresailer
Copy link
Member

The version check has to be adapted because EDM4hep reverted the type.

#if edm4hep_VERSION < EDM4HEP_VERSION(0, 10, 3)
mcp.setMomentum( {float(p->psx/CLHEP::GeV),float(p->psy/CLHEP::GeV),float(p->psz/CLHEP::GeV)} );
mcp.setMomentumAtEndpoint( {float(p->pex/CLHEP::GeV),float(p->pey/CLHEP::GeV),float(p->pez/CLHEP::GeV)} );
#else
mcp.setMomentum( {p->psx/CLHEP::GeV, p->psy/CLHEP::GeV, p->psz/CLHEP::GeV} );
mcp.setMomentumAtEndpoint( {p->pex/CLHEP::GeV, p->pey/CLHEP::GeV, p->pez/CLHEP::GeV} );
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant