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

modernize TkAlCaRecoMonitor source and configuration #40877

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Feb 24, 2023

PR description:

Title says it all:

  • add a fillDescriptions;
  • use range-based loops;
  • reduce code duplication.

PR validation:

  • cmssw compiles;
  • scram b runtests_testDiMuonVertexMonitor use-ibeos passes.

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:

N/A

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40877/34347

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • DQMOffline/Alignment (dqm)

@emanueleusai, @cmsbuild, @syuvivida, @rvenditti, @micsucmed, @pmandrik can you please review it and eventually sign? Thanks.
@rociovilar this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor Author

mmusich commented Feb 24, 2023

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests RelVals RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-15e640/30892/summary.html
COMMIT: 6c36d3e
CMSSW: CMSSW_13_1_X_2023-02-24-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40877/30892/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found errors in the following unit tests:

---> test testDiMuonVertexMonitor had ERRORS

RelVals

  • 138.4138.4_PromptCollisions2021/step2_PromptCollisions2021.log
  • 138.5138.5_ExpressCollisions2021/step2_ExpressCollisions2021.log
  • 140.53140.53_RunHI2011/step2_RunHI2011.log
Expand to see more relval errors ...

RelVals-INPUT

  • 4.64.6_MinimumBias2010A/step2_MinimumBias2010A.log
  • 138.4138.4_PromptCollisions2021/step2_PromptCollisions2021.log
  • 138.5138.5_ExpressCollisions2021/step2_ExpressCollisions2021.log
Expand to see more relval errors ...

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40877/34351

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40877 was updated. @emanueleusai, @cmsbuild, @syuvivida, @rvenditti, @micsucmed, @pmandrik can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Feb 24, 2023

@cmsbuild, please test

@mmusich
Copy link
Contributor Author

mmusich commented Feb 24, 2023

please abort

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40877/34352

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40877 was updated. @emanueleusai, @cmsbuild, @syuvivida, @rvenditti, @micsucmed, @pmandrik can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Feb 24, 2023

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-15e640/30898/summary.html
COMMIT: 4c5640c
CMSSW: CMSSW_13_1_X_2023-02-24-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40877/30898/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 5 lines to the logs
  • Reco comparison results: 9 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3528955
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3528927
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 213 log files, 164 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@emanueleusai
Copy link
Member

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

Copy link
Contributor

@perrotta perrotta left a comment

Choose a reason for hiding this comment

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

These minor points could be left for a follow up update, if deemed worth to

if ((*itJet).pt() > maxJetPt_ && dR < minJetDeltaR)
for (const auto &itJet : *jets) {
jetPt_->Fill(itJet.pt());
dR = deltaR(track, itJet);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor point: deltaR2 is computationally less expensive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but then isn't taking the root moving the expense elsewhere (notice we are interested in dR, not dR2). Or are you suggesting to plot directly dR2?

Copy link
Contributor

Choose a reason for hiding this comment

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

As I said, it is a minor point. But yes, computing the square root only once before filling the histograms is less expensive than having to compute it at every jet or track

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, I admit I misunderstood what you proposed. Here's the requested improvement: #40887.

++track2) {
dR = deltaR((*track), (*track2));
for (const auto &track2 : *trackCollection) {
dR = deltaR(track, track2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor point: deltaR2 is computationally less expensive

void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
void analyze(const edm::Event &, const edm::EventSetup &) override;

private:
static constexpr const double kMuonMass_ = 0.10565836;
Copy link
Contributor

Choose a reason for hiding this comment

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

Ultra minor point: it is funny, there are slightly different values of the muon mass scattered in our code. The PDG value is 0.1056583755, tinily larger than what written here, Lacking a centrally accessible value of it in CMSSW, one could stick on the PDG value

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 would be really glad if we actually had to care about the sub per million differences in the muon mass discrepancy in the di-muon resonance mass that we are monitoring. We have much worse problems than this :D

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 any case done at #40887.

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 8377d6a into cms-sw:master Feb 27, 2023
@mmusich mmusich deleted the modernizeTkAlCaRecoMonitor branch March 6, 2023 09:51
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.

4 participants