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

Remove manually generated cfi file for ElectronSeedProducer #28213

Merged
merged 4 commits into from Oct 24, 2019
Merged

Remove manually generated cfi file for ElectronSeedProducer #28213

merged 4 commits into from Oct 24, 2019

Conversation

guitargeek
Copy link
Contributor

PR description:

The ecalDrivenElectronSeeds_cfi.py file redundantly redefines all the configuration values that are already set in the fillDescriptions() method of the ElectronSeedProducer. It would be better to avoid this to make the ElectronSeedProducer more maintainable. The entries in fillDescriptions have been reshuffled and commented to match the previous easy-to-read structure in the cfi file.

On this occasion, the fromTrackerSeeds parameter was finally removed completely, as it could not be disabled anymore anyway (the code would have segfaulted has reported in #27541) and the standard tracker seeds should always be used now. That finishes what #28039 and #28133 started.

Another update is that the HoE values are not stored anymore in some unused vectors. I think this must be a remnant from removing the HoE values in the ElectronSeed class [1] two years ago.

Unrelated to this, there is a separate commit that moves the forward declaration and implementation of GsfElectronAlgoHeavyObjectCache into the GsfElectronAlgo class. It was always a bit strange to me why many other helper classes for GsfElectronAlgo (that are also much longer) don't have their own files while the HeavyObjectCache (which really doesn't make sense to use in another context) does not.

[1] https://github.com/cms-sw/cmssw/blob/master/DataFormats/EgammaReco/interface/ElectronSeed.h#L16

PR validation:

CMSSW compiles and local matrix tests pass.

if this PR is a backport please specify the original PR:

No backport intended.

@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-28213/12329

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

DPGAnalysis/Skims
RecoEgamma/EgammaElectronAlgos
RecoEgamma/EgammaElectronProducers
TrackingTools/GsfTracking

@perrotta, @pgunnell, @chayanit, @zhenhu, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@varuns23, @Sam-Harper, @makortel, @felicepantaleo, @jainshilpi, @GiacomoSguazzoni, @rovere, @lgray, @bellan, @sobhatta, @afiqaize, @gpetruc, @ebrondol, @VinInn, @dgulhan 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

@slava77
Copy link
Contributor

slava77 commented Oct 18, 2019

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 18, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/3028/console Started: 2019/10/18 19:01

@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-36dc45/3028/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: 2961064
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2960722
  • DQMHistoTests: Total skipped: 341
  • 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

Copy link
Contributor

@slava77 slava77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work grouping the parameters in the ElectronSeedProducer.

psd0.add<bool>("dynamicPhiRoad", true);

// specify where to get the hits from
psd0.add<edm::InputTag>("measurementTrackerEvent", {"MeasurementTrackerEvent"});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this parameter still used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this one is still used. Not in the current configuration thought, but at least the plugin could theoretically be configured such that it is actually used in a meaningful way.

// H/E rechits
psd0.add<edm::InputTag>("hcalRecHits", {"hbhereco"}); // OBSOLETE
psd0.add<double>("hOverEHBMinE", 0.7); // OBSOLETE
psd0.add<double>("hOverEHFMinE", 0.8); // OBSOLETE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better remove these, if they are obsolete

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that should definitely go away. I will push an update after local tests.

@cmsbuild
Copy link
Contributor

Pull request #28213 was updated. @perrotta, @pgunnell, @chayanit, @zhenhu, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Oct 22, 2019

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 22, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/3087/console Started: 2019/10/22 13:49

@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-36dc45/3087/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: 2961064
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2960721
  • DQMHistoTests: Total skipped: 341
  • 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 Oct 23, 2019

+1

for #28213 6df92ce

  • essentially technical code changes are in line with the PR description and the follow up review
  • jenkins tests pass and comparisons with the baseline show no (relevant) differences

@fabiocos
Copy link
Contributor

@chayanit @pgunnell please have a look, this is just changing a commented line. I will move forward with integration

@chayanit
Copy link

+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. @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 6a037a6 into cms-sw:master Oct 24, 2019
@guitargeek guitargeek deleted the ElectronSeedProducer_config branch October 24, 2019 15:46
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

5 participants