Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from FWCore.MessageLogger.MessageLogger_cfi import *
0004 process = cms.Process("MF")
0005 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0006 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0007 
0008 process.XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource",
0009      geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml', 
0010         'Geometry/CMSCommonData/data/cms.xml', 
0011         'Geometry/CMSCommonData/data/cmsMagneticField.xml',
0012         'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
0013         'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
0014         'Geometry/CMSCommonData/data/materials.xml'),
0015      rootNodeName = cms.string('cms:MCMS')
0016 )
0017 
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(1)
0021     )
0022 process.source = cms.Source("EmptySource")
0023 
0024 process.prod = cms.EDProducer("GeometryProducer",
0025                               MagneticField = cms.PSet(delta = cms.double(1.0)),
0026                               UseMagneticField = cms.bool(False),
0027                               UseSensitiveDetectors = cms.bool(False)
0028                               )
0029 
0030 process.add_(cms.ESProducer("TGeoMgrFromDdd",
0031         verbose = cms.untracked.bool(False),
0032         level   = cms.untracked.int32(14)
0033 ))
0034 
0035 process.dump = cms.EDAnalyzer("DumpSimGeometry", outputFileName = cms.untracked.string('cmsMFGeometry.root'))
0036 
0037 process.p = cms.Path(process.prod+process.dump)