Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:13

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0005 
0006 process.load("Geometry.MuonCommonData.testMFXML_cfi")
0007 
0008 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0009 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0010 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0011 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0012 
0013 process.load("SimG4Core.Application.g4SimHits_cfi")
0014 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     cout = cms.untracked.PSet(
0020         G4cerr = cms.untracked.PSet(
0021             limit = cms.untracked.int32(-1)
0022         ),
0023         G4cout = cms.untracked.PSet(
0024             limit = cms.untracked.int32(-1)
0025         ),
0026         MuonGeom = cms.untracked.PSet(
0027             limit = cms.untracked.int32(0)
0028         ),
0029         default = cms.untracked.PSet(
0030             limit = cms.untracked.int32(0)
0031         ),
0032         enable = cms.untracked.bool(True)
0033     )
0034 )
0035 
0036 process.load("IOMC.RandomEngine.IOMC_cff")
0037 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0038 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0039 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0040 
0041 process.source = cms.Source("EmptySource")
0042 
0043 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0044     PGunParameters = cms.PSet(
0045         PartID = cms.vint32(14),
0046         MinEta = cms.double(-3.5),
0047         MaxEta = cms.double(3.5),
0048         MinPhi = cms.double(-3.14159265359),
0049         MaxPhi = cms.double(3.14159265359),
0050         MinE   = cms.double(9.99),
0051         MaxE   = cms.double(10.01)
0052     ),
0053     AddAntiParticle = cms.bool(False),
0054     Verbosity       = cms.untracked.int32(0),
0055     firstRun        = cms.untracked.uint32(1)
0056 )
0057 
0058 process.maxEvents = cms.untracked.PSet(
0059     input = cms.untracked.int32(1)
0060 )
0061 
0062 process.p1 = cms.Path(process.generator*process.g4SimHits)
0063 process.g4SimHits.UseMagneticField = False
0064 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0065 process.g4SimHits.Physics.DummyEMPhysics = True
0066 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0067     type       = cms.string('CheckOverlap'),
0068     Resolution = cms.untracked.int32(1000),
0069     NodeNames  = cms.untracked.vstring('MEP', 'MEN')
0070 ))
0071