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.HcalCommonData.testHcalOnlyGeometryXML_cfi")
0007 #process.load("Geometry.CMSCommonData.cmsAllGeometryXML_cfi")
0008 
0009 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0010 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0011 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0012 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0013 
0014 process.load("SimG4Core.Application.g4SimHits_cfi")
0015 
0016 process.MessageLogger = cms.Service("MessageLogger",
0017     cerr = cms.untracked.PSet(
0018         enable = cms.untracked.bool(False)
0019     ),
0020     cout = cms.untracked.PSet(
0021         G4cerr = cms.untracked.PSet(
0022             limit = cms.untracked.int32(-1)
0023         ),
0024         G4cout = cms.untracked.PSet(
0025             limit = cms.untracked.int32(-1)
0026         ),
0027         HCalGeom = cms.untracked.PSet(
0028             limit = cms.untracked.int32(-1)
0029         ),
0030         SimG4CoreGeometry = cms.untracked.PSet(
0031             limit = cms.untracked.int32(0)
0032         ),
0033         default = cms.untracked.PSet(
0034             limit = cms.untracked.int32(0)
0035         ),
0036         enable = cms.untracked.bool(True),
0037         threshold = cms.untracked.string('DEBUG')
0038     ),
0039     debugModules = cms.untracked.vstring('*')
0040 )
0041 
0042 process.load("IOMC.RandomEngine.IOMC_cff")
0043 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0044 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0045 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0046 
0047 process.source = cms.Source("EmptySource")
0048 
0049 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0050     PGunParameters = cms.PSet(
0051         PartID = cms.vint32(14),
0052         MinEta = cms.double(-3.5),
0053         MaxEta = cms.double(3.5),
0054         MinPhi = cms.double(-3.14159265359),
0055         MaxPhi = cms.double(3.14159265359),
0056         MinE   = cms.double(9.99),
0057         MaxE   = cms.double(10.01)
0058     ),
0059     AddAntiParticle = cms.bool(False),
0060     Verbosity       = cms.untracked.int32(0),
0061     firstRun        = cms.untracked.uint32(1)
0062 )
0063 
0064 process.maxEvents = cms.untracked.PSet(
0065     input = cms.untracked.int32(1)
0066 )
0067 
0068 process.p1 = cms.Path(process.generator*process.g4SimHits)
0069 process.g4SimHits.UseMagneticField = False
0070 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0071 process.g4SimHits.Physics.DummyEMPhysics = True
0072 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0073     type       = cms.string('CheckOverlap'),
0074     Resolution = cms.untracked.int32(1000),
0075     NodeNames  = cms.untracked.vstring('CALO')
0076 ))
0077