Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-29 23:12:47

0001 #################################################
0002 #
0003 # Please run the script with cmsRun:
0004 # 
0005 # cmsRun cmsRun_displayProdMFGeom_cfg.py
0006 #
0007 #################################################
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 process = cms.Process("DISPLAY")
0012 
0013 process.load("MagneticField.Engine.volumeBasedMagneticField_160812_cfi")
0014 
0015 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
0016     geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml', 
0017                                'Geometry/CMSCommonData/data/cms.xml', 
0018                                'Geometry/CMSCommonData/data/cmsMagneticField.xml',
0019                                'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
0020                                'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
0021                                'Geometry/CMSCommonData/data/materials.xml'),
0022     rootNodeName = cms.string('cms:World')
0023  )
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1)
0027 )
0028 
0029 process.source = cms.Source("EmptySource")
0030 
0031 process.EveService = cms.Service("EveService")
0032 
0033 ### Extractor of geometry needed to display it in Eve.
0034 ### Required for "DummyEvelyser".
0035 process.add_( cms.ESProducer(
0036         "TGeoMgrFromDdd",
0037         verbose = cms.untracked.bool(False),
0038         level   = cms.untracked.int32(8)
0039 ))
0040 
0041 
0042 process.dump = cms.EDAnalyzer("DisplayGeom",
0043     nodes = cms.untracked.vstring("cmsMagneticField:MAGF_1"),
0044     level = cms.untracked.int32(2),
0045     MF_component = cms.untracked.string("B"), #Field map: None, B, AbsBZ, AbsBR, AvsBphi, BR, Bphi
0046     MF_pickable = cms.untracked.bool(False),   #Field map: pickable values
0047     
0048 #Field map on ZY plane @ X=0
0049     MF_plane_d0 = cms.untracked.vdouble(0, -900, -2000),
0050     MF_plane_d1 = cms.untracked.vdouble(0, -900., 2000),
0051     MF_plane_d2 = cms.untracked.vdouble(0, 900., -2000.),
0052 
0053 #Field map on XY plane @ Z=0
0054 #    MF_plane_d0 = cms.untracked.vdouble(-900, -900, 0.),
0055 #    MF_plane_d1 = cms.untracked.vdouble(-900, 900, 0.),
0056 #    MF_plane_d2 = cms.untracked.vdouble(900, -900, 0.),
0057 
0058     MF_plane_N  = cms.untracked.int32(500), #Field map bins
0059    
0060     MF_plane_draw_dir =  cms.untracked.int32(False)
0061 )
0062 
0063 process.p = cms.Path(process.dump)
0064