CMS 3D CMS Logo

g4PrintGeomSummary_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def printGeomSummary(process):
4 
5  process.load("SimGeneral.HepPDTESSource.pdt_cfi")
6 
7  process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
8  process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
9  process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
10  process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
11  process.load("IOMC.RandomEngine.IOMC_cff")
12  process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
13  process.load('GeneratorInterface.Core.generatorSmeared_cfi')
14  process.load('FWCore.MessageService.MessageLogger_cfi')
15 
16  process.load("SimG4Core.Application.g4SimHits_cfi")
17 
18  process.source = cms.Source("EmptySource")
19 
20  process.generator = cms.EDProducer("FlatRandomEGunProducer",
21  PGunParameters = cms.PSet(
22  PartID = cms.vint32(14),
23  MinEta = cms.double(-3.5),
24  MaxEta = cms.double(3.5),
25  MinPhi = cms.double(-3.14159265359),
26  MaxPhi = cms.double(3.14159265359),
27  MinE = cms.double(9.99),
28  MaxE = cms.double(10.01)
29  ),
30  AddAntiParticle = cms.bool(False),
31  Verbosity = cms.untracked.int32(0),
32  firstRun = cms.untracked.uint32(1)
33  )
34 
35  process.maxEvents = cms.untracked.PSet(
36  input = cms.untracked.int32(1)
37  )
38 
39  process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
40 
41  process.g4SimHits.UseMagneticField = False
42  process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
43  process.g4SimHits.Physics.DummyEMPhysics = True
44  process.g4SimHits.Physics.DefaultCutValue = 10.
45  process.g4SimHits.LHCTransport = False
46  process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
47  NodeNames = cms.untracked.vstring(),
48  type = cms.string('PrintGeomSummary')
49  ))
50 
51  return(process)
return((rh ^ lh) &mask)