-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix beamspot in PATElectronProducer #46412
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46412/42266 |
A new Pull Request was created by @RSalvatico for master. It involves the following packages:
@cmsbuild, @ftorrresd, @hqucms, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
type egamma, bug-fix |
@cmsbuild, please test |
+1 Size: This PR adds an extra 32KB to repository Comparison SummarySummary:
|
+1 |
+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 now be reviewed by the release team before it's merged. @sextonkennedy, @mandrenguyen, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
There are two related bugs in the PATElectronProducer:
The variable beamSpot
cmssw/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc
Line 523 in 4a85623
is initialized but never set to the actual collection of BeamSpot. Nevertheless, it is used throughout the code. As a result, the BS2D and BS3D variables (impact parameters wrt the beamspot)
cmssw/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc
Line 1427 in 4a85623
are essentially trash. For example, before the fix
gsfTrack->dxy(beamspot)
tends to be a very large number wrt the equivalent for muons.There is no check on the validity of the beamspot, so
cmssw/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc
Line 524 in 4a85623
is never set to
true
. As a result, the BS3D errorcmssw/PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc
Line 1435 in 4a85623
is always
-1.0
.This PR fixes 1. and 2.
PR validation:
I ran several workflows and saw reasonable values for the impact parameters wrt the beamspot.
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:
It does not need a backport if future re-minis are going to happen with CMSSW >= 142X (probably the case?).
FYI @afiqaize @cochando @SanghyunKo