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.CMSCommonData.cmsExtendedGeometry2023HGCalMuonXML_cfi")
0007 process.load("Geometry.HGCalCommonData.testHGCXML_cfi")
0008 
0009 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0010 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0011 process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")
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         HGCalGeom = cms.untracked.PSet(
0027             limit = cms.untracked.int32(-1)
0028         ),
0029         default = cms.untracked.PSet(
0030             limit = cms.untracked.int32(0)
0031         ),
0032         enable = cms.untracked.bool(True),
0033         threshold = cms.untracked.string('DEBUG')
0034     ),
0035     debugModules = cms.untracked.vstring('*')
0036 )
0037 
0038 process.load("IOMC.RandomEngine.IOMC_cff")
0039 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0040 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0041 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0042 
0043 process.source = cms.Source("EmptySource")
0044 
0045 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0046     PGunParameters = cms.PSet(
0047         PartID = cms.vint32(14),
0048         MinEta = cms.double(-3.5),
0049         MaxEta = cms.double(3.5),
0050         MinPhi = cms.double(-3.14159265359),
0051         MaxPhi = cms.double(3.14159265359),
0052         MinE   = cms.double(9.99),
0053         MaxE   = cms.double(10.01)
0054     ),
0055     AddAntiParticle = cms.bool(False),
0056     Verbosity       = cms.untracked.int32(0),
0057     firstRun        = cms.untracked.uint32(1)
0058 )
0059 
0060 process.maxEvents = cms.untracked.PSet(
0061     input = cms.untracked.int32(1)
0062 )
0063 
0064 process.p1 = cms.Path(process.generator*process.g4SimHits)
0065 process.g4SimHits.UseMagneticField = False
0066 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0067 process.g4SimHits.Physics.DummyEMPhysics = True
0068 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0069     type       = cms.string('CheckOverlap'),
0070     Resolution = cms.untracked.int32(1000),
0071     NodeNames  = cms.untracked.vstring('HGCal')
0072 ))
0073