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 out of bound array in photon uncertainty calculation #9821

Conversation

cmsbuild
Copy link
Contributor

Old photon uncertainty calculation was trying to access array index -1.
Added protection against that.

This modification concerns only an outdated energy correction that should not be used anymore. Thus, this should not affect any current usage of RecoEgamma.
Automatically ported from CMSSW_7_5_X #9381 (original by @rafaellopesdesa).

@cmsbuild
Copy link
Contributor Author

A new Pull Request was created by @cmsbuild for CMSSW_7_6_X.

Fix out of bound array in photon uncertainty calculation

It involves the following packages:

RecoEgamma/EgammaPhotonAlgos

@cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks.
@Sam-Harper, @lgray this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@cmsbuild
Copy link
Contributor Author

Pull request #9821 was updated. @cmsbuild, @cvuosalo, @slava77 can you please check and sign again.

@cvuosalo
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor Author

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor Author

Pull request #9821 was updated. @cmsbuild, @cvuosalo, @slava77 can you please check and sign again.

@cmsbuild
Copy link
Contributor Author

@cmsbuild
Copy link
Contributor Author

@cvuosalo
Copy link
Contributor

+1

For #9821 1ccf013

Protect against incorrect array reference used to calculate photon uncertainty. #9831, the matching PR for 75X, has already been approved by Reco.

The code changes are satisfactory, and Jenkins tests against baseline CMSSW_7_6_X_2015-06-23-1100 show no significant differences.

@cmsbuild
Copy link
Contributor Author

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request will be automatically merged.

cmsbuild added a commit that referenced this pull request Jun 23, 2015
…rtaintyPhoton

Fix out of bound array in photon uncertainty calculation
@cmsbuild cmsbuild merged commit 2dda664 into cms-sw:CMSSW_7_6_X Jun 23, 2015
@rafaellopesdesa rafaellopesdesa deleted the FixOutOfBoundEnergyUncertaintyPhoton branch February 1, 2017 14:27
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.

None yet

3 participants