test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dumpMFGeometry_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 process = cms.Process("MF")
5 process.load("Configuration.StandardSequences.GeometryExtended_cff")
6 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
7 
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_1103l.xml',
13  'Geometry/CMSCommonData/data/materials.xml'),
14  rootNodeName = cms.string('cms:MCMS')
15 )
16 
17 
18 process.maxEvents = cms.untracked.PSet(
19  input = cms.untracked.int32(1)
20  )
21 process.source = cms.Source("EmptySource")
22 
23 process.prod = cms.EDProducer("GeometryProducer",
24  MagneticField = cms.PSet(delta = cms.double(1.0)),
25  UseMagneticField = cms.bool(False),
26  UseSensitiveDetectors = cms.bool(False)
27  )
28 
29 process.add_(cms.ESProducer("TGeoMgrFromDdd",
30  verbose = cms.untracked.bool(False),
31  level = cms.untracked.int32(14)
32 ))
33 
34 process.dump = cms.EDAnalyzer("DumpSimGeometry", outputFileName = cms.untracked.string('cmsMFGeometry.root'))
35 
36 process.p = cms.Path(process.prod+process.dump)