File indexing completed on 2024-04-06 12:32:31
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("testHF")
0004 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0005
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 process.load('Configuration.StandardSequences.Generator_cff')
0008
0009
0010 process.load("Configuration.StandardSequences.MagneticField_cff")
0011
0012
0013 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0014 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff")
0015 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0016 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0017 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0018 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0019
0020
0021
0022
0023 process.load("SimG4Core.Application.g4SimHits_cfi")
0024
0025 process.MessageLogger = cms.Service("MessageLogger")
0026
0027 process.Timing = cms.Service("Timing")
0028
0029 process.load("IOMC.RandomEngine.IOMC_cff")
0030 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0031 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0032 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0033 process.rndmStore = cms.EDProducer("RandomEngineStateProducer")
0034
0035 process.maxEvents = cms.untracked.PSet(
0036 input = cms.untracked.int32(10)
0037 )
0038
0039 process.source = cms.Source("EmptySource")
0040
0041 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0042 PGunParameters = cms.PSet(
0043 PartID = cms.vint32(211),
0044 MinEta = cms.double(3.02),
0045 MaxEta = cms.double(5.02),
0046 MinPhi = cms.double(-3.14159265359),
0047 MaxPhi = cms.double(3.14159265359),
0048 MinE = cms.double(100.0),
0049 MaxE = cms.double(100.0)
0050 ),
0051 AddAntiParticle = cms.bool(False),
0052 Verbosity = cms.untracked.int32(0),
0053 firstRun = cms.untracked.uint32(1)
0054 )
0055
0056 process.mix = cms.EDProducer("MixingModule",
0057 bunchspace = cms.int32(25)
0058 )
0059
0060 process.o1 = cms.OutputModule("PoolOutputModule",
0061 fileName = cms.untracked.string('my_output.root')
0062 )
0063
0064 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
0065 process.outpath = cms.EndPath(process.o1)
0066 process.VtxSmeared.SigmaX = 0.00001
0067 process.VtxSmeared.SigmaY = 0.00001
0068 process.VtxSmeared.SigmaZ = 0.00001
0069 process.g4SimHits.UseMagneticField = False
0070
0071
0072