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