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

Fix deg to rad conversion in L1TkMuonProducer ("ManTra" version) for HLT TDR [11_2_X] #31341

Merged
merged 2 commits into from Sep 8, 2020
Merged

Fix deg to rad conversion in L1TkMuonProducer ("ManTra" version) for HLT TDR [11_2_X] #31341

merged 2 commits into from Sep 8, 2020

Conversation

dildick
Copy link
Contributor

@dildick dildick commented Sep 3, 2020

PR description:

An inefficiency was reported for the L1TkMu object in recently produced samples (including /DYToLL_M-50_TuneCP5_14TeV-pythia8/Phase2HLTTDRSummer20ReRECOMiniAOD-NoPU_pilot_111X_mcRun4_realistic_T15_v1-v1/FEVT) for the HLT TDR. Per @l-cadamuro 's suggestion I changed the deg_to_rad function back to the definition in https://github.com/cms-l1t-offline/cmssw/blob/l1t-phase2-v2.37.2/L1Trigger/L1TTrackMatch/interface/L1TkMuMantra.h#L85.

PR validation:

Tested the TP, DynamicWindows and ManTra versions on 2900 events in /store/mc/Phase2HLTTDRSummer20ReRECOMiniAOD/DYToLL_M-50_TuneCP5_14TeV-pythia8/FEVT/NoPU_pilot_111X_mcRun4_realistic_T15_v1-v1/100000/FE80A42E-0B59-FD45-A1E5-56A34EFA3DB9.root. Tested the ManTra version again after the fix on the same sample. Efficiency plots can be found here: https://its.cern.ch/jira/browse/CMSLITDPG-908. This largely fixes the issue, though a substantial drop can be seen near |eta|~1.6.

ManTra before fix:

ManTra after fix:

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

May need to be backported to 11_1_X

FYI @l-cadamuro @rekovic @BenjaminRS

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

The code-checks are being triggered in jenkins.

@dildick
Copy link
Contributor Author

dildick commented Sep 3, 2020

@cmsbuild urgent

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31341/18113

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

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

It involves the following packages:

L1Trigger/L1TTrackMatch

@cmsbuild, @rekovic, @benkrikler, @kpedro88 can you please review it and eventually sign? Thanks.
@Martin-Grunewald this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@dpiparo
Copy link
Contributor

dpiparo commented Sep 3, 2020

sorry, I commented on the backport: the very same routine seems to be available here: https://cmssdt.cern.ch/lxr/source/DataFormats/Math/interface/angle_units.h

@dildick
Copy link
Contributor Author

dildick commented Sep 3, 2020

@l-cadamuro, can you comment on @dpiparo's question?

@l-cadamuro
Copy link
Contributor

Hi @dpiparo, no specific reason, it's just that when porting that code to CMSSW it was not modified to use the angle_units class (plus I was unaware of the existence of that routine).
No preference for me on whether keeping the code as is now or update it to use that method, they implement exactly the same operation

@silviodonato
Copy link
Contributor

I would go ahead with the current fix and I would ask @dildick / @l-cadamuro / @rekovic to make a general cleaning of deg_to_rad and of rad_to_deg in L1T code (no backport is needed)

https://cmssdt.cern.ch/lxr/search?%21v=CMSSW_11_2_X_2020-09-02-2300&_filestring=&_string=deg_to_rad
https://cmssdt.cern.ch/lxr/search?%21v=CMSSW_11_2_X_2020-09-02-2300&_filestring=&_string=rad_to_deg

@silviodonato
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

+1
Tested at: a9ab4f4
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ff6182/9101/summary.html
CMSSW: CMSSW_11_2_X_2020-09-03-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

Comparison job queued.

@davidlange6
Copy link
Contributor

davidlange6 commented Sep 3, 2020 via email

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ff6182/9101/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2609667
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2609644
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@dildick
Copy link
Contributor Author

dildick commented Sep 4, 2020

@silviodonato For changes to EMTF, @jiafulow is probably the right person to do this. @jiafulow A proposal: https://gist.github.com/dildick/dcd2240c164f3c9b695b58ad0f6d06b5.

@dildick dildick changed the title Fix deg to rad conversion in L1TkMuonProducer ("ManTra" version) for HLT TDR Fix deg to rad conversion in L1TkMuonProducer ("ManTra" version) for HLT TDR [11_2_X] Sep 4, 2020
@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2020

+1
Tested at: ab1423a
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ff6182/9127/summary.html
CMSSW: CMSSW_11_2_X_2020-09-04-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ff6182/9127/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2609667
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2609644
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@rekovic
Copy link
Contributor

rekovic commented Sep 7, 2020

+1

@rekovic
Copy link
Contributor

rekovic commented Sep 7, 2020

@dildick @l-cadamuro Thanks.
Once merged, please provide a backport to 11_1_X.

@dildick
Copy link
Contributor Author

dildick commented Sep 7, 2020

Thanks Vladimir. Please see #31342 for the 11_1_X version.

@kpedro88
Copy link
Contributor

kpedro88 commented Sep 8, 2020

+upgrade

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 8, 2020

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

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 1876cc3 into cms-sw:master Sep 8, 2020
@silviodonato
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ff6182/9127/summary.html

Comparison Summary:

* No significant changes to the logs found

* Reco comparison results: 0 differences found in the comparisons

* DQMHistoTests: Total files compared: 35

* DQMHistoTests: Total histograms compared: 2609667

* DQMHistoTests: Total failures: 1

* DQMHistoTests: Total nulls: 0

* DQMHistoTests: Total successes: 2609644

* DQMHistoTests: Total skipped: 22

* DQMHistoTests: Total Missing objects: 0

* DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)

* Checked 149 log files, 22 edm output root files, 35 DQM output files

@rekovic @dildick this remind us that we definitely need a DQM for the phase-2 L1T!

@dildick dildick deleted the from-CMSSW_11_2_X_2020-09-02-2300-fix-deg-to-rad-conversion branch September 8, 2020 21:25
@dildick dildick restored the from-CMSSW_11_2_X_2020-09-02-2300-fix-deg-to-rad-conversion branch September 9, 2020 15:30
@dildick dildick deleted the from-CMSSW_11_2_X_2020-09-02-2300-fix-deg-to-rad-conversion branch September 9, 2020 16:54
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

8 participants