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
Bugfix to merging loop in PFEGAlgo #12939
Conversation
…kes sense to merge
@cmsbuild please test |
The tests are being triggered in jenkins. |
A new Pull Request was created by @lgray (Lindsey Gray) for CMSSW_8_0_X. It involves the following packages: RecoParticleFlow/PFProducer @cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please review it and eventually sign? Thanks. Following commands in first line of a comment are recognized
|
// -- check that the front is still mergeable! | ||
if( !mergeTest(*roToMerge) ) { | ||
// back up one step and repartition(since we will increment later) | ||
nomerge = std::partition(roToMerge--,ROs.end(),mergeTest); |
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.
is this one safe against running out of bounds?
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.
If this condition is really rare and not really expected, please add a LogWarning 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.
Safe against running out of bounds, yes since it starts from begin()+1.
I'll add the log warning.
Pull request #12939 was updated. @cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please check and sign again. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFEGammaAlgo.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFEGammaFilters.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFEGammaHeavyObjectCache.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFElectronAlgo.cc /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFEGammaAlgo.cc: In member function 'void PFEGammaAlgo::mergeROsByAnyLink(std::listPFEGammaAlgo::ProtoEGObject&)': /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFEGammaAlgo.cc:1457:56: error: 'LOGWARNING' was not declared in this scope LOGWARNING("PFEGammaAlgo::mergeROsByAnyLink") ^ >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFMuonAlgo.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PFPhotonAlgo.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-01-13-2300/src/RecoParticleFlow/PFProducer/src/PhotonSelectorAlgo.cc you can see the results of the tests here: |
@cmsbuild please test |
Pull request #12939 was updated. @cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please check and sign again. |
The tests are being triggered in jenkins. |
+1
|
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
+1 |
Bugfix to merging loop in PFEGAlgo
Fixes a bug in the merging loop of PFEGAlgo where it was possible that EB and EE clusters end up in the same e/gamma candidate.
The rate of this bug appears to be one in a few billion.