CMS 3D CMS Logo

Functions
g4PrintGeomSummary_cfi Namespace Reference

Functions

def printGeomSummary (process)
 

Function Documentation

◆ printGeomSummary()

def g4PrintGeomSummary_cfi.printGeomSummary (   process)

Definition at line 3 of file g4PrintGeomSummary_cfi.py.

References mathSSE.return().

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