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

Run3-sim118B Try to replace getByLabel with token in SimCalorimetry/CastorSim #37757

Merged
merged 4 commits into from May 3, 2022

Conversation

bsunanda
Copy link
Contributor

@bsunanda bsunanda commented May 1, 2022

PR description:

Try to replace getByLabel with token in SimCalorimetry/CastorSim

PR validation:

Use the runTheMatrix test workflows

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

Nothing special

@cmsbuild
Copy link
Contributor

cmsbuild commented May 1, 2022

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29631

  • This PR adds an extra 16KB to repository

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

@cmsbuild
Copy link
Contributor

cmsbuild commented May 1, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29632

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented May 1, 2022

A new Pull Request was created by @bsunanda (Sunanda Banerjee) for master.

It involves the following packages:

  • SimCalorimetry/CastorSim (simulation)

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@rovere this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@bsunanda
Copy link
Contributor Author

bsunanda commented May 1, 2022

@cmsbuild Please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 1, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3344b0/24367/summary.html
COMMIT: ea3ff20
CMSSW: CMSSW_12_4_X_2022-05-01-0000/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/37757/24367/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3704146
  • DQMHistoTests: Total failures: 14
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3704110
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 205 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented May 2, 2022

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2022

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

@@ -79,21 +79,24 @@ class CastorDigiAnalyzer : public edm::one::EDAnalyzer<> {
CastorHitFilter castorFilter_;
CaloHitAnalyzer castorHitAnalyzer_;
CastorDigiStatistics castorDigiStatistics_;
edm::InputTag castorDigiCollectionTag_;
const edm::InputTag castorDigiCollectionTag_;
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not need to be a class member

Comment on lines 92 to 93
castorDigiCollectionTag_(conf.getParameter<edm::InputTag>("castorDigiCollectionTag")),
castordigiToken_(consumes<CastorDigiCollection>(castorDigiCollectionTag_)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
castorDigiCollectionTag_(conf.getParameter<edm::InputTag>("castorDigiCollectionTag")),
castordigiToken_(consumes<CastorDigiCollection>(castorDigiCollectionTag_)),
castordigiToken_(consumes<CastorDigiCollection>(conf.getParameter<edm::InputTag>("castorDigiCollectionTag")),

const edm::ESGetToken<CastorDbService, CastorDbRecord> theConditionsToken;
const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> theGeometryToken;
edm::ESWatcher<CaloGeometryRecord> theGeometryWatcher;
const edm::InputTag theHitsProducerTag;
Copy link
Contributor

Choose a reason for hiding this comment

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

This theHitsProducerTag can also get removed.
Before doing that please notice that one getByLabel was left in

e.getByLabel(theHitsProducerTag, castorHandle);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The class PileupEvent has only getByLabel. Once it is upgraded to make use of token, the last reference to getByLabel can be moved out.

@@ -27,21 +27,24 @@ class CastorHitAnalyzer : public edm::one::EDAnalyzer<> {
CastorSimParameterMap simParameterMap_;
CastorHitFilter castorFilter_;
CaloHitAnalyzer castorAnalyzer_;
edm::InputTag castorRecHitCollectionTag_;
const edm::InputTag castorRecHitCollectionTag_;
Copy link
Contributor

Choose a reason for hiding this comment

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

Also this class member is not needed

Comment on lines 40 to 41
castorRecHitCollectionTag_(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag")),
castorRecHitToken_(consumes<CastorRecHitCollection>(castorRecHitCollectionTag_)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
castorRecHitCollectionTag_(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag")),
castorRecHitToken_(consumes<CastorRecHitCollection>(castorRecHitCollectionTag_)),
castorRecHitToken_(consumes<CastorRecHitCollection>(conf.getParameter<edm::InputTag>("castorRecHitCollectionTag"))),

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2022

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29650

  • This PR adds an extra 16KB to repository

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

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37757/29654

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2022

Pull request #37757 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again.

@bsunanda
Copy link
Contributor Author

bsunanda commented May 2, 2022

@cmsbuild Please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 2, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3344b0/24389/summary.html
COMMIT: fc5123d
CMSSW: CMSSW_12_4_X_2022-05-02-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/37757/24389/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3703092
  • DQMHistoTests: Total failures: 13
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3703056
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 48 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 205 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented May 3, 2022

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented May 3, 2022

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

@perrotta
Copy link
Contributor

perrotta commented May 3, 2022

+1

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

4 participants