CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
g4TestGeometry_cfi Namespace Reference

Functions

def checkOverlap
 

Function Documentation

def g4TestGeometry_cfi.checkOverlap (   process)

Definition at line 3 of file g4TestGeometry_cfi.py.

References gpuVertexFinder.return.

Referenced by reco::tau::RecoTauConstructor.addTauChargedHadron().

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