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

LowPtElectrons: updates for nano v10 #37137

Merged
merged 7 commits into from
May 17, 2022

Conversation

bainbrid
Copy link
Contributor

@bainbrid bainbrid commented Mar 3, 2022

PR description:

Small devs aimed at low-pT electrons in the future nano v10 production in CMSSW_12_4_X cycle.

  • adds a new LowPtElectron_electronIdx branch that 'cross links' low-pT and PF electrons
  • remove unnecessary tasks (Ereg and ID) for nano v10, while preserving nano v9 functionality

PR validation:

Tested with wfs:

  • 1325.81 (MC, TTbar, 2017) for nano v8
  • 136.8523 (data, RunJetHT2018C) for nano v9
  • 11834.21 (MC, TTbar, 2021) for nano v10

@mariadalfonso @gouskos

@bainbrid
Copy link
Contributor Author

bainbrid commented Mar 3, 2022

The "cross linking" functionality is achieved through a deltaR matching, performed here.

The tight cut of deltaR < 0.001 is motivated by the attached plot, which shows (y-axis) the ratio of pT values from the low-pT electrons and PF electrons vs (x-axis) the log10(deltaR) between the low-pT electron and the closest PF electron, as obtained from several thousand events in MINIAOD format from the wf 136.8523. Good pT matching is achieved for a population in which the deltaR matching is essentially exact, whereas a broad distribution is obtained for larger deltaR values, peaking at a ratio of ~0 for log10(deltaR) > -0.5 (i.e. deltaR > ~0.3). Arguably a tighter cut could be used, but 0.001 seems adequate.

image

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37137/28674

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2022

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

It involves the following packages:

  • PhysicsTools/NanoAOD (xpog)
  • PhysicsTools/PatAlgos (reconstruction)

@gouskos, @clacaputo, @cmsbuild, @fgolf, @slava77, @jpata, @mariadalfonso can you please review it and eventually sign? Thanks.
@AlexDeMoor, @rappoccio, @gouskos, @jdolen, @swertz, @JyothsnaKomaragiri, @ahinzmann, @schoef, @emilbols, @jdamgov, @mbluj, @nhanvtran, @gkasieczka, @hatakeyamak, @gpetruc, @azotz, @mariadalfonso, @demuller, @andrzejnovak, @seemasharmafnal, @mmarionncern 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

@mariadalfonso
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2022

-1

Failed Tests: UnitTests RelVals RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d5533/22817/summary.html
COMMIT: e88fb66
CMSSW: CMSSW_12_3_X_2022-03-03-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37137/22817/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found errors in the following unit tests:

---> test runtestPhysicsToolsNanoAOD had ERRORS

RelVals

----- Begin Fatal Exception 04-Mar-2022 00:08:07 CET-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 3 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module NanoAODDQM/'nanoDQMMC'
   [3] Prefetching for module BTagSFProducer/'btagWeightTable'
   [4] Calling method for module PATObjectCrossLinker/'linkedObjects'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: pat::Electron
Looking for module label: finalLowPtElectrons
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

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

RelVals-INPUT

  • 136.7722136.7722_RunJetHT2016H_nano+RunJetHT2016H_nano+NANOEDM2016_80X+HARVESTNANOAOD2016_80X/step2_RunJetHT2016H_nano+RunJetHT2016H_nano+NANOEDM2016_80X+HARVESTNANOAOD2016_80X.log
  • 136.7952136.7952_RunJetHT2017C_94Xv2NanoAODINPUT+RunJetHT2017C_94Xv2NanoAODINPUT+NANOEDM2017_94XMiniAODv2+HARVESTNANOAOD2017_94XMiniAODv2/step2_RunJetHT2017C_94Xv2NanoAODINPUT+RunJetHT2017C_94Xv2NanoAODINPUT+NANOEDM2017_94XMiniAODv2+HARVESTNANOAOD2017_94XMiniAODv2.log
  • 136.8522136.8522_RunJetHT2018A_nanoUL+RunJetHT2018A_nanoUL+NANOEDM2018_106Xv1+HARVESTNANOAOD2018_106Xv1/step2_RunJetHT2018A_nanoUL+RunJetHT2018A_nanoUL+NANOEDM2018_106Xv1+HARVESTNANOAOD2018_106Xv1.log
Expand to see more relval errors ...

@clacaputo
Copy link
Contributor

clacaputo commented Mar 14, 2022

I wasn't able to reproduce the error. WF 136.8522 runs without problem. I'll trigger the test again

