CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  'MagneticField/GeomBuilder/data/MagneticFieldParameters_07.xml',
22  'Geometry/CMSCommonData/data/materials.xml'),
23  rootNodeName = cms.string('cms:MCMS')
24 )
25 
26 
27 
28 
29 
30 process.maxEvents = cms.untracked.PSet(
31  input = cms.untracked.int32(1)
32  )
33 
34 
35 process.source = cms.Source("EmptySource")
36 
37 process.EveService = cms.Service("EveService")
38 
39 ### Extractor of geometry needed to display it in Eve.
40 ### Required for "DummyEvelyser".
41 process.add_( cms.ESProducer(
42  "TGeoMgrFromDdd",
43  verbose = cms.untracked.bool(False),
44  level = cms.untracked.int32(8)
45 ))
46 
47 
48 process.dump = cms.EDAnalyzer("DisplayGeom",
49  level = cms.untracked.int32(2),
50  MF = cms.untracked.int32(True), #Display the MF geometry instead of detector geometry
51  MF_component = cms.untracked.string("B"), #Field map: None, B, AbsBZ, AbsBR, AvsBphi, BR, Bphi
52  MF_pickable = cms.untracked.bool(True), #Field map: pickable values
53 
54 #Field map on ZY plane @ X=0
55  MF_plane_d0 = cms.untracked.vdouble(0, -900, -2000),
56  MF_plane_d1 = cms.vdouble(0, -900., 2000),
57  MF_plane_d2 = cms.vdouble(0, 900., -2000.),
58 
59 #Field map on XY plane @ Z=0
60 # MF_plane_d0 = cms.untracked.vdouble(-900, -900, 0.),
61 # MF_plane_d1 = cms.vdouble(-900, 900, 0.),
62 # MF_plane_d2 = cms.vdouble(900, -900, 0.),
63 
64  MF_plane_N = cms.untracked.uint32(500), #Field map bins
65 
66  MF_plane_draw_dir = cms.untracked.int32(False)
67 )
68 
69 process.p = cms.Path(process.dump)
70