Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-14 22:36:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def printGeomInfo(process):
0004 
0005     process.load('SimGeneral.HepPDTESSource.pdt_cfi')
0006 
0007     process.load('IOMC.RandomEngine.IOMC_cff')
0008     process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0009     process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0010     process.load('FWCore.MessageService.MessageLogger_cfi')
0011     process.load('SimG4Core.Application.g4SimHits_cfi')
0012 
0013     process.source = cms.Source("EmptySource")
0014 
0015     process.generator = cms.EDProducer("FlatRandomEGunProducer",
0016         PGunParameters = cms.PSet(
0017             PartID = cms.vint32(14),
0018             MinEta = cms.double(-3.5),
0019             MaxEta = cms.double(3.5),
0020             MinPhi = cms.double(-3.14159265359),
0021             MaxPhi = cms.double(3.14159265359),
0022             MinE   = cms.double(9.99),
0023             MaxE   = cms.double(10.01)
0024         ),
0025         AddAntiParticle = cms.bool(False),
0026         Verbosity       = cms.untracked.int32(0),
0027         firstRun        = cms.untracked.uint32(1)
0028     )
0029 
0030     process.maxEvents = cms.untracked.PSet(
0031         input = cms.untracked.int32(1)
0032     )
0033 
0034     process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
0035 
0036     process.g4SimHits.UseMagneticField = False
0037     process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0038     process.g4SimHits.Physics.DummyEMPhysics = True
0039     process.g4SimHits.Physics.DefaultCutValue = 10. 
0040     process.g4SimHits.LHCTransport = False
0041 
0042     process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0043         DumpSummary    = cms.untracked.bool(True),
0044         DumpLVTree     = cms.untracked.bool(True),
0045         DumpMaterial   = cms.untracked.bool(False),
0046         DumpLVList     = cms.untracked.bool(True),
0047         DumpLV         = cms.untracked.bool(True),
0048         DumpSolid      = cms.untracked.bool(True),
0049         DumpAttributes = cms.untracked.bool(False),
0050         DumpPV         = cms.untracked.bool(True),
0051         DumpRotation   = cms.untracked.bool(False),
0052         DumpReplica    = cms.untracked.bool(False),
0053         DumpTouch      = cms.untracked.bool(False),
0054         DumpSense      = cms.untracked.bool(False),
0055         DumpParams     = cms.untracked.bool(False),
0056         DD4hep         = cms.untracked.bool(False),
0057         Name           = cms.untracked.string('TotemT*'),
0058         Names          = cms.untracked.vstring(' '),
0059         type           = cms.string('PrintGeomInfoAction')
0060     ))
0061 
0062     return(process)