Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:06:54

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_Dummy_ConfigFile_cff.py --fileout file:Herwigpp_ConfigFile_GEN_SIM.root --mc --eventcontent RAWSIM --datatier GEN-SIM --conditions auto:run2_mc --beamspot Realistic25ns13TeVEarly2017Collision --step GEN,SIM --nThreads 8 --geometry DB:Extended --era Run2_2017 --python_filename Herwig7Test_ConfigFile_GEN_SIM.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n 100
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 # 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.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 # Input source
0033 process.source = cms.Source("EmptySource")
0034 
0035 process.options = cms.untracked.PSet(
0036 
0037 )
0038 
0039 # Production Info
0040 process.configurationMetadata = cms.untracked.PSet(
0041     annotation = cms.untracked.string('GeneratorInterface/Herwig7Interface/python/Herwig7_Dummy_ConfigFile_cff.py nevts:5'),
0042     name = cms.untracked.string('Applications'),
0043     version = cms.untracked.string('$Revision: 1.19 $')
0044 )
0045 
0046 # Output definition
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:Herwigpp_ConfigFile_GEN_SIM.root'),
0060     outputCommands = process.RAWSIMEventContent.outputCommands,
0061     splitLevel = cms.untracked.int32(0)
0062 )
0063 
0064 # Additional output definition
0065 
0066 # Other statements
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     configFiles = cms.vstring('LHC-Matchbox.in'),
0074     crossSection = cms.untracked.double(-1),
0075     dataLocation = cms.string('${HERWIGPATH:-6}'),
0076     eventHandlers = cms.string('/Herwig/EventHandlers'),
0077     filterEfficiency = cms.untracked.double(1.0),
0078     generatorModule = cms.string('/Herwig/Generators/EventGenerator'),
0079     parameterSets = cms.vstring(),
0080     repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'),
0081     run = cms.string('InterfaceMatchboxTest'),
0082     runModeList = cms.untracked.string("read,integrate"),
0083 )
0084 
0085 
0086 process.ProductionFilterSequence = cms.Sequence(process.generator)
0087 
0088 # Path and EndPath definitions
0089 process.generation_step = cms.Path(process.pgen)
0090 process.simulation_step = cms.Path(process.psim)
0091 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0092 process.endjob_step = cms.EndPath(process.endOfProcess)
0093 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0094 
0095 # Schedule definition
0096 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.RAWSIMoutput_step)
0097 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0098 associatePatAlgosToolsTask(process)
0099 
0100 #Setup FWK for multithreaded
0101 process.options.numberOfThreads=cms.untracked.uint32(1)
0102 process.options.numberOfStreams=cms.untracked.uint32(0)
0103 # filter all path with the production filter sequence
0104 for path in process.paths:
0105     getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq 
0106 
0107 # customisation of the process.
0108 
0109 # Automatic addition of the customisation function from Configuration.DataProcessing.Utils
0110 from Configuration.DataProcessing.Utils import addMonitoring 
0111 
0112 #call to customisation function addMonitoring imported from Configuration.DataProcessing.Utils
0113 process = addMonitoring(process)
0114 
0115 # End of customisation functions
0116 
0117 # Customisation from command line
0118 
0119 # Add early deletion of temporary data products to reduce peak memory need
0120 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0121 process = customiseEarlyDelete(process)
0122 # End adding early deletion