File indexing completed on 2023-03-17 11:04:37
0001
0002
0003
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007
0008
0009
0010 process = cms.Process('GEN')
0011
0012
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0018 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration.StandardSequences.Generator_cff')
0021 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')
0022 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0023 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025
0026 process.maxEvents = cms.untracked.PSet(
0027 input = cms.untracked.int32(100),
0028 output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0029 )
0030
0031
0032 process.source = cms.Source("EmptySource")
0033
0034 process.options = cms.untracked.PSet(
0035 FailPath = cms.untracked.vstring(),
0036 IgnoreCompletely = cms.untracked.vstring(),
0037 Rethrow = cms.untracked.vstring(),
0038 SkipEvent = cms.untracked.vstring(),
0039 allowUnscheduled = cms.obsolete.untracked.bool,
0040 canDeleteEarly = cms.untracked.vstring(),
0041 emptyRunLumiMode = cms.obsolete.untracked.string,
0042 eventSetup = cms.untracked.PSet(
0043 forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0044 allowAnyLabel_=cms.required.untracked.uint32
0045 ),
0046 numberOfConcurrentIOVs = cms.untracked.uint32(1)
0047 ),
0048 fileMode = cms.untracked.string('FULLMERGE'),
0049 forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0050 makeTriggerResults = cms.obsolete.untracked.bool,
0051 numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0052 numberOfConcurrentRuns = cms.untracked.uint32(1),
0053 numberOfStreams = cms.untracked.uint32(0),
0054 numberOfThreads = cms.untracked.uint32(1),
0055 printDependencies = cms.untracked.bool(False),
0056 sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0057 throwIfIllegalParameter = cms.untracked.bool(True),
0058 wantSummary = cms.untracked.bool(False)
0059 )
0060
0061
0062 process.configurationMetadata = cms.untracked.PSet(
0063 annotation = cms.untracked.string('GeneratorInterface/Herwig7Interface/python/Herwig7_Standalone_DYLO_cff.py nevts:100'),
0064 name = cms.untracked.string('Applications'),
0065 version = cms.untracked.string('$Revision: 1.19 $')
0066 )
0067
0068
0069
0070 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0071 SelectEvents = cms.untracked.PSet(
0072 SelectEvents = cms.vstring('generation_step')
0073 ),
0074 compressionAlgorithm = cms.untracked.string('LZMA'),
0075 compressionLevel = cms.untracked.int32(1),
0076 dataset = cms.untracked.PSet(
0077 dataTier = cms.untracked.string('GEN'),
0078 filterName = cms.untracked.string('')
0079 ),
0080 eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
0081 fileName = cms.untracked.string('Herwig7_Standalone_DYLO_cff_py_GEN.root'),
0082 outputCommands = process.RAWSIMEventContent.outputCommands,
0083 splitLevel = cms.untracked.int32(0)
0084 )
0085
0086
0087
0088
0089 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0090 from Configuration.AlCa.GlobalTag import GlobalTag
0091 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0092
0093 process.generator = cms.EDFilter("Herwig7GeneratorFilter",
0094 configFiles = cms.vstring(),
0095 crossSection = cms.untracked.double(-1),
0096 dataLocation = cms.string('${HERWIGPATH:-6}'),
0097 eventHandlers = cms.string('/Herwig/EventHandlers'),
0098 filterEfficiency = cms.untracked.double(1.0),
0099 generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0100 herwig7CH3AlphaS = cms.vstring(
0101 'cd /Herwig/Shower',
0102 'set AlphaQCD:AlphaIn 0.118',
0103 'cd /'
0104 ),
0105 herwig7CH3MPISettings = cms.vstring(
0106 'set /Herwig/Hadronization/ColourReconnector:ReconnectionProbability 0.4712',
0107 'set /Herwig/UnderlyingEvent/MPIHandler:pTmin0 3.04',
0108 'set /Herwig/UnderlyingEvent/MPIHandler:InvRadius 1.284',
0109 'set /Herwig/UnderlyingEvent/MPIHandler:Power 0.1362'
0110 ),
0111 herwig7CH3PDF = cms.vstring(
0112 'cd /Herwig/Partons',
0113 'create ThePEG::LHAPDF PDFSet_nnlo ThePEGLHAPDF.so',
0114 'set PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118.LHgrid',
0115 'set PDFSet_nnlo:RemnantHandler HadronRemnants',
0116 'set /Herwig/Particles/p+:PDF PDFSet_nnlo',
0117 'set /Herwig/Particles/pbar-:PDF PDFSet_nnlo',
0118 'set /Herwig/Partons/PPExtractor:FirstPDF PDFSet_nnlo',
0119 'set /Herwig/Partons/PPExtractor:SecondPDF PDFSet_nnlo',
0120 'set /Herwig/Shower/ShowerHandler:PDFA PDFSet_nnlo',
0121 'set /Herwig/Shower/ShowerHandler:PDFB PDFSet_nnlo',
0122 'create ThePEG::LHAPDF PDFSet_lo ThePEGLHAPDF.so',
0123 'set PDFSet_lo:PDFName NNPDF31_lo_as_0130.LHgrid',
0124 'set PDFSet_lo:RemnantHandler HadronRemnants',
0125 'set /Herwig/Shower/ShowerHandler:PDFARemnant PDFSet_lo',
0126 'set /Herwig/Shower/ShowerHandler:PDFBRemnant PDFSet_lo',
0127 'set /Herwig/Partons/MPIExtractor:FirstPDF PDFSet_lo',
0128 'set /Herwig/Partons/MPIExtractor:SecondPDF PDFSet_lo',
0129 'cd /'
0130 ),
0131 herwig7StableParticlesForDetector = cms.vstring(
0132 'set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm',
0133 'set /Herwig/Decays/DecayHandler:LifeTimeOption Average'
0134 ),
0135 parameterSets = cms.vstring(
0136 'herwig7CH3PDF',
0137 'herwig7CH3AlphaS',
0138 'herwig7StableParticlesForDetector',
0139 'pptoll'
0140 ),
0141 pptoll = cms.vstring(
0142 'read snippets/PPCollider.in',
0143 'cd /Herwig/Generators',
0144 'set EventGenerator:EventHandler:LuminosityFunction:Energy 13000.0',
0145 'cd /Herwig/MatrixElements/',
0146 'insert SubProcess:MatrixElements[0] MEqq2gZ2ff'
0147 ),
0148 repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0149 run = cms.string('InterfaceMatchboxTest')
0150 )
0151
0152
0153 process.ProductionFilterSequence = cms.Sequence(process.generator)
0154
0155
0156 process.generation_step = cms.Path(process.pgen)
0157 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0158 process.endjob_step = cms.EndPath(process.endOfProcess)
0159 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0160
0161
0162 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step)
0163 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0164 associatePatAlgosToolsTask(process)
0165
0166 for path in process.paths:
0167 getattr(process,path).insert(0, process.ProductionFilterSequence)
0168
0169
0170
0171
0172
0173
0174 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0175 process = customiseEarlyDelete(process)
0176