CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/Fireworks/Geometry/python/displayMF_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from FWCore.MessageLogger.MessageLogger_cfi import *
00004 process = cms.Process("MF")
00005 process.load("Configuration.StandardSequences.Geometry_cff")
00006 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
00007 
00008 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
00009      geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml', 
00010         'Geometry/CMSCommonData/data/cms.xml', 
00011         'Geometry/CMSCommonData/data/cmsMagneticField.xml', 
00012         'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1103l.xml',
00013         'MagneticField/GeomBuilder/data/MagneticFieldParameters_07.xml',
00014         'Geometry/CMSCommonData/data/materials.xml'),
00015      rootNodeName = cms.string('cms:MCMS')
00016 )
00017 
00018 
00019 process.maxEvents = cms.untracked.PSet(
00020     input = cms.untracked.int32(1)
00021     )
00022 process.source = cms.Source("EmptySource")
00023 
00024 process.prod = cms.EDProducer("GeometryProducer",
00025                               MagneticField = cms.PSet(delta = cms.double(1.0)),
00026                               UseMagneticField = cms.bool(False),
00027                               UseSensitiveDetectors = cms.bool(False)
00028                               )
00029 
00030 process.add_(cms.ESProducer("TGeoMgrFromDdd",
00031         verbose = cms.untracked.bool(False),
00032         level   = cms.untracked.int32(14)
00033 ))
00034 
00035 process.disp = cms.EDAnalyzer("MFAnalyzer",
00036         mapDensityX = cms.untracked.uint32(10),
00037         mapDensityY = cms.untracked.uint32(10),
00038         mapDensityZ = cms.untracked.uint32(10),
00039         minX = cms.untracked.double(-18.0),
00040         maxX = cms.untracked.double(18.0),
00041         minY = cms.untracked.double(-18.0),
00042         maxY = cms.untracked.double(18.0),
00043         minZ = cms.untracked.double(-18.0),
00044         maxZ = cms.untracked.double(18.0))
00045 
00046 process.p = cms.Path(process.prod+process.disp)