CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
displayProdMF_cfg.py
Go to the documentation of this file.
2 
4 process = cms.Process("MF")
5 process.load("Configuration.StandardSequences.Geometry_cff")
6 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
7 
8 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
9  geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
10  'Geometry/CMSCommonData/data/cms.xml',
11  'Geometry/CMSCommonData/data/cmsMagneticField.xml',
12  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1103l.xml',
13  'MagneticField/GeomBuilder/data/MagneticFieldParameters_07.xml',
14  'Geometry/CMSCommonData/data/materials.xml'),
15  rootNodeName = cms.string('cms:MCMS')
16 )
17 
18 
19 process.maxEvents = cms.untracked.PSet(
20  input = cms.untracked.int32(1)
21  )
22 process.source = cms.Source("EmptySource")
23 
24 process.prod = cms.EDProducer("GeometryProducer",
25  MagneticField = cms.PSet(delta = cms.double(1.0)),
26  UseMagneticField = cms.bool(False),
27  UseSensitiveDetectors = cms.bool(False)
28  )
29 
30 process.add_(cms.ESProducer("TGeoMgrFromDdd",
31  verbose = cms.untracked.bool(False),
32  level = cms.untracked.int32(14)
33 ))
34 
35 process.disp = cms.EDProducer("MFProducer",
36  mapDensityX = cms.untracked.uint32(10),
37  mapDensityY = cms.untracked.uint32(10),
38  mapDensityZ = cms.untracked.uint32(10),
39  minX = cms.untracked.double(-18.0),
40  maxX = cms.untracked.double(18.0),
41  minY = cms.untracked.double(-18.0),
42  maxY = cms.untracked.double(18.0),
43  minZ = cms.untracked.double(-18.0),
44  maxZ = cms.untracked.double(18.0))
45 
46 process.p = cms.Path(process.prod+process.disp)