File indexing completed on 2024-04-06 12:15:17
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("PROD")
0004 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0005 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0006 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0007
0008 process.load("Geometry.MuonCommonData.testMFXML_cfi")
0009 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0010 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0011 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0012 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0013 process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi")
0014 process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")
0015
0016 process.load('Configuration.StandardSequences.Generator_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018
0019 process.load("Configuration.StandardSequences.MagneticField_cff")
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 from Configuration.AlCa.autoCond import autoCond
0022 process.GlobalTag.globaltag = autoCond['run1_mc']
0023
0024 process.load('FWCore.MessageService.MessageLogger_cfi')
0025 if 'MessageLogger' in process.__dict__:
0026 process.MessageLogger.G4cerr=dict()
0027 process.MessageLogger.G4cout=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 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0035
0036 process.source = cms.Source("EmptySource")
0037
0038 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0039 PGunParameters = cms.PSet(
0040 PartID = cms.vint32(13),
0041 MinEta = cms.double(1.6),
0042 MaxEta = cms.double(2.5),
0043 MinPhi = cms.double(-3.14159265359),
0044 MaxPhi = cms.double(3.14159265359),
0045 MinE = cms.double(99.99),
0046 MaxE = cms.double(100.01)
0047 ),
0048 AddAntiParticle = cms.bool(False),
0049 firstRun = cms.untracked.uint32(1),
0050 Verbosity = cms.untracked.int32(0)
0051 )
0052
0053 process.maxEvents = cms.untracked.PSet(
0054 input = cms.untracked.int32(5)
0055 )
0056
0057 process.generation_step = cms.Path(process.pgen)
0058 process.simulation_step = cms.Path(process.psim)
0059 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0060
0061 process.schedule = cms.Schedule(process.generation_step,
0062 process.genfiltersummary_step,
0063 process.simulation_step)
0064 process.g4SimHits.UseMagneticField = False
0065
0066
0067 for path in process.paths:
0068 getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0069