Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-23 00:29:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 process = cms.Process('G4PrintGeometry',Run3_DDD)
0005 process.load('Configuration.Geometry.GeometryExtended2021Reco_cff')
0006 
0007 #from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0008 #process = cms.Process('G4PrintGeometry',Run3_dd4hep)
0009 #process.load('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff')
0010 
0011 process.load('SimGeneral.HepPDTESSource.pdt_cfi')
0012 
0013 process.load('IOMC.RandomEngine.IOMC_cff')
0014 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0015 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0016 process.load('FWCore.MessageService.MessageLogger_cfi')
0017 process.load('SimG4Core.Application.g4SimHits_cfi')
0018 process.load('SimG4Core.PrintGeomInfo.printGeomSolids_cff')
0019 
0020 if hasattr(process,'MessageLogger'):
0021     process.MessageLogger.G4cout=dict()
0022     process.MessageLogger.G4cerr=dict()
0023     process.MessageLogger.PrintGeom=dict()
0024 
0025 process.source = cms.Source("EmptySource")
0026 
0027 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0028     PGunParameters = cms.PSet(
0029         PartID = cms.vint32(14),
0030         MinEta = cms.double(-3.5),
0031         MaxEta = cms.double(3.5),
0032         MinPhi = cms.double(-3.14159265359),
0033         MaxPhi = cms.double(3.14159265359),
0034         MinE   = cms.double(9.99),
0035         MaxE   = cms.double(10.01)
0036     ),
0037     AddAntiParticle = cms.bool(False),
0038     Verbosity       = cms.untracked.int32(0),
0039     firstRun        = cms.untracked.uint32(1)
0040 )
0041 
0042 process.maxEvents = cms.untracked.PSet(
0043     input = cms.untracked.int32(1)
0044 )
0045 
0046 process.g4SimHits.UseMagneticField = False
0047 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0048 process.g4SimHits.Physics.DummyEMPhysics = True
0049 process.g4SimHits.Physics.DefaultCutValue = 10. 
0050 process.g4SimHits.LHCTransport = False
0051 
0052 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.printGeomSolids)