Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 
0005 process = cms.Process('SIM',Run3_DDD)
0006 
0007 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi')
0010 process.load('Configuration.Geometry.GeometryExtended2021_cff')
0011 process.load('Configuration.StandardSequences.MagneticField_cff')
0012 process.load('Configuration.EventContent.EventContent_cff')
0013 process.load('Configuration.StandardSequences.Generator_cff')
0014 process.load('Configuration.StandardSequences.SimIdeal_cff')
0015 process.load('Configuration.Generator.MinBias_14TeV_pythia8_TuneCUETP8M1_cfi')
0016 #process.load('SimG4CMS.Calo.PythiaMinBias_cfi')
0017 process.load('SimG4Core.PhysicsLists.physicsQGSP_FTFP_BERT_G4106_cfi')
0018 #process.load('SimG4Core.PhysicsLists.physicsQGSP_FTFP_BERT_G4104_cfi')
0019 #process.load('SimG4Core.PhysicsLists.physicsQGSP_BERT_G4104_cfi')
0020 
0021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0022 from Configuration.AlCa.GlobalTag import GlobalTag
0023 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0024 
0025 if 'MessageLogger' in process.__dict__:
0026     process.MessageLogger.PhysicsList=dict()
0027 
0028 process.source = cms.Source("EmptySource")
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(2)
0032 )
0033 
0034 process.load("IOMC.RandomEngine.IOMC_cff")
0035 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0036 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0037 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0038 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0039 
0040 process.generation_step = cms.Path(process.pgen)
0041 process.simulation_step = cms.Path(process.psim)
0042 
0043 #process.generator.pythiaHepMCVerbosity = False
0044 #process.generator.pythiaPylistVerbosity = 0
0045 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EMM'
0046 
0047 # Schedule definition                                                          
0048 process.schedule = cms.Schedule(process.generation_step,
0049                                 process.simulation_step,
0050                                 )
0051 
0052 # filter all path with the production filter sequence                          
0053 for path in process.paths:
0054         getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0055