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

Fix beamspot in PATElectronProducer #46412

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

RSalvatico
Copy link
Contributor

@RSalvatico RSalvatico commented Oct 16, 2024

PR description:

There are two related bugs in the PATElectronProducer:

  1. The variable beamSpot


    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)
    anElectron.setDB(track->dxy(beamspot), track->dxyError(beamspot), pat::Electron::BS2D);

    are essentially trash. For example, before the fix gsfTrack->dxy(beamspot) tends to be a very large number wrt the equivalent for muons.

  2. There is no check on the validity of the beamspot, so

    bool beamSpotIsValid = false;

    is never set to true. As a result, the BS3D error
    d0_err = beamspotIsValid ? result.second.error() : -1.0;

    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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 16, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @RSalvatico for master.

It involves the following packages:

  • PhysicsTools/PatAlgos (xpog, reconstruction)

@cmsbuild, @ftorrresd, @hqucms, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@AlexDeMoor, @Ming-Yan, @Senphy, @ahinzmann, @andrzejnovak, @azotz, @castaned, @gkasieczka, @gouskos, @gpetruc, @hatakeyamak, @jdamgov, @jdolen, @mariadalfonso, @mbluj, @mmarionncern, @nhanvtran, @rappoccio, @schoef, @seemasharmafnal this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@RSalvatico
Copy link
Contributor Author

type egamma, bug-fix

@RSalvatico
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 32KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cca9d2/42245/summary.html
COMMIT: 50e2d9f
CMSSW: CMSSW_14_2_X_2024-10-15-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/46412/42245/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@jfernan2
Copy link
Contributor

+1

@hqucms
Copy link
Contributor

hqucms commented Oct 17, 2024

+1

@cmsbuild
Copy link
Contributor

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)

@mandrenguyen
Copy link
Contributor

+1

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

Successfully merging this pull request may close these issues.

5 participants