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

Including short tracks resolution method in DQM #43613

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

borzari
Copy link
Contributor

@borzari borzari commented Dec 20, 2023

PR description:

This PR implements a data-driven method to artificially shorten muon tracks to assess the tracking pT resolution of short tracks.

It relies on shortening the muon tracks by creating track candidates with new hit collections that have the outermost hits removed from the original collection. The new track candidates are refitted to calculate the pT resolution, defined as pT short track / pT of long track. Currently, tracks are being shortened to have 3 to 8 layers, with no missing middle layers. The pT resolution histograms have been included in the tracking DQM sequence, and will also be included in the DQM GUI offline tracking layout.

The latest presentation about this work can be found here, and contains links to older presentations as well.

PR validation:

The shortening procedure was verified in CMSSW 13_1_0_pre2 with MC events using RelValZMM_14 dataset with and without PU, and with events from collected data using Run 3 Muon_2022G dataset. It works as intended and provides the pT resolution histograms following the expectations.

The complete set of changes comprising the inclusion of the tracks shortening module in the DQM sequence and the creation of the histograms inside the DQM root file was checked in CMSSW 14_0_0_pre0 with runTheMatrix workflows 11650.0 (Run 3 ZMM) to check that the shortening procedure worked as expected and that the histograms were added to the DQM root file, and 11634.0 (Run 3 ttbar) to ensure that the DQM step throughput wouldn't be affected in processes having few muon tracks. Both checks were successful.

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 20, 2023

cms-bot internal usage

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43613/38263

  • This PR adds an extra 64KB to repository

  • Found files with invalid states:

    • RecoTracker/FinalTrackSelectors/test/Alignment_Tracker_DataMCValidation_Harvest_cfg.py:
    • RecoTracker/FinalTrackSelectors/python/SingleLongTrackProducer_cfi.py:
    • RecoTracker/FinalTrackSelectors/python/SingleLongTrackSeq_cff.py:
    • RecoTracker/FinalTrackSelectors/test/filesData.txt:
    • RecoTracker/FinalTrackSelectors/plugins/LongTrackFilter.cc:
    • RecoTracker/FinalTrackSelectors/test/AOD_Alignment_Tracker_DataMCValidation_cfg.py:
    • DQM/TrackingMonitorSource/interface/ShortenedTrackResolution.h:
    • RecoTracker/FinalTrackSelectors/test/runAllAlignment.py:
    • RecoTracker/FinalTrackSelectors/test/filesDataAOD.txt:
    • RecoTracker/FinalTrackSelectors/python/singleLongTrackProducer_cfi.py:

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-43613/38264

  • This PR adds an extra 68KB to repository

  • Found files with invalid states:

    • RecoTracker/FinalTrackSelectors/test/Alignment_Tracker_DataMCValidation_Harvest_cfg.py:
    • RecoTracker/FinalTrackSelectors/python/SingleLongTrackProducer_cfi.py:
    • RecoTracker/FinalTrackSelectors/python/SingleLongTrackSeq_cff.py:
    • RecoTracker/FinalTrackSelectors/test/filesData.txt:
    • RecoTracker/FinalTrackSelectors/plugins/LongTrackFilter.cc:
    • RecoTracker/FinalTrackSelectors/test/AOD_Alignment_Tracker_DataMCValidation_cfg.py:
    • DQM/TrackingMonitorSource/interface/ShortenedTrackResolution.h:
    • RecoTracker/FinalTrackSelectors/test/runAllAlignment.py:
    • RecoTracker/FinalTrackSelectors/test/filesDataAOD.txt:
    • RecoTracker/FinalTrackSelectors/python/singleLongTrackProducer_cfi.py:

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @borzari for master.

It involves the following packages:

  • DQM/TrackingMonitorSource (dqm)
  • RecoTracker/FinalTrackSelectors (reconstruction)

@syuvivida, @tjavaid, @cmsbuild, @nothingface0, @antoniovagnerini, @jfernan2, @mandrenguyen, @rvenditti can you please review it and eventually sign? Thanks.
@arossi83, @rovere, @felicepantaleo, @sroychow, @fioriNTU, @idebruyn, @dgulhan, @jandrea, @mtosi, @mmusich, @gpetruc, @GiacomoSguazzoni, @JanFSchulte, @threus, @VinInn, @missirol, @VourMa this is something you requested to watch as well.
@sextonkennedy, @rappoccio, @antoniovilela you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Dec 20, 2023

@cmsbuild please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8c6f42/36594/summary.html
COMMIT: 37baa71
CMSSW: CMSSW_14_0_X_2023-12-19-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/43613/36594/install.sh to create a dev area with all the needed externals and cmssw changes.

Clang Build

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 8, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43613/38354

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 8, 2024

Pull request #43613 was updated. @mandrenguyen, @tjavaid, @cmsbuild, @rvenditti, @jfernan2, @syuvivida, @nothingface0, @antoniovagnerini can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Jan 8, 2024

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 8, 2024

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8c6f42/36741/summary.html
COMMIT: f61b144
CMSSW: CMSSW_14_0_X_2024-01-08-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43613/36741/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3247277
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3247252
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 34.181999999999974 KiB( 47 files compared)
  • DQMHistoSizes: changed ( 1000.0,... ): 1.266 KiB Tracking/ShortTrackResolution
  • Checked 200 log files, 161 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

jfernan2 commented Jan 9, 2024

+1

@mmusich
Copy link
Contributor

mmusich commented Jan 10, 2024

@cms-sw/dqm-l2 ping.

@tjavaid
Copy link

tjavaid commented Jan 12, 2024

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

@rappoccio
Copy link
Contributor

+1

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.

7 participants