-
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
Bugfix to merging loop in PFEGAlgo (76X) #12940
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_7_6_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
|
Pull request #12940 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_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFCandConnector.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFEGammaAlgo.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFEGammaFilters.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFEGammaHeavyObjectCache.cc /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFEGammaAlgo.cc: In member function 'void PFEGammaAlgo::mergeROsByAnyLink(std::listPFEGammaAlgo::ProtoEGObject&)': /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFEGammaAlgo.cc:1452:56: error: 'LOGWARNING' was not declared in this scope LOGWARNING("PFEGammaAlgo::mergeROsByAnyLink") ^ >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFElectronAlgo.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFMuonAlgo.cc >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2016-01-10-1100/src/RecoParticleFlow/PFProducer/src/PFPhotonAlgo.cc you can see the results of the tests here: |
Pull request #12940 was updated. @cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please check and sign again. |
@cmsbuild please test |
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_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
@@ -1445,6 +1445,18 @@ initializeProtoCands(std::list<PFEGammaAlgo::ProtoEGObject>& egobjs) { | |||
<< "Found objects " << std::distance(mergestart,nomerge) | |||
<< " to merge by links to the front!" << std::endl; | |||
for( auto roToMerge = mergestart; roToMerge != nomerge; ++roToMerge) { | |||
//bugfix! L.Gray 14 Jan 2016 | |||
// -- check that the front is still mergeable! | |||
if( thefront.ecalclusters.size() && roToMerge->ecalclusters.size() ) { |
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.
size could better be !empty() [or less size()!=0]. Consider for a follow pr.
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.
"empty()" (begin==end) by itself is cheaper than size.
+1 |
Bugfix to merging loop in PFEGAlgo (76X)
Backport of #12939.