-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTChiHZ_fullsim_RunIIFall17wmLHEGS_1_cfg.py
198 lines (172 loc) · 11.7 KB
/
TChiHZ_fullsim_RunIIFall17wmLHEGS_1_cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/Fullsim_TChiHZ_fragment_LLP_ctau.py --fileout file:TChiHZ_fullsim_RunIIFall17wmLHEGS.root --mc --eventcontent RAWSIM,LHE --datatier GEN-SIM,LHE --conditions 94X_mc2017_realistic_v17 --beamspot Realistic25ns13TeVEarly2017Collision --step LHE,GEN,SIM --nThreads 8 --geometry DB:Extended --era Run2_2017 --python_filename TChiHZ_fullsim_RunIIFall17wmLHEGS_1_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring --customise_commands process.RandomNumberGeneratorService.externalLHEProducer.initialSeed=int(99) -n 10
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('SIM',eras.Run2_2017)
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('SimGeneral.MixingModule.mixNoPU_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.GeometrySimDB_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.Generator_cff')
process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2017Collision_cfi')
process.load('GeneratorInterface.Core.genFilterSummary_cff')
process.load('Configuration.StandardSequences.SimIdeal_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(10)
)
# Input source
process.source = cms.Source("EmptySource")
process.options = cms.untracked.PSet(
)
# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('Configuration/GenProduction/python/Fullsim_TChiHZ_fragment_LLP_ctau.py nevts:10'),
name = cms.untracked.string('Applications'),
version = cms.untracked.string('$Revision: 1.19 $')
)
# Output definition
process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('generation_step')
),
compressionAlgorithm = cms.untracked.string('LZMA'),
compressionLevel = cms.untracked.int32(9),
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('GEN-SIM'),
filterName = cms.untracked.string('')
),
eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
fileName = cms.untracked.string('file:TChiHZ_fullsim_RunIIFall17wmLHEGS.root'),
outputCommands = process.RAWSIMEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)
process.LHEoutput = cms.OutputModule("PoolOutputModule",
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('LHE'),
filterName = cms.untracked.string('')
),
fileName = cms.untracked.string('file:TChiHZ_fullsim_RunIIFall17wmLHEGS_inLHE.root'),
outputCommands = process.LHEEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)
# Additional output definition
# Other statements
process.XMLFromDBSource.label = cms.string("Extended")
process.genstepfilter.triggerConditions=cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '94X_mc2017_realistic_v17', '')
process.generator = cms.EDFilter("Pythia8HadronizerFilter",
ConfigDescription = cms.string('TChiHZ_ZToLL_HToBB_200_1000'),
PythiaParameters = cms.PSet(
JetMatchingParameters = cms.vstring('JetMatching:setMad = off',
'JetMatching:scheme = 1',
'JetMatching:merge = on',
'JetMatching:jetAlgorithm = 2',
'JetMatching:etaJetMax = 5.',
'JetMatching:coneRadius = 1.',
'JetMatching:slowJetPower = 1',
'JetMatching:qCut = 76',
'JetMatching:nQmatch = 5',
'JetMatching:nJetMax = 2',
'JetMatching:doShowerKt = off',
'6:m0 = 172.5',
'23:onMode = off',
'23:onIfAny = 11 13',
'25:onMode = off',
'25:onIfMatch = 5 -5',
'Check:abortIfVeto = on',
'25:doForceWidth = true',
'25:mWidth = 2.0',
'25:mMin = 30.0',
'25:m0 = 125.0'),
parameterSets = cms.vstring('pythia8CommonSettings',
'pythia8CP5Settings',
'JetMatchingParameters'),
pythia8CP5Settings = cms.vstring('Tune:pp 14',
'Tune:ee 7',
'MultipartonInteractions:ecmPow=0.03344',
'PDF:pSet=20',
'MultipartonInteractions:bProfile=2',
'MultipartonInteractions:pT0Ref=1.41',
'MultipartonInteractions:coreRadius=0.7634',
'MultipartonInteractions:coreFraction=0.63',
'ColourReconnection:range=5.176',
'SigmaTotal:zeroAXB=off',
'SpaceShower:alphaSorder=2',
'SpaceShower:alphaSvalue=0.118',
'SigmaProcess:alphaSvalue=0.118',
'SigmaProcess:alphaSorder=2',
'MultipartonInteractions:alphaSvalue=0.118',
'MultipartonInteractions:alphaSorder=2',
'TimeShower:alphaSorder=2',
'TimeShower:alphaSvalue=0.118'),
pythia8CommonSettings = cms.vstring('Tune:preferLHAPDF = 2',
'Main:timesAllowErrors = 10000',
'Check:epTolErr = 0.01',
'Beams:setProductionScalesFromLHEF = off',
'SLHA:keepSM = on',
'SLHA:minMassSM = 1000.',
'ParticleDecays:limitTau0 = on',
'ParticleDecays:tau0Max = 10',
'ParticleDecays:allowPhotonRadiation = on',
'1000023:tau0 = 1.000000e+03',
'1000025:tau0 = 1.000000e+03',
'ParticleDecays:tau0Max = 1000.1',
'LesHouches:setLifetime = 2',
'RHadrons:allow = on')
),
SLHATableForPythia8 = cms.string('\nBLOCK MASS # Mass Spectrum\n# PDG code mass particle\n 1000001 1.00000000E+05 # ~d_L\n 2000001 1.00000000E+05 # ~d_R\n 1000002 1.00000000E+05 # ~u_L\n 2000002 1.00000000E+05 # ~u_R\n 1000003 1.00000000E+05 # ~s_L\n 2000003 1.00000000E+05 # ~s_R\n 1000004 1.00000000E+05 # ~c_L\n 2000004 1.00000000E+05 # ~c_R\n 1000005 1.00000000E+05 # ~b_1\n 2000005 1.00000000E+05 # ~b_2\n 1000006 1.00000000E+05 # ~t_1\n 2000006 1.00000000E+05 # ~t_2\n 1000011 1.00000000E+05 # ~e_L\n 2000011 1.00000000E+05 # ~e_R\n 1000012 1.00000000E+05 # ~nu_eL\n 1000013 1.00000000E+05 # ~mu_L\n 2000013 1.00000000E+05 # ~mu_R\n 1000014 1.00000000E+05 # ~nu_muL\n 1000015 1.00000000E+05 # ~tau_1\n 2000015 1.00000000E+05 # ~tau_2\n 1000016 1.00000000E+05 # ~nu_tauL\n 1000021 1.00000000E+05 # ~g\n 1000022 1.00000000E+00 # ~chi_10\n 1000023 2.000000e+02 # ~chi_20\n 1000025 2.000000e+02 # ~chi_30\n 1000035 1.00000000E+05 # ~chi_40\n 1000024 1.00000000E+05 # ~chi_1+\n 1000037 1.00000000E+05 # ~chi_2+\n 1000039 1.00000000E+05 # ~gravitino\n\n# DECAY TABLE\n# PDG Width\nDECAY 1000001 0.00000000E+00 # sdown_L decays\nDECAY 2000001 0.00000000E+00 # sdown_R decays\nDECAY 1000002 0.00000000E+00 # sup_L decays\nDECAY 2000002 0.00000000E+00 # sup_R decays\nDECAY 1000003 0.00000000E+00 # sstrange_L decays\nDECAY 2000003 0.00000000E+00 # sstrange_R decays\nDECAY 1000004 0.00000000E+00 # scharm_L decays\nDECAY 2000004 0.00000000E+00 # scharm_R decays\nDECAY 1000005 0.00000000E+00 # sbottom1 decays\nDECAY 2000005 0.00000000E+00 # sbottom2 decays\nDECAY 1000006 0.00000000E+00 # stop1 decays\nDECAY 2000006 0.00000000E+00 # stop2 decays\nDECAY 1000011 0.00000000E+00 # selectron_L decays\nDECAY 2000011 0.00000000E+00 # selectron_R decays\nDECAY 1000012 0.00000000E+00 # snu_elL decays\nDECAY 1000013 0.00000000E+00 # smuon_L decays\nDECAY 2000013 0.00000000E+00 # smuon_R decays\nDECAY 1000014 0.00000000E+00 # snu_muL decays\nDECAY 1000015 0.00000000E+00 # stau_1 decays\nDECAY 2000015 0.00000000E+00 # stau_2 decays\nDECAY 1000016 0.00000000E+00 # snu_tauL decays\nDECAY 1000021 0.00000000E+00 # gluino decays\nDECAY 1000022 0.00000000E+00 # neutralino1 decays\nDECAY 1000023 1.973270e-16 # neutralino2 decays\n 0.00000000E+00 3 1000022 5 -5 #dummy decay\n 1.00000000E+00 2 1000022 25\nDECAY 1000024 0.00000000E+00 # chargino1+ decays\nDECAY 1000025 1.973270e-16 # neutralino3 decays\n 0.00000000E+00 3 1000022 11 -11 #dummy decay\n 1.00000000E+00 2 1000022 23\nDECAY 1000035 0.00000000E+00 # neutralino4 decays\nDECAY 1000037 0.00000000E+00 # chargino2+ decays\n'),
comEnergy = cms.double(13000.0),
filterEfficiency = cms.untracked.double(1.0),
maxEventsToPrint = cms.untracked.int32(1),
pythiaHepMCVerbosity = cms.untracked.bool(False),
pythiaPylistVerbosity = cms.untracked.int32(1)
)
process.externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/2017/13TeV/madgraph/V5_2.4.2/sus_sms/LO_PDF/SMS-N2N3/v1/SMS-N2N3_mN-200_slc6_amd64_gcc481_CMSSW_7_1_30_tarball.tar.xz'),
nEvents = cms.untracked.uint32(10),
numberOfParameters = cms.uint32(1),
outputFile = cms.string('cmsgrid_final.lhe'),
scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh')
)
# Path and EndPath definitions
process.lhe_step = cms.Path(process.externalLHEProducer)
process.generation_step = cms.Path(process.pgen)
process.simulation_step = cms.Path(process.psim)
process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
process.LHEoutput_step = cms.EndPath(process.LHEoutput)
# Schedule definition
process.schedule = cms.Schedule(process.lhe_step,process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.RAWSIMoutput_step,process.LHEoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)
#Setup FWK for multithreaded
process.options.numberOfThreads=cms.untracked.uint32(8)
process.options.numberOfStreams=cms.untracked.uint32(0)
# filter all path with the production filter sequence
for path in process.paths:
if path in ['lhe_step']: continue
getattr(process,path)._seq = process.generator * getattr(process,path)._seq
# customisation of the process.
# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
from Configuration.DataProcessing.Utils import addMonitoring
#call to customisation function addMonitoring imported from Configuration.DataProcessing.Utils
process = addMonitoring(process)
# End of customisation functions
# Customisation from command line
process.RandomNumberGeneratorService.externalLHEProducer.initialSeed=int(99)
# Add early deletion of temporary data products to reduce peak memory need
from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
process = customiseEarlyDelete(process)
# End adding early deletion