-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
use reco::deltaR2
in HLTrigger/*/
packages
#43643
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43643/38303
|
A new Pull Request was created by @missirol (Marino Missiroli) for master. It involves the following packages:
@mmusich, @cmsbuild, @Martin-Grunewald can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In plugins where an upper/lower bound on a Delta-R distance is taken from the PSet, the value is converted to Delta-R^2 times the sign of the input value (using deltaR x |deltaR|). This preserves the current behaviour of these plugins when a negative deltaR value is specified in the PSet.
I am confused by this. Isn't putting a negative value to a defined positive quantity a tell-tale sign of a misconfiguration?
Admittedly I didn't check all of the modules, but at least the couple I checked, I don't see where the sign is used.
Often yes, but i think it can depend on the plugin. In some cases, one could specify a negative value with the intention of skipping the delta-R cut, or (conversely) not letting anything pass the cut (maybe not realistic, but possible). I initially had an exception thrown in various places for negative values (missirol@3f6b091), but then opted to have a PR that is purely technical in the sense that the current behaviour does not change in any way (no matter the input parameters), but happy to improve. |
OK, fine by me. Let's follow-up in another PR. |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a3ed47/36691/summary.html Comparison SummarySummary:
|
type performance-improvements |
+hlt
|
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. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR replaces calls to
reco::deltaR
(or similar methods) with the fasterreco::deltaR2
(or, where appropriate, delta-R^2 calculated explicitly asdeta*deta + dphi*dphi
) in theHLTrigger/*/
packages. Some notes below.HLTrigger/*/
are old and unused).deltaR x |deltaR|
). This preserves the current behaviour of these plugins when a negativedeltaR
value is specified in the PSet.Merely technical. No changes expected.
PR validation:
addOnTests.py
passed (I did not verify that the trigger results remain exactly the same).If this PR is a backport, please specify the original PR and why you need to backport that PR. If this PR will be backported, please specify to which release cycle the backport is meant for:
N/A