Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:04:37

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: GeneratorInterface/Herwig7Interface/python/Herwig7_Matchbox_ppToee_cff.py --eventcontent RAWSIM --datatier GEN --conditions auto:run2_mc --step GEN --python_filename Herwig7_Matchbox_ppToee_cfg.py --no_exec -n 100
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 
0009 
0010 process = cms.Process('GEN')
0011 
0012 # import of standard configurations
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 # Input source
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 # Production Info
0062 process.configurationMetadata = cms.untracked.PSet(
0063     annotation = cms.untracked.string('GeneratorInterface/Herwig7Interface/python/Herwig7_Matchbox_ppToee_cff.py nevts:100'),
0064     name = cms.untracked.string('Applications'),
0065     version = cms.untracked.string('$Revision: 1.19 $')
0066 )
0067 
0068 # Output definition
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_Matchbox_ppToee_cff_py_GEN.root'),
0082     outputCommands = process.RAWSIMEventContent.outputCommands,
0083     splitLevel = cms.untracked.int32(0)
0084 )
0085 
0086 # Additional output definition
0087 
0088 # Other statements
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     Matchbox = cms.vstring(
0095         'read snippets/Matchbox.in', 
0096         'read snippets/PPCollider.in', 
0097         'cd /Herwig/EventHandlers', 
0098         'set EventHandler:LuminosityFunction:Energy 13000*GeV', 
0099         '## Model assumptions', 
0100         'read Matchbox/StandardModelLike.in', 
0101         'read Matchbox/DiagonalCKM.in', 
0102         '## Set the order of the couplings', 
0103         'cd /Herwig/MatrixElements/Matchbox', 
0104         'set Factory:OrderInAlphaS 0', 
0105         'set Factory:OrderInAlphaEW 2', 
0106         '## Select the process', 
0107         'do Factory:Process p p -> e+ e-', 
0108         '# read Matchbox/MadGraph-GoSam.in', 
0109         '# read Matchbox/MadGraph-MadGraph.in', 
0110         'read Matchbox/MadGraph-OpenLoops.in', 
0111         'set /Herwig/Cuts/ChargedLeptonPairMassCut:MinMass 60*GeV', 
0112         'set /Herwig/Cuts/ChargedLeptonPairMassCut:MaxMass 120*GeV', 
0113         'cd /Herwig/MatrixElements/Matchbox', 
0114         'set Factory:ScaleChoice /Herwig/MatrixElements/Matchbox/Scales/LeptonPairMassScale', 
0115         'read Matchbox/MCatNLO-DefaultShower.in', 
0116         '# read Matchbox/NLO-NoShower.in', 
0117         '# read Matchbox/LO-NoShower.in', 
0118         'read Matchbox/FiveFlavourScheme.in', 
0119         'read Matchbox/MMHT2014.in', 
0120         'do /Herwig/MatrixElements/Matchbox/Factory:ProductionMode'
0121     ),
0122     configFiles = cms.vstring(),
0123     crossSection = cms.untracked.double(-1),
0124     dataLocation = cms.string('${HERWIGPATH:-6}'),
0125     dumpConfig = cms.untracked.string('HerwigConfig.in'),
0126     eventHandlers = cms.string('/Herwig/EventHandlers'),
0127     filterEfficiency = cms.untracked.double(1.0),
0128     generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0129     herwig7CH3AlphaS = cms.vstring(
0130         'cd /Herwig/Shower', 
0131         'set AlphaQCD:AlphaIn 0.118', 
0132         'cd /'
0133     ),
0134     herwig7CH3MPISettings = cms.vstring(
0135         'set /Herwig/Hadronization/ColourReconnector:ReconnectionProbability 0.4712', 
0136         'set /Herwig/UnderlyingEvent/MPIHandler:pTmin0 3.04', 
0137         'set /Herwig/UnderlyingEvent/MPIHandler:InvRadius 1.284', 
0138         'set /Herwig/UnderlyingEvent/MPIHandler:Power 0.1362'
0139     ),
0140     herwig7CH3PDF = cms.vstring(
0141         'cd /Herwig/Partons', 
0142         'create ThePEG::LHAPDF PDFSet_nnlo ThePEGLHAPDF.so', 
0143         'set PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118.LHgrid', 
0144         'set PDFSet_nnlo:RemnantHandler HadronRemnants', 
0145         'set /Herwig/Particles/p+:PDF PDFSet_nnlo', 
0146         'set /Herwig/Particles/pbar-:PDF PDFSet_nnlo', 
0147         'set /Herwig/Partons/PPExtractor:FirstPDF  PDFSet_nnlo', 
0148         'set /Herwig/Partons/PPExtractor:SecondPDF PDFSet_nnlo', 
0149         'set /Herwig/Shower/ShowerHandler:PDFA PDFSet_nnlo', 
0150         'set /Herwig/Shower/ShowerHandler:PDFB PDFSet_nnlo', 
0151         'create ThePEG::LHAPDF PDFSet_lo ThePEGLHAPDF.so', 
0152         'set PDFSet_lo:PDFName NNPDF31_lo_as_0130.LHgrid', 
0153         'set PDFSet_lo:RemnantHandler HadronRemnants', 
0154         'set /Herwig/Shower/ShowerHandler:PDFARemnant PDFSet_lo', 
0155         'set /Herwig/Shower/ShowerHandler:PDFBRemnant PDFSet_lo', 
0156         'set /Herwig/Partons/MPIExtractor:FirstPDF PDFSet_lo', 
0157         'set /Herwig/Partons/MPIExtractor:SecondPDF PDFSet_lo', 
0158         'cd /'
0159     ),
0160     herwig7StableParticlesForDetector = cms.vstring(
0161         'set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm', 
0162         'set /Herwig/Decays/DecayHandler:LifeTimeOption Average'
0163     ),
0164     parameterSets = cms.vstring(
0165         'herwig7CH3PDF', 
0166         'herwig7CH3AlphaS', 
0167         'herwig7StableParticlesForDetector', 
0168         'Matchbox'
0169     ),
0170     repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0171     run = cms.string('InterfaceMatchboxTest')
0172 )
0173 
0174 
0175 process.ProductionFilterSequence = cms.Sequence(process.generator)
0176 
0177 # Path and EndPath definitions
0178 process.generation_step = cms.Path(process.pgen)
0179 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0180 process.endjob_step = cms.EndPath(process.endOfProcess)
0181 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0182 
0183 # Schedule definition
0184 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step)
0185 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0186 associatePatAlgosToolsTask(process)
0187 # filter all path with the production filter sequence
0188 for path in process.paths:
0189     getattr(process,path).insert(0, process.ProductionFilterSequence)
0190 
0191 
0192 
0193 # Customisation from command line
0194 
0195 # Add early deletion of temporary data products to reduce peak memory need
0196 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0197 process = customiseEarlyDelete(process)
0198 # End adding early deletion