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
Include FSR for electrons (in addition to muons) #36323
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36323/27062
|
A new Pull Request was created by @vpicco for master. It involves the following packages:
@cmsbuild, @santocch, @mariadalfonso, @gouskos, @fgolf can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a45494/20912/summary.html Comparison SummarySummary:
|
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36323/27084
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
afe7b95
to
732cdf9
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36323/27087
|
double dR = deltaR(muon->eta(), muon->phi(), pc->eta(), pc->phi()); | ||
if (dR < dRMin && dR > 0.0001 && dR / pc->pt() / pc->pt() < drEtCut) { |
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.
Event though also this one could get optimized without loosing readability, e.g..:
double dR = deltaR(muon->eta(), muon->phi(), pc->eta(), pc->phi()); | |
if (dR < dRMin && dR > 0.0001 && dR / pc->pt() / pc->pt() < drEtCut) { | |
double dR = deltaR2(muon->eta(), muon->phi(), pc->eta(), pc->phi()); | |
if (dR < dRMin * dRMin && dR > 0.0001 * 0.0001) { | |
dR = std::sqrt(dR); | |
if (dR < drEtCut * pc->pt() * pc->pt()) { |
etc...
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.
Yes but this looks like a very tiny optimization, given that the number of candidates for FSR is small and the sqrt is done anyhow for those passing the dR cut (unless we also change the drEtCut). To me it seems to bring more confusion than speedup... but if you insist...
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.
Yes but this looks like a very tiny optimization, given that the number of candidates for FSR is small and the sqrt is done anyhow for those passing the dR cut (unless we also change the drEtCut). To me it seems to bring more confusion than speedup... but if you insist...
No, for this one I don't insist...
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36323/27702
|
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a45494/21600/summary.html Comparison SummarySummary:
|
@cms-sw/xpog-l2 last updates were mostly code cleaning, and I think you can confirm your previous signature: please conferm it anyhow with your "+1", if so |
+xpog quality code update since last signoff #36323 (comment) |
+1 |
merge |
+1 |
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 be automatically merged. |
PR description:
As discussed in the XPOG meeting on Nov, 10, this PR adds:
PR validation:
Tested running on a RelVal sample and compared with the previous muon-only implementation.
Notes
Not sure of how PhysicsTools/NanoAOD/python/nanoDQM_cfi.py should be updated. Tried running prepareDQM.py, with no success. @mariadalfonso can you please advise on this?
@namapane pls follow