EDIT: Managed to reproduce the error locally

@clacaputo
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests RelVals RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d5533/23107/summary.html
COMMIT: e88fb66
CMSSW: CMSSW_12_4_X_2022-03-14-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37137/23107/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found errors in the following unit tests:

---> test runtestPhysicsToolsNanoAOD had ERRORS

RelVals

----- Begin Fatal Exception 14-Mar-2022 19:41:48 CET-----------------------
An exception of category 'ProductNotFound' occurred while
   [0] Processing  Event run: 1 lumi: 1 event: 3 stream: 0
   [1] Running path 'dqmoffline_step'
   [2] Prefetching for module NanoAODDQM/'nanoDQMMC'
   [3] Prefetching for module BTagSFProducer/'btagWeightTable'
   [4] Calling method for module PATObjectCrossLinker/'linkedObjects'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: pat::Electron
Looking for module label: finalLowPtElectrons
Looking for productInstanceName: 

   Additional Info:
      [a] If you wish to continue processing events after a ProductNotFound exception,
add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

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

RelVals-INPUT

  • 136.7722136.7722_RunJetHT2016H_nano+RunJetHT2016H_nano+NANOEDM2016_80X+HARVESTNANOAOD2016_80X/step2_RunJetHT2016H_nano+RunJetHT2016H_nano+NANOEDM2016_80X+HARVESTNANOAOD2016_80X.log
  • 136.7952136.7952_RunJetHT2017C_94Xv2NanoAODINPUT+RunJetHT2017C_94Xv2NanoAODINPUT+NANOEDM2017_94XMiniAODv2+HARVESTNANOAOD2017_94XMiniAODv2/step2_RunJetHT2017C_94Xv2NanoAODINPUT+RunJetHT2017C_94Xv2NanoAODINPUT+NANOEDM2017_94XMiniAODv2+HARVESTNANOAOD2017_94XMiniAODv2.log
  • 136.8521136.8521_RunJetHT2018A_nano+RunJetHT2018A_nano+NANOEDM2018_102Xv1+HARVESTNANOAOD2018_102Xv1/step2_RunJetHT2018A_nano+RunJetHT2018A_nano+NANOEDM2018_102Xv1+HARVESTNANOAOD2018_102Xv1.log
Expand to see more relval errors ...

@clacaputo
Copy link
Contributor

Hi @bainbrid , all wf for run2_miniAOD_80XLegacy, run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2, run2_nanoAOD_102Xv1, run2_nanoAOD_106Xv1 are failing with this error:

Calling method for module PATObjectCrossLinker/'linkedObjects'
Exception Message:
Principal::getByToken: Found zero products matching all criteria
Looking for a container with elements of type: pat::Electron
Looking for module label: finalLowPtElectrons

Are you looking into this? Thanks

@bainbrid
Copy link
Contributor Author

Hi @clacaputo, I was ... and then I was stalled (by other things). I will try to get back to this next week ...

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37137/29994

@cmsbuild
Copy link
Contributor

Pull request #37137 was updated. @gouskos, @clacaputo, @fgolf, @slava77, @jpata, @mariadalfonso can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d5533/24701/summary.html
COMMIT: 65e9bca
CMSSW: CMSSW_12_4_X_2022-05-12-2300/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37137/24701/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
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3697296
  • DQMHistoTests: Total failures: 30
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3697244
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -12.146 KiB( 48 files compared)
  • DQMHistoSizes: changed ( 1325.81 ): -12.146 KiB Physics/NanoAODDQM
  • Checked 206 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@clacaputo
Copy link
Contributor

+reconstruction

  • re-sign

@gouskos
Copy link
Contributor

gouskos commented May 16, 2022

+xpog
modifications inline with the PR description.
To be followed up: cms-nanoAOD#557 (comment)

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

@perrotta
Copy link
Contributor

+1

  • @bainbrid @cms-sw/xpog-l2 I imagine that a backport to 12_4_X is also needed

@cmsbuild cmsbuild merged commit 3fc01aa into cms-sw:master May 17, 2022
@cmsbuild cmsbuild mentioned this pull request May 17, 2022
@mariadalfonso
Copy link
Contributor

@bainbrid

what about the backport ?

@bainbrid
Copy link
Contributor Author

Ah yes ... will try to do it this week.

@bainbrid
Copy link
Contributor Author

@bainbrid

what about the backport ?

Done, #38152

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.

8 participants