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
|
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: GeneratorInterface/Herwig7Interface/python/Herwig7_Standalone_DYLO_cff.py --eventcontent RAWSIM --datatier GEN --conditions auto:run2_mc --step GEN --python_filename Herwig7_Standalone_DYLO_cfg.py --no_exec -n 100
import FWCore.ParameterSet.Config as cms
process = cms.Process('GEN')
# 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.MagneticField_cff')
process.load('Configuration.StandardSequences.Generator_cff')
process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')
process.load('GeneratorInterface.Core.genFilterSummary_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100),
output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
)
# Input source
process.source = cms.Source("EmptySource")
process.options = cms.untracked.PSet(
IgnoreCompletely = cms.untracked.vstring(),
Rethrow = cms.untracked.vstring(),
TryToContinue = cms.untracked.vstring(),
allowUnscheduled = cms.obsolete.untracked.bool,
canDeleteEarly = cms.untracked.vstring(),
emptyRunLumiMode = cms.obsolete.untracked.string,
eventSetup = cms.untracked.PSet(
forceNumberOfConcurrentIOVs = cms.untracked.PSet(
allowAnyLabel_=cms.required.untracked.uint32
),
numberOfConcurrentIOVs = cms.untracked.uint32(1)
),
fileMode = cms.untracked.string('FULLMERGE'),
forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
makeTriggerResults = cms.obsolete.untracked.bool,
numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
numberOfConcurrentRuns = cms.untracked.uint32(1),
numberOfStreams = cms.untracked.uint32(0),
numberOfThreads = cms.untracked.uint32(1),
printDependencies = cms.untracked.bool(False),
sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
throwIfIllegalParameter = cms.untracked.bool(True),
wantSummary = cms.untracked.bool(False)
)
# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('GeneratorInterface/Herwig7Interface/python/Herwig7_Standalone_DYLO_cff.py nevts:100'),
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(1),
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('GEN'),
filterName = cms.untracked.string('')
),
eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
fileName = cms.untracked.string('Herwig7_Standalone_DYLO_cff_py_GEN.root'),
outputCommands = process.RAWSIMEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)
# Additional output definition
# Other statements
process.genstepfilter.triggerConditions=cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
process.generator = cms.EDFilter("Herwig7HepMC3GeneratorFilter",
configFiles = cms.vstring(),
eventsToPrint = cms.untracked.uint32(1),
crossSection = cms.untracked.double(-1),
dataLocation = cms.string('${HERWIGPATH:-6}'),
eventHandlers = cms.string('/Herwig/EventHandlers'),
filterEfficiency = cms.untracked.double(1.0),
generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
herwig7CH3AlphaS = cms.vstring(
'cd /Herwig/Shower',
'set AlphaQCD:AlphaIn 0.118',
'cd /'
),
herwig7CH3MPISettings = cms.vstring(
'set /Herwig/Hadronization/ColourReconnector:ReconnectionProbability 0.4712',
'set /Herwig/UnderlyingEvent/MPIHandler:pTmin0 3.04',
'set /Herwig/UnderlyingEvent/MPIHandler:InvRadius 1.284',
'set /Herwig/UnderlyingEvent/MPIHandler:Power 0.1362'
),
herwig7CH3PDF = cms.vstring(
'cd /Herwig/Partons',
'create ThePEG::LHAPDF PDFSet_nnlo ThePEGLHAPDF.so',
'set PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118.LHgrid',
'set PDFSet_nnlo:RemnantHandler HadronRemnants',
'set /Herwig/Particles/p+:PDF PDFSet_nnlo',
'set /Herwig/Particles/pbar-:PDF PDFSet_nnlo',
'set /Herwig/Partons/PPExtractor:FirstPDF PDFSet_nnlo',
'set /Herwig/Partons/PPExtractor:SecondPDF PDFSet_nnlo',
'set /Herwig/Shower/ShowerHandler:PDFA PDFSet_nnlo',
'set /Herwig/Shower/ShowerHandler:PDFB PDFSet_nnlo',
'create ThePEG::LHAPDF PDFSet_lo ThePEGLHAPDF.so',
'set PDFSet_lo:PDFName NNPDF31_lo_as_0130.LHgrid',
'set PDFSet_lo:RemnantHandler HadronRemnants',
'set /Herwig/Shower/ShowerHandler:PDFARemnant PDFSet_lo',
'set /Herwig/Shower/ShowerHandler:PDFBRemnant PDFSet_lo',
'set /Herwig/Partons/MPIExtractor:FirstPDF PDFSet_lo',
'set /Herwig/Partons/MPIExtractor:SecondPDF PDFSet_lo',
'cd /'
),
herwig7StableParticlesForDetector = cms.vstring(
'set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm',
'set /Herwig/Decays/DecayHandler:LifeTimeOption Average'
),
parameterSets = cms.vstring(
'herwig7CH3PDF',
'herwig7CH3AlphaS',
'herwig7StableParticlesForDetector',
'pptoll'
),
pptoll = cms.vstring(
'read snippets/PPCollider.in',
'cd /Herwig/Generators',
'set EventGenerator:EventHandler:LuminosityFunction:Energy 13000.0',
'cd /Herwig/MatrixElements/',
'insert SubProcess:MatrixElements[0] MEqq2gZ2ff'
),
repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
run = cms.string('InterfaceMatchboxTest')
)
process.ProductionFilterSequence = cms.Sequence(process.generator)
# Path and EndPath definitions
process.generation_step = cms.Path(process.pgen)
process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
# Schedule definition
process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)
# filter all path with the production filter sequence
for path in process.paths:
getattr(process,path).insert(0, process.ProductionFilterSequence)
# Customisation from command line
# 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
|