CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
testOverlap_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #------------------------------------------------------------
4 # This is a central part of geometry test implemented in this
5 # sub-library. This file is used by test fragments from tets
6 # sub-directory. It is mandatory for these tests disabling of
7 # static build of Simulation:
8 #
9 # scram b disable-biglib
10 #
11 #------------------------------------------------------------
12 
13 process = cms.Process("CheckOverlap")
14 
15 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
16 
17 #process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015XML_cfi")
18 process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015devXML_cfi")
19 
20 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
21 
22 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
23 
24 process.load("SimG4Core.Application.g4SimHits_cfi")
25 
26 process.MessageLogger = cms.Service("MessageLogger",
27  destinations = cms.untracked.vstring('cout'),
28  categories = cms.untracked.vstring('G4cout', 'G4cerr'),
29  debugModules = cms.untracked.vstring('*'),
30  cout = cms.untracked.PSet(
31  threshold = cms.untracked.string('DEBUG'),
32  default = cms.untracked.PSet(
33  limit = cms.untracked.int32(0)
34  ),
35  G4cerr = cms.untracked.PSet(
36  limit = cms.untracked.int32(-1)
37  ),
38  G4cout = cms.untracked.PSet(
39  limit = cms.untracked.int32(-1)
40  )
41  )
42 )
43 
44 process.load("IOMC.RandomEngine.IOMC_cff")
45 
46 process.source = cms.Source("EmptySource")
47 
48 process.generator = cms.EDProducer("FlatRandomEGunProducer",
49  PGunParameters = cms.PSet(
50  PartID = cms.vint32(14),
51  MinEta = cms.double(-3.5),
52  MaxEta = cms.double(3.5),
53  MinPhi = cms.double(-3.14159265359),
54  MaxPhi = cms.double(3.14159265359),
55  MinE = cms.double(9.99),
56  MaxE = cms.double(10.01)
57  ),
58  AddAntiParticle = cms.bool(False),
59  Verbosity = cms.untracked.int32(0),
60  firstRun = cms.untracked.uint32(1)
61 )
62 
63 process.maxEvents = cms.untracked.PSet(
64  input = cms.untracked.int32(1)
65 )
66 
67 process.p1 = cms.Path(process.generator*process.g4SimHits)
68 
69 process.g4SimHits.UseMagneticField = False
70 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
71 process.g4SimHits.Physics.DummyEMPhysics = True
72 
73