Skip to content

Validation/SiTrackerPhase2V: Streamline validation code and add necessary histograms#50502

Draft
brandiskip wants to merge 32 commits intocms-sw:masterfrom
brandiskip:work_branch
Draft

Validation/SiTrackerPhase2V: Streamline validation code and add necessary histograms#50502
brandiskip wants to merge 32 commits intocms-sw:masterfrom
brandiskip:work_branch

Conversation

@brandiskip
Copy link
Contributor

@brandiskip brandiskip commented Mar 23, 2026

Replaced Phase2OTHarvestStub.cc with the Python configuration Phase2OTEffClient_cff.py to calculate efficiencies using DQMGenericClient::computeEfficiency.

Updated TrackerPhase2HistUtil.h with new helper functions for booking and filling resolution histograms, which removes hundreds of lines of repetitive C++ code.

Added event weights to Phase2OTValidateStub.cc.

Added new histograms for the number of stubs, Delta r (for 2S and PS modules), and Delta bend (for 2S and PS modules in the barrel and endcaps).

Organized the stub directory structure by moving 40 detailed residual histograms into a new Residual/Detailed subfolder. Users will see the new stub histograms in the DQM output. The detailed residual plots are now nested under the Residual/Detailed directory to declutter the main DQM workspace.

For more details, see slides found here. Overall, this PR eliminates a few thousand lines of code by using DQMGenericClient and C++ helper functions to reduce redundancy.

Histograms can be reviewed here under TrackerPhase2OTL1TrackV and TrackerPhase2OTStubV.

PR validation:
scram build code-checks
scram build code-format

@cmsbuild cmsbuild added this to the CMSSW_16_1_X milestone Mar 23, 2026
@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 23, 2026

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@brandiskip brandiskip marked this pull request as ready for review March 23, 2026 22:58
@brandiskip brandiskip marked this pull request as draft March 23, 2026 22:59
@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-50502/48668

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

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #50502 was updated.

trackParts_Eta = book1DFromPS(iBooker, "trackParts_Eta", psTrackParts_Eta, "#eta", "# tracking particles");
trackParts_Phi = book1DFromPS(iBooker, "trackParts_Phi", psTrackParts_Phi, "#phi", "# tracking particles");
trackParts_Num =
book1DFromPS(iBooker, "trackParts_Num", n_trackParticles, "# track particles per event", "# tracking particles");
Copy link
Contributor

Choose a reason for hiding this comment

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

Checking this branch using the RelVal GUI, n_trackParts has been renamed trackParts_Num which is preventing it showing up in the Quick Collection. I actually think that trackParts_Num is the better name for this histogram, so I am open to changing the DQMGUI PR to pick this one up. I'll ping it up on mattermost.

Image Image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @ljuckett, I did change the name to fit with the naming conventions of other track params

Copy link
Contributor

Choose a reason for hiding this comment

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

DQMGUI PR updated

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.

3 participants