Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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('Geometry.CMSCommonData.cmsExtendedGeometry2021XML_cfi')
0011 process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi')
0012 process.load('Geometry.EcalCommonData.ecalSimulationParameters_cff')
0013 process.load('Geometry.HcalCommonData.hcalDDDSimConstants_cff')
0014 process.load('Geometry.MuonNumbering.muonGeometryConstants_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('Configuration.StandardSequences.Generator_cff')
0018 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0019 process.load('Configuration.StandardSequences.SimIdeal_cff')
0020 process.load('Configuration.StandardSequences.EndOfProcess_cff')
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.G4cerr=dict()
0027     process.MessageLogger.MuonSim=dict()
0028     process.MessageLogger.MuonGeom=dict()
0029 
0030 process.load("IOMC.RandomEngine.IOMC_cff")
0031 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0032 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0033 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036     input = cms.untracked.int32(100)
0037 )
0038 
0039 process.source = cms.Source("EmptySource",
0040     firstRun        = cms.untracked.uint32(1),
0041     firstEvent      = cms.untracked.uint32(1)
0042 )
0043 
0044 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0045     PGunParameters = cms.PSet(
0046         PartID = cms.vint32(13),
0047         MinEta = cms.double(-2.4),
0048         MaxEta = cms.double(2.4),
0049         MinPhi = cms.double(-3.14159265359),
0050         MaxPhi = cms.double(3.14159265359),
0051         MinPt  = cms.double(100.),
0052         MaxPt  = cms.double(100.)
0053     ),
0054     Verbosity       = cms.untracked.int32(0),
0055     AddAntiParticle = cms.bool(True)
0056 )
0057 
0058 process.Timing = cms.Service("Timing")
0059 
0060 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0061     oncePerEventMode = cms.untracked.bool(True),
0062     showMallocInfo = cms.untracked.bool(True),
0063     dump = cms.untracked.bool(True),
0064     ignoreTotal = cms.untracked.int32(1)
0065 )
0066 
0067 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0068 process.ProductionFilterSequence = cms.Sequence(process.generator)
0069 
0070 process.generation_step = cms.Path(process.pgen)
0071 process.simulation_step = cms.Path(process.psim)
0072 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0073 process.endjob_step = cms.EndPath(process.endOfProcess)
0074 
0075 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
0076 
0077 # Schedule definition
0078 process.schedule = cms.Schedule(process.generation_step,
0079 #                                process.genfiltersummary_step,
0080                                 process.simulation_step,
0081                                 process.endjob_step
0082                                 )
0083 
0084 # filter all path with the production filter sequence
0085 for path in process.paths:
0086         getattr(process,path).insert(0, process.ProductionFilterSequence)