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

implement event consumes in MuScleFit #39029

Merged
merged 1 commit into from Aug 12, 2022

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Aug 11, 2022

resolves #38958

PR description:

Title says it all.

PR validation:

Run with this branch the configuration posted at #38958 (comment) (for convenience also available here) successfully.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Not a backport, but will need to be backported to CMSSW_12_4_X for tracker alignment validation purposes.

@mmusich
Copy link
Contributor Author

mmusich commented Aug 11, 2022

type trk,bugfix

@mmusich
Copy link
Contributor Author

mmusich commented Aug 11, 2022

urgent

  • needed for alignment validation purposes

@mmusich
Copy link
Contributor Author

mmusich commented Aug 11, 2022

assign alca

  • as the code is used for alca purposes, despite being in the analysis stack

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39029/31516

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

New categories assigned: alca

@yuanchao,@francescobrivio,@malbouis,@saumyaphor4252,@tvami,@ChrisMisan you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

  • MuonAnalysis/MomentumScaleCalibration (analysis)

@malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks.
@rchatter, @bellan, @argiro, @thomreis, @simonepigazzini this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy, @rappoccio you are the release manager for this.

cms-bot commands are listed here

Copy link
Contributor

@tvami tvami left a comment

Choose a reason for hiding this comment

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

I have a single question to bring up regarding moving the tokens to the constructor

Comment on lines 484 to +490
puInfoSrc_ = pset.getUntrackedParameter<edm::InputTag>("PileUpSummaryInfo");
puInfoToken_ = consumes<std::vector<PileupSummaryInfo> >(puInfoSrc_);

vertexSrc_ = pset.getUntrackedParameter<edm::InputTag>("PrimaryVertexCollection");
vertexToken_ = consumes<reco::VertexCollection>(vertexSrc_);

genEvtInfoToken_ = consumes<GenEventInfoProduct>(edm::InputTag("generator"));
Copy link
Contributor

Choose a reason for hiding this comment

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

couldn't these go to the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they are in the constructor.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mmusich sorry I meant the initializer list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tvami, I think we can leave the const correctness of the tokens for later, what do you think? feel free to open an issue about it (I am not the maintainer of this package by the way)

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, let's do it in a follow-up PR then!

Comment on lines +302 to +305
edm::EDGetTokenT<edm::TriggerResults> triggerResultsToken_;
edm::EDGetTokenT<reco::VertexCollection> vertexToken_;
edm::EDGetTokenT<std::vector<PileupSummaryInfo> > puInfoToken_;
edm::EDGetTokenT<GenEventInfoProduct> genEvtInfoToken_;
Copy link
Contributor

Choose a reason for hiding this comment

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

and then these could be const

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, because they are not in the initializer list.

@tvami
Copy link
Contributor

tvami commented Aug 11, 2022

unassign analysis

  • there is nobody to sign for analysis after this commit: cms-sw/cms-bot@5adb8ad
  • @cms-sw/orp-l2 this should be fixed

@tvami
Copy link
Contributor

tvami commented Aug 11, 2022

@cmsbuild , please test

  • I doubt anything will test this, otherwise this problem would have been noticed earlier...

@mmusich
Copy link
Contributor Author

mmusich commented Aug 11, 2022

I doubt anything will test this, otherwise this problem would have been noticed earlier...

right I was planning to add a unit test for the alignment usage, but only once you sign #38723 because I can profit of the re-organization of the unit tests done there.

@tvami
Copy link
Contributor

tvami commented Aug 11, 2022

in the wishlist for the follow-up PR, we should also have a unit test with the config in
https://gist.github.com/mmusich/80fa5cb6e192c9f424f715b598b22604

@tvami
Copy link
Contributor

tvami commented Aug 11, 2022

We wrote at the same time. In the meantime, I signed the #38723 too

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39029/31519

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

Pull request #39029 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Aug 11, 2022

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aebfda/26758/summary.html
COMMIT: 3d20241
CMSSW: CMSSW_12_5_X_2022-08-11-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/39029/26758/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: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3692476
  • DQMHistoTests: Total failures: 8
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3692446
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 212 log files, 49 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Aug 11, 2022

+alca

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

@qliphy
Copy link
Contributor

qliphy commented Aug 12, 2022

+1

@cmsbuild cmsbuild merged commit 37ebeb9 into cms-sw:master Aug 12, 2022
@mmusich mmusich deleted the muscleFitConsumes branch August 12, 2022 06:19
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.

Consumes migration to fix for tk alignment Zmumu validation
4 participants