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

Bugfix to merging loop in PFEGAlgo (76X) #12940

Merged
merged 3 commits into from
Jan 15, 2016

Conversation

lgray
Copy link
Contributor

@lgray lgray commented Jan 14, 2016

Backport of #12939.

@lgray
Copy link
Contributor Author

lgray commented Jan 14, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/10492/console

@cmsbuild
Copy link
Contributor

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.
@mmarionncern, @bachtis this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

Following commands in first line of a comment are recognized

  • +1|approve[d]|sign[ed]: L1/L2's to approve it
  • -1|reject[ed]: L1/L2's to reject it
  • assign <category>[,<category>[,...]]: L1/L2's to request signatures from other categories
  • unassign <category>[,<category>[,...]]: L1/L2's to remove signatures from other categories
  • hold: L1/all L2's/release manager to mark it as on hold
  • unhold: L1/user who put this PR on hold
  • merge: L1/release managers to merge this request
  • [@cmsbuild,] please test: L1/L2 and selected users to start jenkins tests
  • [@cmsbuild,] please test with cms-sw/cmsdist#<PR>: L1/L2 and selected users to start jenkins tests using externals from cmsdist

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

@lgray
Copy link
Contributor Author

lgray commented Jan 14, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/10499/console

@cmsbuild
Copy link
Contributor

-1
Tested at: 20ea22a
I found an error when building:

>> 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:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12940/10499/summary.html

@cmsbuild
Copy link
Contributor

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

@lgray
Copy link
Contributor Author

lgray commented Jan 14, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/10519/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Jan 15, 2016

+1

for #12940 f6c612d

  • code changes look fairly localized/targeted as expected
  • jenkins tests pass and comparisons with baseline show no differences
  • previously crashing Run 256676, Event 947703079, LumiSection 673 /Run2015D/JetHT/RAW doesn't crash anymore and generates just one warning
  • additional ~2K events from several workflows tested to gain stats or add some more sanity checks: the warning doesn't show up

@cmsbuild
Copy link
Contributor

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() ) {
Copy link
Contributor

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.

Copy link
Contributor

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.

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Jan 15, 2016
Bugfix to merging loop in PFEGAlgo (76X)
@cmsbuild cmsbuild merged commit 4278d6e into cms-sw:CMSSW_7_6_X Jan 15, 2016
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.

4 participants