Skip to content

fix:Duplicate DeepCSV path removal, onnx model update #48256

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

uttiyasarkar
Copy link
Contributor

PR description:

Following the presentation in HLT upgrade meeting here dated 03.06.2025, we spotted a bug on the current Phase-2 DeepJet onnx model.
It has a missing Softmax layer in the last step.
The PR is created in cms-data with the fixed model: here
Accordingly, the path names are updated in the python modules.

This PR also includes the removal of "duplicate" BTV paths from the HLT Phase2 simplified menu. Specifically:

These are same as DeepFlavour. These DeepCSV paths have already been removed from the timing variant of the simplified Menu.
This change makes the the simplified menu aligned to the timing variant.

PR validation:

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2025

@uttiyasarkar, CMSSW_15_1_X branch is closed for direct updates. cms-bot is going to move this PR to master branch.
In future, please use cmssw master branch to submit your changes.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2025

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48256/45072

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2025

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

It involves the following packages:

  • HLTrigger/Configuration (hlt)

@Martin-Grunewald, @cmsbuild, @mmusich can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @SohamBhattacharya, @VourMa, @missirol, @mmusich, @rovere this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor

mmusich commented Jun 5, 2025

@uttiyasarkar don't forget to remove the paths also from the schedule:

fragment.HLT_PFHT330PT30_QuadPFPuppiJet_75_60_45_40_TriplePFPuppiBTagDeepCSV_2p4,
fragment.HLT_PFHT200PT30_QuadPFPuppiJet_70_40_30_30_TriplePFPuppiBTagDeepCSV_2p4,

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2025

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48256/45073

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2025

Pull request #48256 was updated. @Martin-Grunewald, @cmsbuild, @mmusich can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Jun 5, 2025

test parameters:

@mmusich
Copy link
Contributor

mmusich commented Jun 5, 2025

I am going to wait for the next IB to trigger the tests, to allow having #48253 in the baseline.

@mmusich
Copy link
Contributor

mmusich commented Jun 6, 2025

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 6, 2025

+1

Size: This PR adds an extra 44KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f4cd1f/46574/summary.html
COMMIT: c1b43e4
CMSSW: CMSSW_15_1_X_2025-06-05-2300/el8_amd64_gcc12
Additional Tests: HLT_P2_INTEGRATION,HLT_P2_TIMING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/48256/46574/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-f4cd1f/46574/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f4cd1f/46574/git-merge-result

Comparison Summary

Summary:

  • You potentially added 19 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 74 differences found in the comparisons
  • DQMHistoTests: Total files compared: 60
  • DQMHistoTests: Total histograms compared: 4304812
  • DQMHistoTests: Total failures: 26
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4304766
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 59 files compared)
  • Checked 249 log files, 210 edm output root files, 60 DQM output files
  • TriggerResults: found differences in 13 / 58 workflows

@mmusich
Copy link
Contributor

mmusich commented Jun 9, 2025

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 9, 2025

+1

Size: This PR adds an extra 16KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f4cd1f/46606/summary.html
COMMIT: c1b43e4
CMSSW: CMSSW_15_1_X_2025-06-08-2300/el8_amd64_gcc12
Additional Tests: HLT_P2_INTEGRATION,HLT_P2_TIMING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/48256/46606/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-f4cd1f/46606/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f4cd1f/46606/git-merge-result

Comparison Summary

There are some workflows for which there are errors in the baseline:
29634.757 step 2
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • You potentially added 50 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 72 differences found in the comparisons
  • DQMHistoTests: Total files compared: 60
  • DQMHistoTests: Total histograms compared: 4304812
  • DQMHistoTests: Total failures: 16
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4304776
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 59 files compared)
  • Checked 249 log files, 210 edm output root files, 60 DQM output files
  • TriggerResults: found differences in 13 / 58 workflows

@mmusich
Copy link
Contributor

mmusich commented Jun 9, 2025

