CMS 3D CMS Logo

cmsRun_displayProdMFGeom_cfg.py
Go to the documentation of this file.
1 #################################################
2 #
3 # Please run the script with cmsRun:
4 #
5 # cmsRun cmsRun_displayProdMFGeom_cfg.py
6 #
7 #################################################
8 
9 import FWCore.ParameterSet.Config as cms
10 
11 process = cms.Process("DISPLAY")
12 
13 process.load("Configuration.StandardSequences.GeometryExtended_cff")
14 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
15 
16 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
17  geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
18  'Geometry/CMSCommonData/data/cms.xml',
19  'Geometry/CMSCommonData/data/cmsMagneticField.xml',
20  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1103l.xml',
21  'Geometry/CMSCommonData/data/materials.xml'),
22  rootNodeName = cms.string('cms:MCMS')
23 )
24 
25 
26 
27 
28 
29 process.maxEvents = cms.untracked.PSet(
30  input = cms.untracked.int32(1)
31  )
32 
33 
34 process.source = cms.Source("EmptySource")
35 
36 process.EveService = cms.Service("EveService")
37 
38 ### Extractor of geometry needed to display it in Eve.
39 ### Required for "DummyEvelyser".
40 process.add_( cms.ESProducer(
41  "TGeoMgrFromDdd",
42  verbose = cms.untracked.bool(False),
43  level = cms.untracked.int32(8)
44 ))
45 
46 
47 process.dump = cms.EDAnalyzer("DisplayGeom",
48  level = cms.untracked.int32(2),
49  MF = cms.untracked.int32(True), #Display the MF geometry instead of detector geometry
50  MF_component = cms.untracked.string("B"), #Field map: None, B, AbsBZ, AbsBR, AvsBphi, BR, Bphi
51  MF_pickable = cms.untracked.bool(True), #Field map: pickable values
52 
53 #Field map on ZY plane @ X=0
54  MF_plane_d0 = cms.untracked.vdouble(0, -900, -2000),
55  MF_plane_d1 = cms.vdouble(0, -900., 2000),
56  MF_plane_d2 = cms.vdouble(0, 900., -2000.),
57 
58 #Field map on XY plane @ Z=0
59 # MF_plane_d0 = cms.untracked.vdouble(-900, -900, 0.),
60 # MF_plane_d1 = cms.vdouble(-900, 900, 0.),
61 # MF_plane_d2 = cms.vdouble(900, -900, 0.),
62 
63  MF_plane_N = cms.untracked.uint32(500), #Field map bins
64 
65  MF_plane_draw_dir = cms.untracked.int32(False)
66 )
67 
68 process.p = cms.Path(process.dump)
69