CMS 3D CMS Logo

cmsRun_displayProdMFGeom_cfg.py
Go to the documentation of this file.
1 
8 
9 import FWCore.ParameterSet.Config as cms
10 
11 process = cms.Process("DISPLAY")
12 
13 process.load("MagneticField.Engine.volumeBasedMagneticField_160812_cfi")
14 
15 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
16  geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
17  'Geometry/CMSCommonData/data/cms.xml',
18  'Geometry/CMSCommonData/data/cmsMagneticField.xml',
19  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
20  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
21  'Geometry/CMSCommonData/data/materials.xml'),
22  rootNodeName = cms.string('cms:World')
23  )
24 
25 process.maxEvents = cms.untracked.PSet(
26  input = cms.untracked.int32(1)
27 )
28 
29 process.source = cms.Source("EmptySource")
30 
31 process.EveService = cms.Service("EveService")
32 
33 
35 process.add_( cms.ESProducer(
36  "TGeoMgrFromDdd",
37  verbose = cms.untracked.bool(False),
38  level = cms.untracked.int32(8)
39 ))
40 
41 
42 process.dump = cms.EDAnalyzer("DisplayGeom",
43  nodes = cms.untracked.vstring("cmsMagneticField:MAGF_1"),
44  level = cms.untracked.int32(2),
45  MF_component = cms.untracked.string("B"), #Field map: None, B, AbsBZ, AbsBR, AvsBphi, BR, Bphi
46  MF_pickable = cms.untracked.bool(False), #Field map: pickable values
47 
48 #Field map on ZY plane @ X=0
49  MF_plane_d0 = cms.untracked.vdouble(0, -900, -2000),
50  MF_plane_d1 = cms.untracked.vdouble(0, -900., 2000),
51  MF_plane_d2 = cms.untracked.vdouble(0, 900., -2000.),
52 
53 #Field map on XY plane @ Z=0
54 # MF_plane_d0 = cms.untracked.vdouble(-900, -900, 0.),
55 # MF_plane_d1 = cms.untracked.vdouble(-900, 900, 0.),
56 # MF_plane_d2 = cms.untracked.vdouble(900, -900, 0.),
57 
58  MF_plane_N = cms.untracked.int32(500), #Field map bins
59 
60  MF_plane_draw_dir = cms.untracked.int32(False)
61 )
62 
63 process.p = cms.Path(process.dump)
64