Skip to content

Commit

Permalink
Merge pull request #34681 from dr-stringfellow/closebysmearing
Browse files Browse the repository at this point in the history
Disable vertex smearing for workflows using CloseByParticleGun
  • Loading branch information
cmsbuild authored Aug 3, 2021
2 parents 9889436 + 13f972b commit ad7d21a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Configuration/PyReleaseValidation/python/relval_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3356,6 +3356,15 @@ def gen2021HiMix(fragment,howMuch):
'--geometry' : geom
}

upgradeStepDict['GenSimHLBeamSpotHGCALCloseBy'][k]= {'-s' : 'GEN,SIM',
'-n' : 10,
'--conditions' : gt,
'--beamspot' : 'HGCALCloseBy',
'--datatier' : 'GEN-SIM',
'--eventcontent': 'FEVTDEBUG',
'--geometry' : geom
}

upgradeStepDict['Digi'][k] = {'-s':'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:%s'%(hltversion),
'--conditions':gt,
'--datatier':'GEN-SIM-DIGI-RAW',
Expand Down
7 changes: 5 additions & 2 deletions Configuration/PyReleaseValidation/python/relval_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ def makeStepName(key,frag,step,suffix):
for step in upgradeProperties[year][key]['ScenToRun']:
stepMaker = makeStepName
if 'Sim' in step:
if 'HLBeamSpot' in step and '14TeV' in frag:
step = 'GenSimHLBeamSpot14'
if 'HLBeamSpot' in step:
if '14TeV' in frag:
step = 'GenSimHLBeamSpot14'
if 'CloseByParticle' in frag or 'CE_E' in frag or 'CE_H' in frag:
step = 'GenSimHLBeamSpotHGCALCloseBy'
stepMaker = makeStepNameSim

if 'HARVEST' in step: hasHarvest = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
'GenSim',
'GenSimHLBeamSpot',
'GenSimHLBeamSpot14',
'GenSimHLBeamSpotHGCALCloseBy',
'Digi',
'DigiTrigger',
'RecoLocal',
Expand Down
1 change: 1 addition & 0 deletions Configuration/StandardSequences/python/VtxSmeared.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'RealisticPbPBoost5TeV2016Collision': 'GeneratorInterface.HiGenCommon.VtxSmearedPbP5TeVBoost_cff',
'RealisticPPbBoost8TeV2016Collision': 'GeneratorInterface.HiGenCommon.VtxSmearedPPb8TeVBoost_cff',
'RealisticPbPBoost8TeV2016Collision': 'GeneratorInterface.HiGenCommon.VtxSmearedPbP8TeVBoost_cff',
'HGCALCloseBy' : 'IOMC.EventVertexGenerators.VtxSmearedHGCALCloseBy_cfi',
'HLLHC' : 'IOMC.EventVertexGenerators.VtxSmearedHLLHC_cfi',
'HLLHC14TeV' : 'IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi',
'HLLHC_CK' : 'IOMC.EventVertexGenerators.VtxSmearedHLLHCCrabKissing_cfi',
Expand Down
10 changes: 10 additions & 0 deletions IOMC/EventVertexGenerators/python/VtxSmearedHGCALCloseBy_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import FWCore.ParameterSet.Config as cms

from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import *
VtxSmeared = cms.EDProducer("GaussEvtVtxGenerator",
GaussVtxSmearingParameters,
VtxSmearedCommon
)
VtxSmeared.SigmaX = cms.double(0)
VtxSmeared.SigmaY = cms.double(0)
VtxSmeared.SigmaZ = cms.double(0)

0 comments on commit ad7d21a

Please sign in to comment.