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

Disable vertex smearing for workflows using CloseByParticleGun #34681

Merged
merged 11 commits into from
Aug 3, 2021
Merged

Disable vertex smearing for workflows using CloseByParticleGun #34681

merged 11 commits into from
Aug 3, 2021

Conversation

dr-stringfellow
Copy link
Contributor

PR description:

This PR disables any GEN->SIM vertex smearing for upgrade workflows using the CloseByParticleGun. HLLHC-like vertex smearing, as was the default so far for such workflows, defies the purpose of the CloseByParticleGun. In practical terms: if we want to position the particle gun right in front of the detector (HGCAL), we do not want to have a vertex smearing applied that would move the position of the simulated vertex into the detector, as this would bias our studies and mess with truth definitions etc. If a spread in Z position of the vertex is desired, this can be handled through the config of the CloseByParticleGun.
Hence, switch to a Gaussian Vertex smearing with width_x/y/z = 0 for all workflows using the CloseByParticleGun.

PR validation:

edmConfigDump on step1.py for an upgrade workflow that would previously have the smearing applied, like: runTheMatrix.py -w upgrade -l 34693.0 -t 10 -j 0 --command '-n 10' shows that the desired configuration was fetched.

Verified that GEN vertex and SIM vertex positions are identical for 10 events.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34681/24304

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dr-stringfellow for master.

It involves the following packages:

  • Configuration/PyReleaseValidation (pdmv, upgrade)
  • Configuration/StandardSequences (operations)
  • IOMC/EventVertexGenerators (simulation)

@perrotta, @civanch, @jordan-martins, @chayanit, @bbilin, @wajidalikhan, @kpedro88, @cmsbuild, @silviodonato, @srimanob, @mdhildreth, @kskovpen, @qliphy, @fabiocos, @davidlange6 can you please review it and eventually sign? Thanks.
@fabiocos, @makortel, @felicepantaleo, @jan-kaspar, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @Martin-Grunewald, @lecriste, @mtosi, @ebrondol, @mmusich, @dgulhan, @slomeo this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy, @perrotta you are the release manager for this.

cms-bot commands are listed here

@srimanob
Copy link
Contributor

Please test

if 'HLBeamSpot' in step:
if '14TeV' in frag:
step = 'GenSimHLBeamSpot14'
if 'CloseByParticle' in frag:
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah true, better to pattern match also CE_H and CE_E. Can I just update the code in my repository and it will redo checks?

Copy link
Contributor

Choose a reason for hiding this comment

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

I will re-trigger the code testing. Feel free to push an updated one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Pushed!

@srimanob
Copy link
Contributor

Please abort

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34681/24365

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2021

Pull request #34681 was updated. @perrotta, @civanch, @jordan-martins, @chayanit, @bbilin, @wajidalikhan, @kpedro88, @AdrianoDee, @srimanob, @silviodonato, @mdhildreth, @kskovpen, @qliphy, @fabiocos, @davidlange6 can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2021

-1

Failed Tests: RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-dba9c4/17421/summary.html
COMMIT: 13f972b
CMSSW: CMSSW_12_1_X_2021-08-02-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34681/17421/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

  • 11605.011605.0_SingleGammaPt35+2021+SingleGammaPt35_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA/step2_SingleGammaPt35+2021+SingleGammaPt35_pythia8_GenSimINPUT+Digi+Reco+HARVEST+ALCA.log
  • 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
Expand to see more relval errors ...

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 2998564
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2998541
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented Aug 3, 2021

+1

@perrotta
Copy link
Contributor

perrotta commented Aug 3, 2021

+operations

@srimanob
Copy link
Contributor

srimanob commented Aug 3, 2021

+Upgrade

This PR is to correct BS smearing in closebyparticle gun used for HGCAL relvals.

@perrotta
Copy link
Contributor

perrotta commented Aug 3, 2021

@cms-sw/pdmv-l2 you already signed this PR before last commit, whose last commit only renamed the step by removing "14TeV" from it. I assume that you are still ok with this PR, just complain in case you changed your mind.

@perrotta
Copy link
Contributor

perrotta commented Aug 3, 2021

+1

@perrotta
Copy link
Contributor

perrotta commented Aug 3, 2021

merge

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