1 import FWCore.ParameterSet.Config
as cms
4 process = cms.Process(
"MF")
5 process.load(
"Configuration.StandardSequences.GeometryExtended_cff")
6 process.load(
"Configuration.StandardSequences.MagneticField_38T_cff")
8 process.XMLIdealGeometryESSource = cms.ESSource(
"XMLIdealGeometryESSource",
9 geomXMLFiles = cms.vstring(
'Geometry/CMSCommonData/data/normal/cmsextent.xml',
10 'Geometry/CMSCommonData/data/cms.xml',
11 'Geometry/CMSCommonData/data/cmsMagneticField.xml',
12 'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
13 'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
14 'Geometry/CMSCommonData/data/materials.xml'),
15 rootNodeName = cms.string(
'cms:MCMS')
19 process.maxEvents = cms.untracked.PSet(
20 input = cms.untracked.int32(1)
22 process.source = cms.Source(
"EmptySource")
24 process.prod = cms.EDProducer(
"GeometryProducer",
25 MagneticField = cms.PSet(delta = cms.double(1.0)),
26 UseMagneticField = cms.bool(
False),
27 UseSensitiveDetectors = cms.bool(
False)
30 process.add_(cms.ESProducer(
"TGeoMgrFromDdd",
31 verbose = cms.untracked.bool(
False),
32 level = cms.untracked.int32(14)
35 process.dump = cms.EDAnalyzer(
"DumpSimGeometry", outputFileName = cms.untracked.string(
'cmsMFGeometry.root'))
37 process.p = cms.Path(process.prod+process.dump)