File indexing completed on 2024-04-06 12:13:43
0001
0002
0003
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007
0008
0009 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0010 process = cms.Process('SIM',Run2_2017)
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.GeometrySimDB_cff')
0020 process.load('Configuration.StandardSequences.MagneticField_cff')
0021 process.load('Configuration.StandardSequences.Generator_cff')
0022 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2017Collision_cfi')
0023 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0024 process.load('Configuration.StandardSequences.SimIdeal_cff')
0025 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0026 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0027
0028 process.maxEvents = cms.untracked.PSet(
0029 input = cms.untracked.int32(5)
0030 )
0031
0032
0033 process.source = cms.Source("EmptySource")
0034
0035 process.options = cms.untracked.PSet(
0036
0037 )
0038
0039
0040 process.configurationMetadata = cms.untracked.PSet(
0041 annotation = cms.untracked.string('GeneratorInterface/Herwig7Interface/python/Herwig7_Dummy_Matchbox_90X_ppToee.py nevts:5'),
0042 name = cms.untracked.string('Applications'),
0043 version = cms.untracked.string('$Revision: 1.19 $')
0044 )
0045
0046
0047
0048 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0049 SelectEvents = cms.untracked.PSet(
0050 SelectEvents = cms.vstring('generation_step')
0051 ),
0052 compressionAlgorithm = cms.untracked.string('LZMA'),
0053 compressionLevel = cms.untracked.int32(9),
0054 dataset = cms.untracked.PSet(
0055 dataTier = cms.untracked.string('GEN-SIM'),
0056 filterName = cms.untracked.string('')
0057 ),
0058 eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
0059 fileName = cms.untracked.string('file:Matchbox_90X_ppToee.root'),
0060 outputCommands = process.RAWSIMEventContent.outputCommands,
0061 splitLevel = cms.untracked.int32(0)
0062 )
0063
0064
0065
0066
0067 process.XMLFromDBSource.label = cms.string("Extended")
0068 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0069 from Configuration.AlCa.GlobalTag import GlobalTag
0070 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0071
0072 process.generator = cms.EDFilter("Herwig7GeneratorFilter",
0073 Matchbox = cms.vstring('read snippets/Matchbox.in',
0074 'read snippets/PPCollider.in',
0075 'cd /Herwig/EventHandlers',
0076 'set EventHandler:LuminosityFunction:Energy 13000*GeV',
0077 '## Model assumptions',
0078 'read Matchbox/StandardModelLike.in',
0079 'read Matchbox/DiagonalCKM.in',
0080 '## Set the order of the couplings',
0081 'cd /Herwig/MatrixElements/Matchbox',
0082 'set Factory:OrderInAlphaS 0',
0083 'set Factory:OrderInAlphaEW 2',
0084 '## Select the process',
0085 'do Factory:Process p p -> e+ e-',
0086 '# read Matchbox/MadGraph-GoSam.in',
0087 '# read Matchbox/MadGraph-MadGraph.in',
0088 'read Matchbox/MadGraph-OpenLoops.in',
0089 'set /Herwig/Cuts/ChargedLeptonPairMassCut:MinMass 60*GeV',
0090 'set /Herwig/Cuts/ChargedLeptonPairMassCut:MaxMass 120*GeV',
0091 'cd /Herwig/MatrixElements/Matchbox',
0092 'set Factory:ScaleChoice /Herwig/MatrixElements/Matchbox/Scales/LeptonPairMassScale',
0093 'read Matchbox/MCatNLO-DefaultShower.in',
0094 '# read Matchbox/NLO-NoShower.in',
0095 '# read Matchbox/LO-NoShower.in',
0096 'read Matchbox/FiveFlavourScheme.in',
0097 'read Matchbox/MMHT2014.in',
0098 'do /Herwig/MatrixElements/Matchbox/Factory:ProductionMode'),
0099 configFiles = cms.vstring(),
0100 crossSection = cms.untracked.double(-1),
0101 dataLocation = cms.string('${HERWIGPATH:-6}'),
0102 dumpConfig = cms.untracked.string('HerwigConfig.in'),
0103 eventHandlers = cms.string('/Herwig/EventHandlers'),
0104 filterEfficiency = cms.untracked.double(1.0),
0105 generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0106 hwpp_basicSetup = cms.vstring('#read Matchbox/GenericCollider.in',
0107 '#create ThePEG::RandomEngineGlue /Herwig/RandomGlue',
0108 '#set /Herwig/Generators/EventGenerator:RandomNumberGenerator /Herwig/RandomGlue',
0109 'set /Herwig/Generators/EventGenerator:DebugLevel 2',
0110 'set /Herwig/Generators/EventGenerator:PrintEvent 1',
0111 'set /Herwig/Generators/EventGenerator:MaxErrors 10000'),
0112 hwpp_cmsDefaults = cms.vstring('+hwpp_basicSetup',
0113 '+hwpp_setParticlesStableForDetector'),
0114 hwpp_setParticlesStableForDetector = cms.vstring('set /Herwig/Particles/mu-:Stable Stable',
0115 'set /Herwig/Particles/mu+:Stable Stable',
0116 'set /Herwig/Particles/Sigma-:Stable Stable',
0117 'set /Herwig/Particles/Sigmabar+:Stable Stable',
0118 'set /Herwig/Particles/Lambda0:Stable Stable',
0119 'set /Herwig/Particles/Lambdabar0:Stable Stable',
0120 'set /Herwig/Particles/Sigma+:Stable Stable',
0121 'set /Herwig/Particles/Sigmabar-:Stable Stable',
0122 'set /Herwig/Particles/Xi-:Stable Stable',
0123 'set /Herwig/Particles/Xibar+:Stable Stable',
0124 'set /Herwig/Particles/Xi0:Stable Stable',
0125 'set /Herwig/Particles/Xibar0:Stable Stable',
0126 'set /Herwig/Particles/Omega-:Stable Stable',
0127 'set /Herwig/Particles/Omegabar+:Stable Stable',
0128 'set /Herwig/Particles/pi+:Stable Stable',
0129 'set /Herwig/Particles/pi-:Stable Stable',
0130 'set /Herwig/Particles/K+:Stable Stable',
0131 'set /Herwig/Particles/K-:Stable Stable',
0132 'set /Herwig/Particles/K_S0:Stable Stable',
0133 'set /Herwig/Particles/K_L0:Stable Stable'),
0134 parameterSets = cms.vstring('Matchbox',
0135 'hwpp_cmsDefaults'),
0136 repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0137 run = cms.string('InterfaceMatchboxTest')
0138 )
0139
0140
0141 process.ProductionFilterSequence = cms.Sequence(process.generator)
0142
0143
0144 process.generation_step = cms.Path(process.pgen)
0145 process.simulation_step = cms.Path(process.psim)
0146 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0147 process.endjob_step = cms.EndPath(process.endOfProcess)
0148 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0149
0150
0151 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.RAWSIMoutput_step)
0152 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0153 associatePatAlgosToolsTask(process)
0154
0155 for path in process.paths:
0156 getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq
0157
0158
0159
0160
0161 from Configuration.DataProcessing.Utils import addMonitoring
0162
0163
0164 process = addMonitoring(process)
0165
0166
0167
0168
0169
0170
0171 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0172 process = customiseEarlyDelete(process)
0173