Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-17 23:36:22

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0003 
0004 process = cms.Process("PROD",Run3_DDD)
0005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0006 
0007 process.load("Geometry.CMSCommonData.hcalOnlyGeometryXML_cfi")
0008 
0009 process.load("SimG4Core.Application.g4SimHits_cfi")
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 
0012 if 'MessageLogger' in process.__dict__:
0013     process.MessageLogger.G4cerr=dict()
0014     process.MessageLogger.G4cout=dict()
0015     process.MessageLogger.HCalGeom=dict()
0016 
0017 process.Timing = cms.Service("Timing")
0018 
0019 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0020     moduleSeeds = cms.PSet(
0021         generator = cms.untracked.uint32(456789),
0022         g4SimHits = cms.untracked.uint32(9876),
0023         VtxSmeared = cms.untracked.uint32(12345)
0024     ),
0025     sourceSeed = cms.untracked.uint32(98765)
0026 )
0027 
0028 process.source = cms.Source("EmptySource",
0029     firstRun        = cms.untracked.uint32(1),
0030     firstEvent      = cms.untracked.uint32(1)
0031 )
0032 
0033 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0034     PGunParameters = cms.PSet(
0035         PartID = cms.vint32(211),
0036         MinEta = cms.double(0.5655),
0037         MaxEta = cms.double(0.5655),
0038         MinPhi = cms.double(-0.1309),
0039         MaxPhi = cms.double(-0.1309),
0040         MinE   = cms.double(9.99),
0041         MaxE   = cms.double(10.01)
0042     ),
0043     Verbosity = cms.untracked.int32(0),
0044     AddAntiParticle = cms.bool(False)
0045 )
0046 
0047 process.maxEvents = cms.untracked.PSet(
0048     input = cms.untracked.int32(1)
0049 )
0050 process.p1 = cms.Path(process.generator*process.g4SimHits)
0051 process.g4SimHits.UseMagneticField = False
0052 process.g4SimHits.Physics.DefaultCutValue = 1.
0053 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0054     Resolution = cms.untracked.int32(1000),
0055     type       = cms.string('CheckOverlap'),
0056     NodeNames  = cms.untracked.vstring('CMSE')
0057 ))
0058