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

Added esConsumes to PhysicsTools/PatUtils #35680

Merged
merged 3 commits into from Oct 17, 2021

Conversation

Dr15Jones
Copy link
Contributor

PR description:

  • added esConsumes calls to modules
  • switched to using std::unique_ptr
  • removed edm::Event and edm::EventSetup dependencies from LeptonVertexSignificance

PR validation:

Code compiles.

The constructor of the class would never be able to be called
properly from cmsRun.
-Also switched to using std::unique_ptr
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35680/25971

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • PhysicsTools/PatUtils (reconstruction)

@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@AlexDeMoor, @rappoccio, @gouskos, @JyothsnaKomaragiri, @ahinzmann, @schoef, @mmarionncern, @jdamgov, @jdolen, @nhanvtran, @gkasieczka, @clelange, @emilbols, @hatakeyamak, @gpetruc, @andrzejnovak, @demuller, @mariadalfonso, @seemasharmafnal 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

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-585fe9/19642/summary.html
COMMIT: f611518
CMSSW: CMSSW_12_1_X_2021-10-14-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35680/19642/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: 40
  • DQMHistoTests: Total histograms compared: 2796107
  • DQMHistoTests: Total failures: 10
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2796074
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 39 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 169 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

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.

all comments are for LeptonVertexSignificance which has an alternative solution in #35612

perhaps completing the migration is more satisfactory, but I don't have a particularly strong preference.

~LeptonVertexSignificance();
LeptonVertexSignificance() = default;
~LeptonVertexSignificance() = default;
;
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
;

reco::Vertex theVertex = vertexHandle.product()->front();
float LeptonVertexSignificance::calculate(const reco::Track& theTrack,
const reco::VertexCollection& vertex,
TransientTrackBuilder& builder) {
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
TransientTrackBuilder& builder) {
const TransientTrackBuilder& builder) {

it looks like the build (and apparently all) method is const

return 0;
reco::Vertex theVertex = vertexHandle.product()->front();
float LeptonVertexSignificance::calculate(const reco::Track& theTrack,
const reco::VertexCollection& vertex,
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
const reco::VertexCollection& vertex,
const reco::VertexCollection& vertices,

would be less confusing (or vertexColl

float LeptonVertexSignificance::calculate(const reco::Track& theTrack,
const reco::VertexCollection& vertex,
TransientTrackBuilder& builder) {
reco::Vertex const& theVertex = vertex.front();
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm missing a check for vertexColl.empty()

Suggested change
reco::Vertex const& theVertex = vertex.front();
if (vertex.empty()) return 0;
reco::Vertex const& theVertex = vertex.front();

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35680/25989

@cmsbuild
Copy link
Contributor

Pull request #35680 was updated. @jpata, @cmsbuild, @slava77 can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@slava77
Copy link
Contributor

slava77 commented Oct 15, 2021

@cmsbuild please test

the last attempt apparently got stuck in the network interruption

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-585fe9/19671/summary.html
COMMIT: 88a57b6
CMSSW: CMSSW_12_1_X_2021-10-15-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35680/19671/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: 40
  • DQMHistoTests: Total histograms compared: 2751113
  • DQMHistoTests: Total failures: 10
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2751080
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 39 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 170 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Oct 16, 2021

+reconstruction

for #35680 88a57b6

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

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

@qliphy
Copy link
Contributor

qliphy commented Oct 17, 2021

+1

@cmsbuild cmsbuild merged commit ff55d32 into cms-sw:master Oct 17, 2021
@Dr15Jones Dr15Jones deleted the deprecatedPhysicsToolsPatUtils branch October 20, 2021 20: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

4 participants