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
Add energy units to CMSUnits.h #37037
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37037/28468
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37037/28470
|
A new Pull Request was created by @cvuosalo (Carl Vuosalo) for master. It involves the following packages:
@jpata, @cmsbuild, @clacaputo, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d0df4/22595/summary.html Comparison SummarySummary:
|
+reconstruction
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
DataFormats/Math/interface/GeantUnits.h
contains energy units, butDataFormats/Math/interface/CMSUnits.h
didn't have them. For consistency, the units _eV, _MeV, _GeV, and _TeV are added toCMSUnits.h
, along with enegy conversion functions. The definitions of the conversion functions were moved toDataFormats/Math/interface/angle_units.h
to avoid code duplication.angle_units.h
is not an ideal location for energy and length conversion functions, but such simple functions don't really justify the creation of a new header file to hold them.This PR resolves issue #29750.
PR validation:
The new units were added to a test program, and it successfully compiled.
No backport is needed.