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

Removing GEDGsfElectronProducer - No inheriting electron producers anymore #29303

Merged
merged 2 commits into from Apr 17, 2020
Merged

Removing GEDGsfElectronProducer - No inheriting electron producers anymore #29303

merged 2 commits into from Apr 17, 2020

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Mar 25, 2020

PR description:

After a few previous PRs in the EgammaElectronProducers package, this is the PR that removes the last electron producer that derives from the GsfElectronBaseProducer class.

In in past, there were 4 producers which derived from GsfElectronBaseProducer (check for example 10_2_X):

  1. GEDGsfElectronProducer
  2. GsfElectronProducer
  3. GsfElectronEcalDrivenProducer
  4. LowPtGsfElectronProducer

Number 3 and 4 were so similar to the base class that their functionality got moved into the base class so they could be removed. Number 2 was not used since Run 1 and got removed in #28429. Number 1, the GEDGsfElectronProducer, undergoes a similar treatment than 3 and 4 in this PR: since it extends very little on the base class, the functionality just got moved into free functions that will be used by the base producer if a configuration flag is set. Furthermore, the old GEDGsfElectronProducer produced an additional ValueMap product, and this PR factorizes this out into a new GEDGsfElectronValueMapProducer, improving the modularity of the reconstruction.

Now, inheritance is finally not used anymore as a method for configuration in the EgammaElectronProducers plugins, which makes the code easier to understand. That also allows to merge the .h and .cc files of the former base producer.

Edit: during the review it was decided to rename the surviving GsfElectronBaseProducer producer to GsfElectronProducer because it is not intended to be used as a base class anymore.

PR validation:

CMSSW compiles.

if this PR is a backport please specify the original PR and why you need to backport that PR:

No backport intended.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@guitargeek
Copy link
Contributor Author

Forgot to squash the commits

@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-29303/14376

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @guitargeek (Jonas Rembser) for master.

It involves the following packages:

Calibration/EcalAlCaRecoProducers
RecoEgamma/EgammaElectronProducers
RecoEgamma/EgammaIsolationAlgos
RecoParticleFlow/PFProducer

@perrotta, @slava77, @christopheralanwest, @tocheng, @cmsbuild, @tlampen, @pohsun can you please review it and eventually sign? Thanks.
@mmarionncern, @Sam-Harper, @jainshilpi, @afiqaize, @varuns23, @tocheng, @lgray, @sobhatta, @rovere, @lecriste, @hatakeyamak, @mmusich, @argiro, @bachtis, @seemasharmafnal, @cbernet this is something you requested to watch as well.
@davidlange6, @silviodonato, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Mar 25, 2020

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 25, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5385/console Started: 2020/03/25 18:23

@cmsbuild
Copy link
Contributor

+1
Tested at: d37d345
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f63ffc/5385/summary.html
CMSSW: CMSSW_11_1_X_2020-03-25-1100
SCRAM_ARCH: slc7_amd64_gcc820

@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-f63ffc/5385/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2692110
  • DQMHistoTests: Total failures: 38
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2691753
  • DQMHistoTests: Total skipped: 319
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@pohsun
Copy link

pohsun commented Apr 7, 2020

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5611/console Started: 2020/04/08 22:28

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2020

Pull request #29303 was updated. @perrotta, @slava77, @christopheralanwest, @tocheng, @cmsbuild, @tlampen, @pohsun can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2020

+1
Tested at: 6205e84
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f63ffc/5611/summary.html
CMSSW: CMSSW_11_1_X_2020-04-08-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2020

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2692110
  • DQMHistoTests: Total failures: 33
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2691758
  • DQMHistoTests: Total skipped: 319
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@slava77
Copy link
Contributor

slava77 commented Apr 9, 2020

+1

for #29303 6205e84

  • code changes (refactoring) are in line with the PR description (mostly; a clarification from the last update can be adde) and with the follow up review.
  • jenkins tests pass and comparisons with the baseline show no (relevant) differences

@silviodonato
Copy link
Contributor

do you have comments @pohsun @tlampen @tocheng @christopheralanwest?

@guitargeek
Copy link
Contributor Author

I updated the description according to the review.

@slava77
Copy link
Contributor

slava77 commented Apr 14, 2020

do you have comments @pohsun @tlampen @tocheng @christopheralanwest?

ping

@cmsbuild cmsbuild mentioned this pull request Apr 16, 2020
@guitargeek
Copy link
Contributor Author

Hi @silviodonato, is it possible to merge this? The changes in alca are just one line which got covered by the tests. We know that for sure because I made a mistake in exactly that line earlier and the tests failed at that point. I got asked some questions about the GsfElectronProducer code, and it would be nice if I could already hyperlink to the newest version of the source in master.

@tocheng
Copy link
Contributor

tocheng commented Apr 16, 2020

+1

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

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit d252e7b into cms-sw:master Apr 17, 2020
@guitargeek guitargeek deleted the GEDGsfElectronValueMapProducer_1 branch April 17, 2020 08:36
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

7 participants