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: support for UL re-MINIAOD and BParking UL RE-RECO #33725

Merged
merged 9 commits into from Jun 3, 2021

Conversation

bainbrid
Copy link
Contributor

@bainbrid bainbrid commented May 13, 2021

PR description:

  • This PR adds the missing recoGsfElectrons_lowPtGsfElectronsPreRegression collection to AOD.

  • This PR provides support for the re-MINIAOD of both non-bParking (i.e. standard) and BParking Ultra Legacy RECO/AOD samples produced in 10_6_X. It schedules the application of energy regression and the 2020Nov28 ID model by using the modifier logic run2_miniAOD_UL.

  • This PR raises the minimum pT of input tracks considered by the ElectronSeed step from 0.5 to 1.0 GeV for the bParking era. Performance details are provided in the PR description for LowPtElectrons: final energy regression and ID (back port of 32391) #33589. This change and it's motivation was presented recently to XPOG, slides 8 and 9.

  • This PR adds a new ID weights file (2021May17) for use with a BParking UL re-RECO or re-MINIAOD campaign. There is no appreciable CPU load (w.r.t. the original model), the memory footprint will reduce (due to the smaller weights file), and the RECO/AOD event size is unaffected. The 2021May17 performance can be found in the right plot of slide 5 here.

All non-RECO related changes listed above are included in the 10_6_X back port PR #33589.

This PR depends on cms-data/RecoEgamma-ElectronIdentification#21, which adds the weights file for the 2021May17 model.

PR validation:

  • This PR has been tested locally with wfs 1304.182, 1325.518, 136.88811, 136.898.
  • The behaviour for the "no-change policy" logic (~bParking & run2_miniAOD_UL) has also been tested locally.

@bainbrid
Copy link
Contributor Author

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33725/22658

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

PhysicsTools/PatAlgos
RecoEgamma/Configuration
RecoEgamma/EgammaElectronProducers

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@emilbols, @gouskos, @jainshilpi, @hatakeyamak, @rappoccio, @mbluj, @varuns23, @seemasharmafnal, @mmarionncern, @ahinzmann, @lgray, @jdolen, @ferencek, @Sam-Harper, @rovere, @jdamgov, @nhanvtran, @gkasieczka, @schoef, @mariadalfonso, @clelange, @swozniewski, @JyothsnaKomaragiri, @sobhatta, @lecriste, @afiqaize, @gpetruc, @andrzejnovak, @ram1123 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

@slava77
Copy link
Contributor

slava77 commented May 14, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals RelVals-INPUT AddOn
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e9d220/15081/summary.html
COMMIT: 7c83ec0
CMSSW: CMSSW_12_0_X_2021-05-13-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 14-May-2021 02:52:35 CEST-----------------------
An exception of category 'FileInPathError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCTriggerPrimitivesProducer label='simCscTriggerPrimitiveDigis'
Exception Message:
edm::FileInPath unable to find file L1Trigger/CSCTriggerPrimitives/data/GEMCSC/GEMCSCLUT_pad_hs_ME1a_even.txt anywhere in the search path.
The search path is defined by: CMSSW_SEARCH_PATH
${CMSSW_SEARCH_PATH} is: /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/poison:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data
Current directory is: /data/cmsbld/jenkins/workspace/ib-run-pr-relvals/runTheMatrix-results/312.0_Pyquen_ZeemumuJets_pt10_2760GeV_2021+Pyquen_ZeemumuJets_pt10_2760GeV_2021+DIGIHI2021MIX+RECOHI2021MIX+HARVESTHI2021PPRECO
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 14-May-2021 03:03:51 CEST-----------------------
An exception of category 'FileInPathError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCTriggerPrimitivesProducer label='simCscTriggerPrimitiveDigis'
Exception Message:
edm::FileInPath unable to find file L1Trigger/CSCTriggerPrimitives/data/GEMCSC/GEMCSCLUT_pad_hs_ME1a_even.txt anywhere in the search path.
The search path is defined by: CMSSW_SEARCH_PATH
${CMSSW_SEARCH_PATH} is: /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/poison:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data
Current directory is: /data/cmsbld/jenkins/workspace/ib-run-pr-relvals/runTheMatrix-results/11634.0_TTbar_14TeV+2021+TTbar_14TeV_TuneCP5_GenSim+Digi+Reco+HARVEST+ALCA
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 14-May-2021 03:03:52 CEST-----------------------
An exception of category 'FileInPathError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCTriggerPrimitivesProducer label='simCscTriggerPrimitiveDigis'
Exception Message:
edm::FileInPath unable to find file L1Trigger/CSCTriggerPrimitives/data/GEMCSC/GEMCSCLUT_pad_hs_ME1a_even.txt anywhere in the search path.
The search path is defined by: CMSSW_SEARCH_PATH
${CMSSW_SEARCH_PATH} is: /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/poison:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data
Current directory is: /data/cmsbld/jenkins/workspace/ib-run-pr-relvals/runTheMatrix-results/12434.0_TTbar_14TeV+2023+TTbar_14TeV_TuneCP5_GenSim+Digi+Reco+HARVEST+ALCA
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

RelVals-INPUT

  • 11601.011601.0_SingleElectronPt10+2021+SingleElectronPt10_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA/step2_SingleElectronPt10+2021+SingleElectronPt10_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA.log
  • 11602.011602.0_SingleElectronPt35+2021+SingleElectronPt35_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA/step2_SingleElectronPt35+2021+SingleElectronPt35_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA.log
  • 11604.011604.0_SingleGammaPt10+2021+SingleGammaPt10_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA/step2_SingleGammaPt10+2021+SingleGammaPt10_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA.log
Expand to see more relval errors ...

AddOn Tests

