Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-13 22:49:55

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_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
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_Standalone_DYLO_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_Standalone_DYLO_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("Herwig7HepMC3GeneratorFilter",
0093     configFiles = cms.vstring(),
0094     eventsToPrint = cms.untracked.uint32(1),
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 # Path and EndPath definitions
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 # Schedule definition
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 # filter all path with the production filter sequence
0166 for path in process.paths:
0167     getattr(process,path).insert(0, process.ProductionFilterSequence)
0168 
0169 
0170 
0171 # Customisation from command line
0172 
0173 # Add early deletion of temporary data products to reduce peak memory need
0174 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0175 process = customiseEarlyDelete(process)
0176 # End adding early deletion