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_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("Herwig7GeneratorFilter",
0093     configFiles = cms.vstring(),
0094     crossSection = cms.untracked.double(-1),
0095     dataLocation = cms.string('${HERWIGPATH:-6}'),
0096     eventHandlers = cms.string('/Herwig/EventHandlers'),
0097     filterEfficiency = cms.untracked.double(1.0),
0098     generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0099     herwig7CH3AlphaS = cms.vstring(
0100         'cd /Herwig/Shower', 
0101         'set AlphaQCD:AlphaIn 0.118', 
0102         'cd /'
0103     ),
0104     herwig7CH3MPISettings = cms.vstring(
0105         'set /Herwig/Hadronization/ColourReconnector:ReconnectionProbability 0.4712', 
0106         'set /Herwig/UnderlyingEvent/MPIHandler:pTmin0 3.04', 
0107         'set /Herwig/UnderlyingEvent/MPIHandler:InvRadius 1.284', 
0108         'set /Herwig/UnderlyingEvent/MPIHandler:Power 0.1362'
0109     ),
0110     herwig7CH3PDF = cms.vstring(
0111         'cd /Herwig/Partons', 
0112         'create ThePEG::LHAPDF PDFSet_nnlo ThePEGLHAPDF.so', 
0113         'set PDFSet_nnlo:PDFName NNPDF31_nnlo_as_0118.LHgrid', 
0114         'set PDFSet_nnlo:RemnantHandler HadronRemnants', 
0115         'set /Herwig/Particles/p+:PDF PDFSet_nnlo', 
0116         'set /Herwig/Particles/pbar-:PDF PDFSet_nnlo', 
0117         'set /Herwig/Partons/PPExtractor:FirstPDF  PDFSet_nnlo', 
0118         'set /Herwig/Partons/PPExtractor:SecondPDF PDFSet_nnlo', 
0119         'set /Herwig/Shower/ShowerHandler:PDFA PDFSet_nnlo', 
0120         'set /Herwig/Shower/ShowerHandler:PDFB PDFSet_nnlo', 
0121         'create ThePEG::LHAPDF PDFSet_lo ThePEGLHAPDF.so', 
0122         'set PDFSet_lo:PDFName NNPDF31_lo_as_0130.LHgrid', 
0123         'set PDFSet_lo:RemnantHandler HadronRemnants', 
0124         'set /Herwig/Shower/ShowerHandler:PDFARemnant PDFSet_lo', 
0125         'set /Herwig/Shower/ShowerHandler:PDFBRemnant PDFSet_lo', 
0126         'set /Herwig/Partons/MPIExtractor:FirstPDF PDFSet_lo', 
0127         'set /Herwig/Partons/MPIExtractor:SecondPDF PDFSet_lo', 
0128         'cd /'
0129     ),
0130     herwig7StableParticlesForDetector = cms.vstring(
0131         'set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm', 
0132         'set /Herwig/Decays/DecayHandler:LifeTimeOption Average'
0133     ),
0134     parameterSets = cms.vstring(
0135         'herwig7CH3PDF', 
0136         'herwig7CH3AlphaS', 
0137         'herwig7StableParticlesForDetector', 
0138         'pptoll'
0139     ),
0140     pptoll = cms.vstring(
0141         'read snippets/PPCollider.in', 
0142         'cd /Herwig/Generators', 
0143         'set EventGenerator:EventHandler:LuminosityFunction:Energy 13000.0', 
0144         'cd /Herwig/MatrixElements/', 
0145         'insert SubProcess:MatrixElements[0] MEqq2gZ2ff'
0146     ),
0147     repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0148     run = cms.string('InterfaceMatchboxTest')
0149 )
0150 
0151 
0152 process.ProductionFilterSequence = cms.Sequence(process.generator)
0153 
0154 # Path and EndPath definitions
0155 process.generation_step = cms.Path(process.pgen)
0156 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0157 process.endjob_step = cms.EndPath(process.endOfProcess)
0158 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0159 
0160 # Schedule definition
0161 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step)
0162 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0163 associatePatAlgosToolsTask(process)
0164 # filter all path with the production filter sequence
0165 for path in process.paths:
0166     getattr(process,path).insert(0, process.ProductionFilterSequence)
0167 
0168 
0169 
0170 # Customisation from command line
0171 
0172 # Add early deletion of temporary data products to reduce peak memory need
0173 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0174 process = customiseEarlyDelete(process)
0175 # End adding early deletion