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

[Tracker Alignment] Miscellanea graphical fixes for PV-related validations #36236

Merged
merged 3 commits into from Nov 24, 2021

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Nov 24, 2021

PR description:

Follow-up of PR #36178, fixes an off-by-one bin mistake in the population of the Split Vertex resolution plots.
I profit to fix a couple of other bug in the FitPVResiduals.C macro.

PR validation:

Private. Tested on 2021 Beam Test data, see e.g. here
image

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

Not a backport, but will need to be backported together with #36178

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36236/26868

  • This PR adds an extra 60KB to repository

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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36236/26869

  • This PR adds an extra 60KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • Alignment/OfflineValidation (alca)

@cmsbuild, @malbouis, @tvami, @yuanchao, @francescobrivio can you please review it and eventually sign? Thanks.
@mmusich, @adewit, @tocheng, @tlampen 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

@mmusich
Copy link
Contributor Author

mmusich commented Nov 24, 2021

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-039795/20741/summary.html
COMMIT: c775a2c
CMSSW: CMSSW_12_2_X_2021-11-23-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36236/20741/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: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 42
  • DQMHistoTests: Total histograms compared: 3247025
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3247003
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 41 files compared)
  • Checked 177 log files, 37 edm output root files, 42 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Nov 24, 2021

+alca

  • tests pass

@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)

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.

@mmusich take the following as comments that you can take into account if you plan to further update/fix the code.

@@ -335,17 +335,17 @@ void FitPVResolution(TString namesandlabels, TString theDate = "", bool isStrict
}

// max vertices
const int max_n_vertices = std::min(40, VTXBINS); // take the minimum to avoid overflow
const int max_n_vertices = std::min(60, VTXBINS); // take the minimum to avoid overflow
std::vector<float> myNVtx_bins_;
for (float i = 0; i <= max_n_vertices; i++) {
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
for (float i = 0; i <= max_n_vertices; i++) {
for (float i = 0; i < max_n_vertices + 0.5f ; i++) {

(I wouldn't trust a check of equalities between float's...)

}

// max track
const int max_n_tracks = std::min(60, TRACKBINS); // take the minimum to avoid overflow
const int max_n_tracks = std::min(120, TRACKBINS); // take the minimum to avoid overflow
std::vector<float> myNTrack_bins_;
for (float i = 0; i <= max_n_tracks; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -295,12 +296,55 @@ SplitVertexResolution::SplitVertexResolution(const edm::ParameterSet& iConfig)

mypT_bins_ = PVValHelper::makeLogBins<float, nPtBins_>(sumpTStartScale_, sumpTEndScale_);

std::vector<float> vect = PVValHelper::generateBins(nTrackBins_ + 1, 1., 120.);
// IMPORTANT
// first argument is start, second argument is the range so it's [-0.5;nTracksBins_-0.5]
Copy link
Contributor

Choose a reason for hiding this comment

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

There are three arguments in fact: I guess the comment can be made more clear...

vect = PVValHelper::generateBins(nVtxBins_ + 1, 1., 40.);

// IMPORTANT
// first argument is start, second argument is the range so it's [-0.5;nVtxBins_-0.5]
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit eb09d70 into cms-sw:master Nov 24, 2021
mmusich added a commit to mmusich/cmssw that referenced this pull request Nov 25, 2021
@aandvalenzuela
Copy link
Contributor

Hello @mmusich,

Could it be that changes in this PR broke Unit Test testPVPlotting (Aligment/OfflineValidation) on el8_ppc64le_gcc11. It has been failing in IBs since a few days (https://cmssdt.cern.ch/SDT/cgi-bin/logreader/el8_ppc64le_gcc11/CMSSW_13_0_X_2022-12-12-2300/unitTestLogs/Alignment/OfflineValidation#/15100-15100).

Thank you,
Andrea.

@mmusich
Copy link
Contributor Author

mmusich commented Dec 13, 2022

@aandvalenzuela this PR is more than 1 year old....

@aandvalenzuela
Copy link
Contributor

Ups, sorry I completely overlooked the year. I will open a new issue for this failure

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