----- Begin Fatal Exception 14-May-2021 02:43:27 CEST-----------------------
An exception of category 'FileInPathError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=CSCTriggerPrimitivesProducer label='simCscTriggerPrimitiveDigis'
Exception Message:
edm::FileInPath unable to find file L1Trigger/CSCTriggerPrimitives/data/GEMCSC/GEMCSCLUT_pad_hs_ME1a_even.txt anywhere in the search path.
The search path is defined by: CMSSW_SEARCH_PATH
${CMSSW_SEARCH_PATH} is: /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/poison:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15081/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/src:/cvmfs/cms-ib.cern.ch/week0/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-05-13-1100/external/slc7_amd64_gcc900/data
Current directory is: /data/cmsbld/jenkins/workspace/ib-run-pr-addon/addOnTests/hlt_data_PRef
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 14-May-2021 02:44:01 CEST-----------------------
An exception of category 'FileOpenError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing input source of type PoolSource
   [2] Calling RootInputFileSequence::initTheFile()
   [3] Calling StorageFactory::open()
   [4] Calling File::sysopen()
Exception Message:
Failed to open the file 'RelVal_Raw_PRef_MC.root'
   Additional Info:
      [a] Input file file:RelVal_Raw_PRef_MC.root could not be opened.
      [b] open() failed with system error 'No such file or directory' (error code 2)
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 14-May-2021 02:44:18 CEST-----------------------
An exception of category 'FileOpenError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing input source of type PoolSource
   [2] Calling RootInputFileSequence::initTheFile()
   [3] Calling StorageFactory::open()
   [4] Calling File::sysopen()
Exception Message:
Failed to open the file 'RelVal_Raw_PRef_DATA.root'
   Additional Info:
      [a] Input file file:RelVal_Raw_PRef_DATA.root could not be opened.
      [b] open() failed with system error 'No such file or directory' (error code 2)
----- End Fatal Exception -------------------------------------------------
Expand to see more addon errors ...

@perrotta
Copy link
Contributor

@cmsbuild please test
(CMSSW_12_0_X_2021-05-13-2300 shouldn't show those errors)

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e9d220/15082/summary.html
COMMIT: 7c83ec0
CMSSW: CMSSW_12_0_X_2021-05-13-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33725/15082/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: 7 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2648242
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2648207
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 36 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 155 log files, 37 edm output root files, 37 DQM output files
  • TriggerResults: no differences found

@bainbrid bainbrid changed the title LowPtElectrons: support for UL re-miniAOD; bParking track pT threshold LowPtElectrons: support for UL re-MINIAOD and BParking UL RE-RECO May 27, 2021
@bainbrid
Copy link
Contributor Author

Hi @slava77 the updates today to this PR reflect the changes noted. #33589 (comment) to maintain consistency b/w 10_6_X and master.

# Append to Task
run2_miniAOD_UL.toReplaceWith(makePatLowPtElectronsTask,_makePatLowPtElectronsTask)

(~bParking & run2_miniAOD_UL).toReplaceWith(makePatLowPtElectronsTask,_makePatLowPtElectronsTask)
Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like this update assumes that bParking UL AOD is made with a correct ID.
I guess this reconfiguration is perhaps pending resolution of actually deploying LowPtElectrons/LowPtElectrons_ID_2021May17.root in the UL bParking production

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I understand you correctly, you're saying that the logic above implicitly assumes the the BParking UL RE-RECO will use May17, and so nothing is required on the part of re-miniAOD (to e.g. update the ID).

If so, you are correct and I am updating the back port now with the logic for (bParking & run2_miniAOD_UL) that will indeed rerun the ID (May17). This change will be added to this PR.

@slava77
Copy link
Contributor

slava77 commented May 27, 2021

Hi @slava77 the updates today to this PR reflect the changes noted. #33589 (comment) to maintain consistency b/w 10_6_X and master.

sorry, I'm missing an update in this PR.
I see that the title was changed and cms-data/RecoEgamma-ElectronIdentification#21 mentioned this PR, but there were no visible updates here (yet).

Co-authored-by: Slava Krutelyov <slava77@gmail.com>
@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 2, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33725/23039

  • This PR adds an extra 12KB to repository

  • Found files with invalid states:

    • RecoEgamma/EgammaElectronProducers/python/lowPtGsfElectronID_cff.py:
  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 2, 2021

Pull request #33725 was updated. @perrotta, @jpata, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Jun 2, 2021

test parameters:

@slava77
Copy link
Contributor

slava77 commented Jun 2, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e9d220/15576/summary.html
COMMIT: c91e0e9
CMSSW: CMSSW_12_0_X_2021-06-02-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33725/15576/install.sh to create a dev area with all the needed externals and cmssw changes.

CMS Clang-Tidy warnings: There are Clang-Tidy warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e9d220/15576/llvm-analysis/cmsclangtidy.txt for details.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2650486
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2650457
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 36 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 155 log files, 37 edm output root files, 37 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Jun 3, 2021

+reconstruction

for #33725 c91e0e9

  • code changes are in line with the PR description and the follow up review:
  • jenkins tests pass and comparisons with the baseline show no differences (the bParking workflow is not in the cms-bot tests)
  • local test with 136.898 (bParking rereco from RAW) show 40-50% reduction in products related to lowPt electrons due to the increased pt requirement
    • total CPU cost of the reco step in 136.898 is down by 12% , driven by close to a factor of 2 reduction in modules matching lowPtGsf*|owPtEle*|gsfTracksOpen* name pattern
    • output size is down by about 4% in AOD format

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2021

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)

@qliphy
Copy link
Contributor

qliphy commented Jun 3, 2021

+1

@cmsbuild cmsbuild merged commit 67f6b89 into cms-sw:master Jun 3, 2021
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