Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-24 09:52:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 
0005 process = cms.Process('SIM',Run2_2018)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.Geometry.GeometryExtended2018Plan36Reco_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2018Collision_cfi')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 process.load('Calibration.IsolatedParticles.studyCaloGen_cfi')
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(10),
0024     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0025 )
0026 
0027 # Input source
0028 process.source = cms.Source("EmptySource")
0029 
0030 process.options = cms.untracked.PSet(
0031     FailPath = cms.untracked.vstring(),
0032     IgnoreCompletely = cms.untracked.vstring(),
0033     Rethrow = cms.untracked.vstring(),
0034     SkipEvent = cms.untracked.vstring(),
0035     allowUnscheduled = cms.obsolete.untracked.bool,
0036     canDeleteEarly = cms.untracked.vstring(),
0037     emptyRunLumiMode = cms.obsolete.untracked.string,
0038     eventSetup = cms.untracked.PSet(
0039         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0040 
0041         ),
0042         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0043     ),
0044     fileMode = cms.untracked.string('FULLMERGE'),
0045     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0046     makeTriggerResults = cms.obsolete.untracked.bool,
0047     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0048     numberOfConcurrentRuns = cms.untracked.uint32(1),
0049     numberOfStreams = cms.untracked.uint32(0),
0050     numberOfThreads = cms.untracked.uint32(1),
0051     printDependencies = cms.untracked.bool(False),
0052     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0053     throwIfIllegalParameter = cms.untracked.bool(True),
0054     wantSummary = cms.untracked.bool(False)
0055 )
0056 
0057 # Production Info
0058 process.configurationMetadata = cms.untracked.PSet(
0059     annotation = cms.untracked.string('MinBias_13TeV_TuneCUETP8M1_cfi nevts:10'),
0060     name = cms.untracked.string('Applications'),
0061     version = cms.untracked.string('$Revision: 1.19 $')
0062 )
0063 
0064 # Other statements
0065 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0066 from Configuration.AlCa.GlobalTag import GlobalTag
0067 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '')
0068 
0069 
0070 process.load("IOMC.RandomEngine.IOMC_cff")
0071 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0072 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0073 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0074 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0075 
0076 from Configuration.Generator.PythiaUESettings_cfi import *
0077 process.generator = cms.EDFilter("Pythia6GeneratorFilter",
0078     pythiaHepMCVerbosity = cms.untracked.bool(False),
0079     maxEventsToPrint = cms.untracked.int32(0),
0080     pythiaPylistVerbosity = cms.untracked.int32(0),
0081     filterEfficiency = cms.untracked.double(1.0),
0082     comEnergy = cms.double(13000.0),
0083     PythiaParameters = cms.PSet(
0084         pythiaUESettingsBlock,
0085         processParameters = cms.vstring('MSEL=0         ! User defined processes',
0086             'MSUB(11)=1     ! Min bias process',
0087             'MSUB(12)=1     ! Min bias process',
0088             'MSUB(13)=1     ! Min bias process',
0089             'MSUB(28)=1     ! Min bias process',
0090             'MSUB(53)=1     ! Min bias process',
0091             'MSUB(68)=1     ! Min bias process',
0092             'MSUB(92)=1     ! Min bias process, single diffractive',
0093             'MSUB(93)=1     ! Min bias process, single diffractive',
0094             'MSUB(94)=1     ! Min bias process, double diffractive',
0095             'MSUB(95)=1     ! Min bias process'),
0096         # This is a vector of ParameterSet names to be read, in this order
0097         parameterSets = cms.vstring('pythiaUESettings',
0098             'processParameters')
0099     )
0100 )
0101 
0102 process.TFileService = cms.Service("TFileService",
0103     fileName = cms.string('studyCaloGen.root')
0104 )
0105 
0106 # Event output
0107 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0108     SelectEvents = cms.untracked.PSet(
0109         SelectEvents = cms.vstring('generation_step')
0110     ),
0111     dataset = cms.untracked.PSet(
0112         dataTier = cms.untracked.string('GEN-SIM'),
0113         filterName = cms.untracked.string('')
0114     ),
0115     fileName = cms.untracked.string('file:simevent_minbias.root'),
0116     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0117     splitLevel = cms.untracked.int32(0)
0118 )
0119 
0120 process.ProductionFilterSequence = cms.Sequence(process.generator)
0121 
0122 # Path and EndPath definitions
0123 process.generation_step = cms.Path(process.pgen)
0124 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0125 process.endjob_step = cms.EndPath(process.endOfProcess)
0126 process.analysis_step = cms.EndPath(process.studyCaloGen)
0127 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0128 
0129 # Schedule definition
0130 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.analysis_step,process.FEVTDEBUGoutput_step)
0131 
0132 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0133 associatePatAlgosToolsTask(process)
0134 # filter all path with the production filter sequence
0135 for path in process.paths:
0136     getattr(process,path).insert(0, process.ProductionFilterSequence)
0137 
0138 
0139 # Customisation from command line
0140 
0141 # Add early deletion of temporary data products to reduce peak memory need
0142 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0143 process = customiseEarlyDelete(process)
0144 # End adding early deletion