Timing change is negligible:

Baseline This PR
Screenshot from 2025-06-09 13-22-22 Screenshot from 2025-06-09 13-22-08

@mmusich
Copy link
Contributor

mmusich commented Jun 9, 2025

I tried the nanoAOD infrastructure introduce by @elenavernazza at #48091 using the following command:

#!/bin/bash -ex

FILES='file:/eos/cms/store/relval/CMSSW_15_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_150X_mcRun4_realistic_v1_STD_Run4D110_PU-v1/2590000/e84a1036-8765-44b5-bf8b-0cb1e4e5cd15.root,file:/eos/cms/store/
relval/CMSSW_15_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_150X_mcRun4_realistic_v1_STD_Run4D110_PU-v1/2590000/eaf3b2fc-1fc3-47fc-999f-764b98a7e808.root,file:/eos/cms/store/relval/CMSSW_15_1_0_pre3/Re
lValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_150X_mcRun4_realistic_v1_STD_Run4D110_PU-v1/2590000/eb1c9fb1-1f11-4ec5-88de-ea710dffcc43.root,file:/eos/cms/store/relval/CMSSW_15_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-DIG
I-RAW/PU_150X_mcRun4_realistic_v1_STD_Run4D110_PU-v1/2590000/ef0c6943-4a9b-4eb8-bf1c-44bcad41d9e6.root,file:/eos/cms/store/relval/CMSSW_15_1_0_pre3/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_150X_mcRun4_realis
tic_v1_STD_Run4D110_PU-v1/2590000/f5197ef6-f432-4b4c-a61a-9dd570c9167c.root'

# generate the command
cmsDriver.py Phase2 -s L1P2GT,HLT:NGTScouting,NANO:@NGTScouting \
             --processName=HLTX \
             --conditions auto:phase2_realistic_T33 \
             --geometry ExtendedRun4D110 \
             --era Phase2C17I13M9 \
             --customise SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000 \
             --datatier NANOAODSIM \
             --eventcontent NANOAODSIM \
             --filein=$FILES \
             --mc \
             --inputCommands="keep *, drop *_hlt*_*_HLT, drop triggerTriggerFilterObjectWithRefs_l1t*_*_HLT" \
             -n -1 \
	     --customise_commands='process.options.wantSummary = True' \
             --nThreads 24 \
	     --no_exec

cmsRun Phase2_L1P2GT_HLT_NANO.py &> hlt.log

Here are the results I obtain for the probb score variable

DeepFlavour_prob_b = ExtVar(cms.InputTag("hltPfDeepFlavourJetTags:probb"), float, doc="DeepFlavour probability of b", precision=10),

This seems to be inline with the results shown at the HLT ugprade meeting of June 3rd, 2025

@mmusich
Copy link
Contributor

mmusich commented Jun 9, 2025

+hlt

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 9, 2025

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, @sextonkennedy, @antoniovilela, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)
Notice This PR was tested with additional Pull Request(s), please also merge them if necessary: cms-data/RecoBTag-Combined#69

@mmusich
Copy link
Contributor

mmusich commented Jun 9, 2025

type bug-fix

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 03f77d9 into cms-sw:master Jun 10, 2025
13 checks passed
@sinonkt sinonkt mentioned this pull request Jun 10, 2025
3 tasks
@rovere
Copy link
Contributor

rovere commented Jun 11, 2025

Timing change is negligible:
Baseline This PR
Screenshot from 2025-06-09 13-22-22 Screenshot from 2025-06-09 13-22-08

For the record: there is no visible change in timing because the DeepCSV paths were already removed from the timing menu long ago.

@mmusich
Copy link
Contributor

mmusich commented Jun 11, 2025

For the record: there is no visible change in timing because the DeepCSV paths were already removed from the timing menu long ago.

I wasn't expect any from those. I was actually checking that the new model doesn't slow down the current menu ;)

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.

5 participants