Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:26

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("Configuration.StandardSequences.GeometryExtended_cff")
0014 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0015 
0016 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
0017      geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml', 
0018         'Geometry/CMSCommonData/data/cms.xml', 
0019         'Geometry/CMSCommonData/data/cmsMagneticField.xml', 
0020         'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1103l.xml',
0021         'Geometry/CMSCommonData/data/materials.xml'),
0022      rootNodeName = cms.string('cms:MCMS')
0023 )
0024 
0025 
0026 
0027 
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1)
0031     )
0032 
0033 
0034 process.source = cms.Source("EmptySource")
0035 
0036 process.EveService = cms.Service("EveService")
0037 
0038 ### Extractor of geometry needed to display it in Eve.
0039 ### Required for "DummyEvelyser".
0040 process.add_( cms.ESProducer(
0041         "TGeoMgrFromDdd",
0042         verbose = cms.untracked.bool(False),
0043         level   = cms.untracked.int32(8)
0044 ))
0045 
0046 
0047 process.dump = cms.EDAnalyzer("DisplayGeom",
0048     level = cms.untracked.int32(2),
0049     MF = cms.untracked.int32(True),           #Display the MF geometry instead of detector geometry
0050     MF_component = cms.untracked.string("B"), #Field map: None, B, AbsBZ, AbsBR, AvsBphi, BR, Bphi
0051     MF_pickable = cms.untracked.bool(True),   #Field map: pickable values
0052     
0053 #Field map on ZY plane @ X=0
0054     MF_plane_d0 = cms.untracked.vdouble(0, -900, -2000),
0055     MF_plane_d1 = cms.vdouble(0, -900., 2000),
0056     MF_plane_d2 = cms.vdouble(0, 900., -2000.),
0057 
0058 #Field map on XY plane @ Z=0
0059 #    MF_plane_d0 = cms.untracked.vdouble(-900, -900, 0.),
0060 #    MF_plane_d1 = cms.vdouble(-900, 900, 0.),
0061 #    MF_plane_d2 = cms.vdouble(900, -900, 0.),
0062 
0063     MF_plane_N  = cms.untracked.uint32(500), #Field map bins
0064    
0065     MF_plane_draw_dir =  cms.untracked.int32(False)
0066 )
0067 
0068 process.p = cms.Path(process.dump)
0069