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

Removed unneeded uses of unique_ptr from GsfElectronAlgo #25977

Merged
merged 1 commit into from Feb 23, 2019

Conversation

Dr15Jones
Copy link
Contributor

In addition to being a code cleanup, this avoids an apparent compiler bug in clang 7 where default constructors are required but missing.

In addition to being a code cleanup, this avoids an apparent
compiler bug in clang 7 where default constructors are required
but missing.
@Dr15Jones
Copy link
Contributor Author

This fixes the linking problem seen in the CLANG IBs

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25977/8482

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

RecoEgamma/EgammaElectronAlgos

@cmsbuild, @perrotta, @slava77 can you please review it and eventually sign? Thanks.
@jainshilpi, @Sam-Harper, @varuns23, @lgray this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 19, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/33190/console Started: 2019/02/19 17:29

@guitargeek
Copy link
Contributor

Thank you, I missed that in my last PR.

@guitargeek
Copy link
Contributor

Are the remaining unique pointers also causing these clang errors by the way? They are a bit more involving to get rid of.

@Dr15Jones
Copy link
Contributor Author

@guitargeek

Are the remaining unique pointers also causing these clang errors by the way? They are a bit more involving to get rid of.

Only 1 caused a clang problem. The ones I didn't change seemed to be a reasonable use of std::unique_ptr.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25977/33190/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3098286
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3098088
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@perrotta
Copy link
Contributor

@Dr15Jones , for my own education:

  • You say that only 1 caused a clang problem: is it GeneralData, correct?
  • If so, why did you remove the unique_ptr also for EventSetupData?
  • (Saying it differently) why didn't you remove it also for EventData and ElectronData? Only because they are a bit more involved to get rid of it?

@Dr15Jones
Copy link
Contributor Author

@perrotta

(Saying it differently) why didn't you remove it also for EventData and ElectronData?

GeneralData and EventSetupData were being 'new'ed in the constructor and 'delete'd in the destructor thereby having a lifetime equal to the parent class. That is exactly the same lifetime as member data.

EventData and ElectronData are 'new'ed and 'delete'd each event.

@perrotta
Copy link
Contributor

perrotta commented Feb 21, 2019 via email

@smuzaffar smuzaffar modified the milestones: CMSSW_10_5_X, CMSSW_10_6_X Feb 21, 2019
@Dr15Jones
Copy link
Contributor Author

ping

@Dr15Jones
Copy link
Contributor Author

This change is needed to fix the broken builds on CLANG

@perrotta
Copy link
Contributor

+1

  • The fix is technical and integrate what proposed in the description (and thank you Chris for the further explanation)
  • Jenkins tests pass

@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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 648eccc into cms-sw:master Feb 23, 2019
@Dr15Jones Dr15Jones deleted the clangGsfElectronAlgo branch February 24, 2019 15:00
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

6 participants