CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Fireworks/Geometry/python/cmsRun_displayGeom_cfg.py

Go to the documentation of this file.
00001 #################################################
00002 #
00003 # Please run the script with cmsRun:
00004 # 
00005 # cmsRun displayGeom_cfg.py
00006 #
00007 #################################################
00008 
00009 import FWCore.ParameterSet.Config as cms
00010 
00011 process = cms.Process("DISPLAY")
00012 
00013 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00014 
00015 
00016 
00017 process.source = cms.Source("EmptySource")
00018 
00019 process.EveService = cms.Service("EveService")
00020 
00021 ### Extractor of Geometry needed to display it in Eve.
00022 ### Required for "DummyEvelyser".
00023 process.add_( cms.ESProducer(
00024         "TGeoMgrFromDdd",
00025         verbose = cms.untracked.bool(False),
00026         level   = cms.untracked.int32(8)
00027 ))
00028 
00029 process.dump = cms.EDAnalyzer(
00030     "DisplayGeom"
00031 
00032 )
00033 
00034 process.p = cms.Path(process.dump)