File indexing completed on 2024-04-06 12:30:25
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import *
0004
0005 process = cms.Process("PROD")
0006
0007 process.maxEvents = cms.untracked.PSet(
0008 input = cms.untracked.int32(100)
0009 )
0010
0011 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0012 process.load("Configuration.StandardSequences.MagneticField_cff")
0013 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0014 process.load("SimG4Core.Application.g4SimHits_cfi")
0015
0016 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0017 saveFileName = cms.untracked.string(''),
0018 theSource = cms.PSet(
0019 initialSeed = cms.untracked.uint32(7824367),
0020 engineName = cms.untracked.string('HepJamesRandom')
0021 ),
0022 generator = cms.PSet(
0023 initialSeed = cms.untracked.uint32(123456789),
0024 engineName = cms.untracked.string('HepJamesRandom')
0025 ),
0026 VtxSmeared = cms.PSet(
0027 initialSeed = cms.untracked.uint32(98765432),
0028 engineName = cms.untracked.string('HepJamesRandom')
0029 ),
0030 g4SimHits = cms.PSet(
0031 initialSeed = cms.untracked.uint32(11),
0032 engineName = cms.untracked.string('HepJamesRandom')
0033 ),
0034 SimEcalTBG4Object = cms.PSet(
0035 initialSeed = cms.untracked.uint32(12),
0036 engineName = cms.untracked.string('HepJamesRandom')
0037 ),
0038 mix = cms.PSet(
0039 initialSeed = cms.untracked.uint32(12345),
0040 engineName = cms.untracked.string('HepJamesRandom')
0041 ),
0042 simEcalUnsuppressedDigis = cms.PSet(
0043 initialSeed = cms.untracked.uint32(1234567),
0044 engineName = cms.untracked.string('HepJamesRandom')
0045 ),
0046 )
0047
0048 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0049 process.source = cms.Source("EmptySource")
0050
0051 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0052 PGunParameters = cms.PSet(
0053 PartID = cms.vint32(11),
0054 MinE = cms.double(50.001),
0055 MaxE = cms.double(49.999),
0056 MinEta = cms.double(-1.0),
0057 MaxEta = cms.double(1.0),
0058 MinPhi = cms.double(-3.14159265359),
0059 MaxPhi = cms.double(3.14159265359)
0060 ),
0061 Verbosity = cms.untracked.int32(0),
0062 psethack = cms.string('single electron'),
0063 AddAntiParticle = cms.bool(False),
0064 )
0065
0066 process.load("SimG4Core.GFlash.cmsGflashGeometryXML_cfi")
0067 process.load("SimG4Core.GFlash.GflashSim_cfi")
0068
0069 process.Timing = cms.Service("Timing")
0070
0071 process.o1 = cms.OutputModule("PoolOutputModule",
0072 fileName = cms.untracked.string('sim_gflash_em.root')
0073 )
0074
0075 process.p1 = cms.Path(process.generator*process.g4SimHits)
0076 process.outpath = cms.EndPath(process.o1)