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

Fixing some edge cases in HLT-Patatrack customisations #34992

Merged
merged 2 commits into from Aug 25, 2021

Conversation

missirol
Copy link
Contributor

PR description:

This PR is an attempt to make the HLT-Patatrack customisations introduced in #34956 a bit more robust (mostly to handle some edge cases, e.g. HLT configs with only a limited number of paths; see this comment for an example).

Suggestions on the implementation are welcomed.

Attn: @fwyzard

PR validation:

With the PR, the customisations are applied as intended in the following 3 tests (without PR, the first 2 tests wouldn't work correctly).

#!/bin/bash -ex

scram project CMSSW CMSSW_12_1_X_2021-08-23-2300
cd CMSSW_12_1_X_2021-08-23-2300/src
eval `scram runtime -sh`
git cms-merge-topic cmssw:34992
scram build

hltTest(){

  hltGetConfiguration /dev/CMSSW_12_0_0/GRun/V5 \
  --offline --mc --unprescale --process TEST \
  --input /store/relval/CMSSW_12_0_0_pre6/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/PU_120X_mcRun3_2021_realistic_v4-v1/00000/20a08d38-8b7f-4ce4-b24b-edc023ddd078.root \
  --output none \
  --era Run3 --globaltag 121X_mcRun3_2021_realistic_v1 \
  --customise HLTrigger/Configuration/customizeHLTforPatatrack.customizeHLTforPatatrackTriplets \
  --max-events 10 \
  "${@:2}" > "$1"_cfg.py

  edmConfigDump "$1"_cfg.py > "$1".py

  python3 "$1".py
  cmsRun "$1".py
}

hltTest hltPartial1 --paths HLTriggerFirstPath,MC_PFMET_v17,HLTriggerFinalPath
hltTest hltPartial2 --paths HLTriggerFirstPath,HLT_UncorrectedJetE30_NoBPTX_v6,HLTriggerFinalPath
hltTest hltFull

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

N/A

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34992/24844

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @missirol (Marino Missiroli) for master.

It involves the following packages:

  • HLTrigger/Configuration (hlt)

@Martin-Grunewald, @cmsbuild can you please review it and eventually sign? Thanks.
@Martin-Grunewald 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

@@ -225,11 +224,10 @@ def customisePixelLocalReconstruction(process):
# customisation for running the "Patatrack" pixel track reconstruction
def customisePixelTrackReconstruction(process):

if not 'HLTRecoPixelTracksSequence' in process.__dict__:
if not all(seq in process.__dict__ for seq in ['HLTRecoPixelTracksSequence', 'HLTRecopixelvertexingSequence']):
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need/want to support the case where the configuration has HLTRecoPixelTracksSequence but not HLTRecopixelvertexingSequence ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find a use case like this in the GRun menu, but supporting this seems easy enough.

Tentatively added in e397a38176c.

Checked that e397a38176c works as intended, by testing a config with

+process.MC_PixelTracksOnly_v0 = cms.Path(process.HLTRecoPixelTracksSequence)
+process.setSchedule_(cms.Schedule(process.MC_PixelTracksOnly_v0))
+process.prune()

#User-defined customization functions
from HLTrigger.Configuration.customizeHLTforPatatrack import customizeHLTforPatatrackTriplets
process = customizeHLTforPatatrackTriplets(process)

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, thanks @missirol .

@fwyzard
Copy link
Contributor

fwyzard commented Aug 24, 2021

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34992/24849

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #34992 was updated. @Martin-Grunewald can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-097e4d/17998/summary.html
COMMIT: e397a38
CMSSW: CMSSW_12_1_X_2021-08-23-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/34992/17998/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
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 5
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3000324
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 38 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@Martin-Grunewald
Copy link
Contributor

+1

@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

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