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 
49 process.disp = cms.EDProducer("MFProducer",
50  mapDensityX = cms.untracked.uint32(10),
51  mapDensityY = cms.untracked.uint32(10),
52  mapDensityZ = cms.untracked.uint32(10),
53  minX = cms.untracked.double(-18.0),
54  maxX = cms.untracked.double(18.0),
55  minY = cms.untracked.double(-18.0),
56  maxY = cms.untracked.double(18.0),
57  minZ = cms.untracked.double(-18.0),
58  maxZ = cms.untracked.double(18.0))
59 
60 process.dump = cms.EDAnalyzer(
61  "DisplayGeom",
62  level = cms.untracked.int32(2),
63  MF = cms.untracked.int32(True)
64 )
65 
66 process.p = cms.Path(process.dump+process.disp)