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

More diagnostic plots for CSC trigger primitives in validation step #35329

Merged
merged 14 commits into from Oct 1, 2021
Merged

More diagnostic plots for CSC trigger primitives in validation step #35329

merged 14 commits into from Oct 1, 2021

Conversation

dildick
Copy link
Contributor

@dildick dildick commented Sep 18, 2021

PR description:

New class to plot CSC TP position and bending resolutions in release validation. Plots are made for CLCT bending resolution, and CLCT 1/2-strip, 1/4-strip and 1/8-strip resolution. The latter two only make sense for chambers that have the CCLUT algorithm enabled (MEX/1 in the baseline commissioning model).

I also added diagnostic plots for ALCT, CLCT, CLCT pre-trigger, and LCT for each chamber type and for each endcap (sometimes we see asymmetries in the performance). I borrowed a lot of code from the L1T CSC DQM tools which I wrote earlier this year. I organized the plots by object, and by type of plot, so it's not all in one directory. The screenshot below shows the directory structure (tested on 100 1TeV muon events). Not every object has each type of plot. E.g. I don't have resolution plots for ALCTs.

Screen Shot 2021-09-22 at 4 39 39 PM

This PR is part of an investigation into the EMTF performance for 1 TeV muons with Run-3 CSC trigger primitives.

PR validation:

Ran 1000 events from /RelValSingleMuPt1000/CMSSW_12_0_0_pre4-120X_mcRun3_2021_realistic_v2-v1/GEN-SIM-DIGI-RAW with

cmsRun Validation/MuonCSCDigis/test/runCSCDigiValidation_cfg.py
cmsRun Validation/MuonCSCDigis/test/runCSCDigiHarvesting_cfg.py

Plots should automatically appear in MuonCSCDigisV/CSCDigiTask/Stub/Resolution/. I added a few examples below

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

N.A.

Before submitting your pull requests, make sure you followed this checklist:

FYI @ptcox @AFJohan92

@dildick
Copy link
Contributor Author

dildick commented Sep 18, 2021

Examples of position resolutions (ME1/a and ME1/b are split up)

Screen Shot 2021-09-17 at 10 06 01 PM

Screen Shot 2021-09-17 at 10 06 10 PM

Screen Shot 2021-09-17 at 10 05 54 PM

Screen Shot 2021-09-17 at 10 05 47 PM

Screen Shot 2021-09-17 at 10 05 39 PM

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35329/25374

  • This PR adds an extra 24KB 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-35329/25375

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dildick (Sven Dildick) for master.

It involves the following packages:

  • Validation/MuonCSCDigis (dqm)

@emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please review it and eventually sign? Thanks.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@jfernan2
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals AddOn
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f3372e/18751/summary.html
COMMIT: 036bfec
CMSSW: CMSSW_12_1_X_2021-09-19-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35329/18751/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 20-Sep-2021 09:47:16 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCRecHitValidation label='cscRecHitValidation'
Exception Message:
MissingParameter: ParameterSet 'simTrack' not found.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 20-Sep-2021 09:47:19 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCRecHitValidation label='cscRecHitValidation'
Exception Message:
MissingParameter: ParameterSet 'simTrack' not found.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 20-Sep-2021 09:54:27 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCRecHitValidation label='cscRecHitValidation'
Exception Message:
MissingParameter: ParameterSet 'simTrack' not found.
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

AddOn Tests

----- Begin Fatal Exception 20-Sep-2021 09:47:06 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCRecHitValidation label='cscRecHitValidation'
Exception Message:
MissingParameter: ParameterSet 'simTrack' not found.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 20-Sep-2021 09:47:06 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCRecHitValidation label='cscRecHitValidation'
Exception Message:
MissingParameter: ParameterSet 'simTrack' not found.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 20-Sep-2021 09:47:06 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCRecHitValidation label='cscRecHitValidation'
Exception Message:
MissingParameter: ParameterSet 'simTrack' not found.
----- End Fatal Exception -------------------------------------------------

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35329/25414

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

Pull request #35329 was updated. @emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please check and sign again.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35329/25636

  • This PR adds an extra 80KB to repository

@cmsbuild
Copy link
Contributor

Pull request #35329 was updated. @emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please check and sign again.

@jfernan2
Copy link
Contributor

please test

@dildick
Copy link
Contributor Author

dildick commented Sep 29, 2021

I was able to run WF 11634.0

11634.0_TTbar_14TeV+2021+TTbar_14TeV_TuneCP5_GenSim+Digi+Reco+HARVEST+ALCA Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED Step4-PASSED  - time date Wed Sep 29 11:31:25 2021-date Wed Sep 29 11:13:08 2021; exit: 0 0 0 0 0
1 1 1 1 1 tests passed, 0 0 0 0 0 failed

quartstripbit and eighthstripbit plots were removed.
I added a plot for the pre-CLCT CFEB, but removed pre-CLCT pattern, bending, and quality. Overall, a reduction in number of 108 plots.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f3372e/19251/summary.html
COMMIT: f8bcf35
CMSSW: CMSSW_12_1_X_2021-09-28-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/35329/19251/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f3372e/19251/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f3372e/19251/git-merge-result

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 40
  • DQMHistoTests: Total histograms compared: 3206240
  • DQMHistoTests: Total failures: 27
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3206190
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 3325.803 KiB( 39 files compared)
  • DQMHistoSizes: changed ( 10024.0,... ): 104.390 KiB MuonCSCDigisV/CSCDigiTask
  • DQMHistoSizes: changed ( 11634.0,... ): 207.312 KiB MuonCSCDigisV/CSCDigiTask
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 169 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

+1
~400 new MEs added accounting for ~200KiB in memory, they are needed for trigger primitives validation

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

@dildick
Copy link
Contributor Author

dildick commented Sep 30, 2021

@qliphy Can you sign off, please?

@qliphy
Copy link
Contributor

qliphy commented Oct 1, 2021

+1

@cmsbuild cmsbuild merged commit 253edee into cms-sw:master Oct 1, 2021
@dildick dildick deleted the from-CMSSW_12_1_X_2021-09-16-2300-cscstubresolutionvalidation branch October 1, 2021 02:47
@Dr15Jones
Copy link
Contributor

It seems highly likely that this change introduced a call to a thread-unsafe ROOT function which is causing jobs in the IB RelVals to fail with

----- Begin Fatal Exception 02-Oct-2021 09:15:32 CEST-----------------------
An exception of category 'FatalRootError' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 1 stream: 0
   [1] Running path 'validation_step'
   [2] Calling method for module CSCDigiValidation/'cscDigiValidation'
   Additional Info:
      [a] Fatal Root Error: @SUB=TF1::AddToGlobalList
Function is supposed to be in the global list but it is not present

----- End Fatal Exception -------------------------------------------------

@dildick
Copy link
Contributor Author

dildick commented Oct 2, 2021

@Dr15Jones It's not obvious to me which ROOT function is doing that. If you have an idea, let me know, and I will try to address it.

@Dr15Jones
Copy link
Contributor

The problem is almost certainly here

std::unique_ptr<TF1> fit(new TF1("fit", "pol1", -3, 4));
gr->Fit("fit", "EMQ");

See #18370 for the resolution of the same problem.

@dildick
Copy link
Contributor Author

dildick commented Oct 4, 2021

I will submit a fix.

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