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

moved hardcoded correction boundary values to configuration file in EcalLaserCondTools #30010

Merged
merged 2 commits into from May 30, 2020

Conversation

grasph
Copy link
Contributor

@grasph grasph commented May 28, 2020

Two parameters (correction boudaries) were hardcoded in the module EcalLaserCondTools. This PR makes them configurable thanks to the work of @fcouderc . Application of correction boundaries has also been simplified.

The code is not used in the reco and simulation workflows.

@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-30010/15701

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@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-30010/15702

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @grasph (Philippe Gras) for master.

It involves the following packages:

CalibCalorimetry/EcalTrivialCondModules

@cmsbuild, @pohsun, @christopheralanwest, @tocheng, @tlampen can you please review it and eventually sign? Thanks.
@rchatter, @mmusich, @tocheng, @argiro this is something you requested to watch as well.
@silviodonato, @dpiparo you are the release manager for this.

cms-bot commands are listed here

@christopheralanwest
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 28, 2020

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

@cmsbuild
Copy link
Contributor

+1
Tested at: f5c08b1
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-097412/6647/summary.html
CMSSW: CMSSW_11_2_X_2020-05-27-2300
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-097412/6647/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 36
  • DQMHistoTests: Total histograms compared: 2780792
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2780740
  • DQMHistoTests: Total skipped: 50
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 35 files compared)
  • Checked 152 log files, 16 edm output root files, 36 DQM output files

@pohsun
Copy link

pohsun commented May 29, 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)

Copy link
Contributor

@silviodonato silviodonato left a comment

Choose a reason for hiding this comment

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

Looking at "6 – Packaging Rules" https://cms-sw.github.io/cms_coding_rules.html it seems EcalLaserCondTools should go in a single .cc file in /plugins directory.

Comment on lines +34 to +36
toTime_(ps.getParameter<int>("toTime")),
minP_(ps.getParameter<double>("transparencyMin")),
maxP_(ps.getParameter<double>("transparencyMax")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding new parameters means that current py files without the new parameters will crash in future CMSSW release and that the newer py files with the new parameters will crash in the older CMSSW release. I would suggest to introduce the fillDescriptions to set default values in order to preserve the compatibility between the releases (https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideConfigurationValidationAndHelp#An_Example)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand. I expect that by "crash" you meant an exception, not a core dump.

The parameters are tracked parameters, so an exception will already be raised if they are missing in the configuration file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In addition this "fillDescription" is a source of inconsistency in the code. The new of the parameters will appear twice with the risk to update at one place and forget in another place or using a different spelling. I have missed the rationally of this new method.

@silviodonato
Copy link
Contributor

The main comment is #30010 (comment). You can consider the other comments as "nice to have" features going beyond the purpose of this PR.

@silviodonato silviodonato changed the title moved hardcoded correction boundary values to configuration file moved hardcoded correction boundary values to configuration file in EcalLaserCondTools May 30, 2020
@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 9820d77 into cms-sw:master May 30, 2020
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