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

Keep gen-level nuclear info #18721

Merged
merged 2 commits into from May 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Configuration/Applications/python/ConfigBuilder.py
Expand Up @@ -1404,7 +1404,7 @@ def prepare_DIGI(self, sequence = None):
if self._options.gflash==True:
self.loadAndRemember("Configuration/StandardSequences/GFlashDIGI_cff")

if sequence == 'pdigi_valid':
if sequence == 'pdigi_valid' or sequence == 'pdigi_hi':
self.executeAndRemember("process.mix.digitizers = cms.PSet(process.theDigitizersValid)")

if sequence != 'pdigi_nogen' and sequence != 'pdigi_valid_nogen' and not self.process.source.type_()=='EmptySource':
Expand Down
6 changes: 3 additions & 3 deletions Configuration/PyReleaseValidation/python/relval_steps.py
Expand Up @@ -1008,9 +1008,9 @@ def lhegensim(fragment,howMuch):
#steps['RESIMDIGI']=merge([{'-s':'reGEN,reSIM,DIGI,L1,DIGI2RAW,HLT:@fake,RAW2DIGI,L1Reco','-n':10,'--restoreRNDSeeds':'','--process':'HLT'},steps['DIGI']])


steps['DIGIHI']=merge([{'-s':'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:HIon'}, hiDefaults, step2Upg2015Defaults])
steps['DIGIHI2011']=merge([{'-s':'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:@fake'}, hiDefaults2011, step2Defaults])
steps['DIGIHIMIX']=merge([{'-s':'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:HIon', '-n':2}, hiDefaults, {'--pileup':'HiMix'}, PUHI, step2Upg2015Defaults])
steps['DIGIHI']=merge([{'-s':'DIGI:pdigi_hi,L1,DIGI2RAW,HLT:HIon'}, hiDefaults, {'--pileup':'HiMixNoPU'}, step2Upg2015Defaults])
steps['DIGIHI2011']=merge([{'-s':'DIGI:pdigi_hi,L1,DIGI2RAW,HLT:@fake'}, hiDefaults2011, {'--pileup':'HiMixNoPU'}, step2Defaults])
steps['DIGIHIMIX']=merge([{'-s':'DIGI:pdigi_hi,L1,DIGI2RAW,HLT:HIon', '-n':2}, hiDefaults, {'--pileup':'HiMix'}, PUHI, step2Upg2015Defaults])


# PRE-MIXING : https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideSimulation#Pre_Mixing_Instructions
Expand Down
4 changes: 4 additions & 0 deletions Configuration/StandardSequences/python/Digi_cff.py
Expand Up @@ -35,6 +35,10 @@
pdigi_nogen=cms.Sequence(generatorSmeared*cms.SequencePlaceholder("randomEngineStateProducer")*cms.SequencePlaceholder("mix")*doAllDigi*addPileupInfo)
pdigi_valid_nogen=cms.Sequence(pdigi_nogen)

from GeneratorInterface.HiGenCommon.HeavyIon_cff import *
pdigi_hi=cms.Sequence(pdigi+heavyIon)
pdigi_hi_nogen=cms.Sequence(pdigi_nogen+heavyIon)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen():
# pretend these digis have been through digi2raw and raw2digi, by using the approprate aliases
Expand Down
1 change: 1 addition & 0 deletions Configuration/StandardSequences/python/Mixing.py
Expand Up @@ -52,6 +52,7 @@ def addMixingScenario(label,dict):
addMixingScenario("E8TeV_AVE_10_BX_25ns_300ns_spread",{'file':'SimGeneral.MixingModule.mix_E8TeV_AVE_10_BX_25ns_300ns_spread_cfi'})
addMixingScenario("HiMix",{'file': 'SimGeneral.MixingModule.HiMix_cff'})
addMixingScenario("HiMixGEN",{'file': 'SimGeneral.MixingModule.HiMixGEN_cff'})
addMixingScenario("HiMixNoPU",{'file': 'SimGeneral.MixingModule.HiMixNoPU_cff'})
addMixingScenario("HighLumiPileUp",{'file': 'SimGeneral.MixingModule.mixHighLumPU_cfi'})
addMixingScenario("InitialLumiPileUp",{'file': 'SimGeneral.MixingModule.mixInitialLumPU_cfi'})
addMixingScenario("LowLumiPileUp",{'file': 'SimGeneral.MixingModule.mixLowLumPU_cfi'})
Expand Down
5 changes: 1 addition & 4 deletions GeneratorInterface/HiGenCommon/python/HeavyIon_cff.py
Expand Up @@ -2,10 +2,7 @@

from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
heavyIon = cms.EDProducer("GenHIEventProducer",
doReco = cms.bool(True),
doMC = cms.bool(True),
generators = cms.vstring("generatorSmeared"),
ptCut = cms.double(0),
src = cms.InputTag("mix","generatorSmeared"),
)


Expand Down
Expand Up @@ -2,22 +2,22 @@

HiMixRAW = cms.PSet(
outputCommands = cms.untracked.vstring(
# 'keep *_mix_MergedTrackTruth_*',
# 'drop CrossingFramePlaybackInfoExtended_mix_*_*',
# 'keep *_mix_*_SIM',
)
'keep CrossingFramePlaybackInfoNew_mix_*_*',
'keep *_heavyIon_*_*',
)
)

HiMixRECO = cms.PSet(
outputCommands = cms.untracked.vstring(
# 'keep *_mix_MergedTrackTruth_*',
# 'drop CrossingFramePlaybackInfoExtended_mix_*_*',
# 'keep *_mix_*_SIM',
'keep CrossingFramePlaybackInfoNew_mix_*_*',
'keep *_heavyIon_*_*',
)
)

HiMixAOD = cms.PSet(
outputCommands = cms.untracked.vstring(
)
'keep CrossingFramePlaybackInfoNew_mix_*_*',
'keep *_heavyIon_*_*',
)
)

8 changes: 8 additions & 0 deletions SimGeneral/MixingModule/python/HiMixNoPU_cff.py
@@ -0,0 +1,8 @@
import FWCore.ParameterSet.Config as cms

# this is a minimum configuration of the Mixing module,
# to run it in the zero-pileup mode
#
from SimGeneral.MixingModule.mixNoPU_cfi import *

mix.mixObjects.mixHepMC.makeCrossingFrame = True