Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:43

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     IgnoreCompletely = cms.untracked.vstring(),
0036     Rethrow = cms.untracked.vstring(),
0037     TryToContinue = cms.untracked.vstring(),
0038     allowUnscheduled = cms.obsolete.untracked.bool,
0039     canDeleteEarly = cms.untracked.vstring(),
0040     emptyRunLumiMode = cms.obsolete.untracked.string,
0041     eventSetup = cms.untracked.PSet(
0042         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0043             allowAnyLabel_=cms.required.untracked.uint32
0044         ),
0045         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0046     ),
0047     fileMode = cms.untracked.string('FULLMERGE'),
0048     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0049     makeTriggerResults = cms.obsolete.untracked.bool,
0050     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0051     numberOfConcurrentRuns = cms.untracked.uint32(1),
0052     numberOfStreams = cms.untracked.uint32(0),
0053     numberOfThreads = cms.untracked.uint32(1),
0054     printDependencies = cms.untracked.bool(False),
0055     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0056     throwIfIllegalParameter = cms.untracked.bool(True),
0057     wantSummary = cms.untracked.bool(False)
0058 )
0059 
0060 # Production Info
0061 process.configurationMetadata = cms.untracked.PSet(
0062     annotation = cms.untracked.string('GeneratorInterface/Herwig7Interface/python/Herwig7_Matchbox_ppToee_cff.py nevts:100'),
0063     name = cms.untracked.string('Applications'),
0064     version = cms.untracked.string('$Revision: 1.19 $')
0065 )
0066 
0067 # Output definition
0068 
0069 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0070     SelectEvents = cms.untracked.PSet(
0071         SelectEvents = cms.vstring('generation_step')
0072     ),
0073     compressionAlgorithm = cms.untracked.string('LZMA'),
0074     compressionLevel = cms.untracked.int32(1),
0075     dataset = cms.untracked.PSet(
0076         dataTier = cms.untracked.string('GEN'),
0077         filterName = cms.untracked.string('')
0078     ),
0079     eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
0080     fileName = cms.untracked.string('Herwig7_Matchbox_ppToee_cff_py_GEN.root'),
0081     outputCommands = process.RAWSIMEventContent.outputCommands,
0082     splitLevel = cms.untracked.int32(0)
0083 )
0084 
0085 # Additional output definition
0086 
0087 # Other statements
0088 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0089 from Configuration.AlCa.GlobalTag import GlobalTag
0090 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0091 
0092 process.generator = cms.EDFilter("Herwig7GeneratorFilter",
0093     Matchbox = cms.vstring(
0094         'read snippets/Matchbox.in', 
0095         'read snippets/PPCollider.in', 
0096         'cd /Herwig/EventHandlers', 
0097         'set EventHandler:LuminosityFunction:Energy 13000*GeV', 
0098         '## Model assumptions', 
0099         'read Matchbox/StandardModelLike.in', 
0100         'read Matchbox/DiagonalCKM.in', 
0101         '## Set the order of the couplings', 
0102         'cd /Herwig/MatrixElements/Matchbox', 
0103         'set Factory:OrderInAlphaS 0', 
0104         'set Factory:OrderInAlphaEW 2', 
0105         '## Select the process', 
0106         'do Factory:Process p p -> e+ e-', 
0107         '# read Matchbox/MadGraph-GoSam.in', 
0108         '# read Matchbox/MadGraph-MadGraph.in', 
0109         'read Matchbox/MadGraph-OpenLoops.in', 
0110         'set /Herwig/Cuts/ChargedLeptonPairMassCut:MinMass 60*GeV', 
0111         'set /Herwig/Cuts/ChargedLeptonPairMassCut:MaxMass 120*GeV', 
0112         'cd /Herwig/MatrixElements/Matchbox', 
0113         'set Factory:ScaleChoice /Herwig/MatrixElements/Matchbox/Scales/LeptonPairMassScale', 
0114         'read Matchbox/MCatNLO-DefaultShower.in', 
0115         '# read Matchbox/NLO-NoShower.in', 
0116         '# read Matchbox/LO-NoShower.in', 
0117         'read Matchbox/FiveFlavourScheme.in', 
0118         'read Matchbox/MMHT2014.in', 
0119         'do /Herwig/MatrixElements/Matchbox/Factory:ProductionMode'
0120     ),
0121     configFiles = cms.vstring(),
0122     crossSection = cms.untracked.double(-1),
0123     dataLocation = cms.string('${HERWIGPATH:-6}'),
0124     dumpConfig = cms.untracked.string('HerwigConfig.in'),
0125     eventHandlers = cms.string('/Herwig/EventHandlers'),
0126     filterEfficiency = cms.untracked.double(1.0),
0127     generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0128     herwig7CH3AlphaS = cms.vstring(
0129         'cd /Herwig/Shower', 
0130         'set AlphaQCD:AlphaIn 0.118', 
0131         'cd /'
0132     ),
0133     herwig7CH3MPISettings = cms.vstring(
0134         'set /Herwig/Hadronization/ColourReconnector:ReconnectionProbability 0.4712', 
0135         'set /Herwig/UnderlyingEvent/MPIHandler:pTmin0 3.04', 
0136         'set /Herwig/UnderlyingEvent/MPIHandler:InvRadius 1.284', 
0137         'set /Herwig/UnderlyingEvent/MPIHandler:Power 0.1362'
0138     ),
0139     herwig7CH3PDF = cms.vstring(
0140         'cd /Herwig/Partons', 
0141         'create ThePEG::LHAPDF PDFSet_nnlo ThePEGLHAPDF.so', 
0142         'set PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118.LHgrid', 
0143         'set PDFSet_nnlo:RemnantHandler HadronRemnants', 
0144         'set /Herwig/Particles/p+:PDF PDFSet_nnlo', 
0145         'set /Herwig/Particles/pbar-:PDF PDFSet_nnlo', 
0146         'set /Herwig/Partons/PPExtractor:FirstPDF  PDFSet_nnlo', 
0147         'set /Herwig/Partons/PPExtractor:SecondPDF PDFSet_nnlo', 
0148         'set /Herwig/Shower/ShowerHandler:PDFA PDFSet_nnlo', 
0149         'set /Herwig/Shower/ShowerHandler:PDFB PDFSet_nnlo', 
0150         'create ThePEG::LHAPDF PDFSet_lo ThePEGLHAPDF.so', 
0151         'set PDFSet_lo:PDFName NNPDF31_lo_as_0130.LHgrid', 
0152         'set PDFSet_lo:RemnantHandler HadronRemnants', 
0153         'set /Herwig/Shower/ShowerHandler:PDFARemnant PDFSet_lo', 
0154         'set /Herwig/Shower/ShowerHandler:PDFBRemnant PDFSet_lo', 
0155         'set /Herwig/Partons/MPIExtractor:FirstPDF PDFSet_lo', 
0156         'set /Herwig/Partons/MPIExtractor:SecondPDF PDFSet_lo', 
0157         'cd /'
0158     ),
0159     herwig7StableParticlesForDetector = cms.vstring(
0160         'set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm', 
0161         'set /Herwig/Decays/DecayHandler:LifeTimeOption Average'
0162     ),
0163     parameterSets = cms.vstring(
0164         'herwig7CH3PDF', 
0165         'herwig7CH3AlphaS', 
0166         'herwig7StableParticlesForDetector', 
0167         'Matchbox'
0168     ),
0169     repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0170     run = cms.string('InterfaceMatchboxTest')
0171 )
0172 
0173 
0174 process.ProductionFilterSequence = cms.Sequence(process.generator)
0175 
0176 # Path and EndPath definitions
0177 process.generation_step = cms.Path(process.pgen)
0178 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0179 process.endjob_step = cms.EndPath(process.endOfProcess)
0180 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0181 
0182 # Schedule definition
0183 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step)
0184 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0185 associatePatAlgosToolsTask(process)
0186 # filter all path with the production filter sequence
0187 for path in process.paths:
0188     getattr(process,path).insert(0, process.ProductionFilterSequence)
0189 
0190 
0191 
0192 # Customisation from command line
0193 
0194 # Add early deletion of temporary data products to reduce peak memory need
0195 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0196 process = customiseEarlyDelete(process)
0197 # End adding early deletion