Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GeometryAndMFTest")
0004 process.load('Configuration.Geometry.GeometryIdeal2015_cff')
0005 process.load('MagneticField.Engine.volumeBasedMagneticField_160812_cfi')
0006 
0007 process.maxEvents = cms.untracked.PSet(
0008         input = cms.untracked.int32(1)
0009         )
0010 
0011 process.source = cms.Source("EmptySource")
0012 
0013 process.myprint = cms.OutputModule("AsciiOutputModule")
0014 
0015 #Produces two output files dumpGeoHistory and dumpSpecsGeoHistory
0016 process.prod = cms.EDAnalyzer("PerfectGeometryAnalyzer",
0017                               ddRootNodeName = cms.untracked.string('cms:OCMS'),
0018                               dumpPosInfo = cms.untracked.bool(True),
0019                               dumpSpecs = cms.untracked.bool(True),
0020                               dumpGeoHistory = cms.untracked.bool(True),
0021                               label = cms.untracked.string(''), #actually defaults to blank and IS default Geometry.
0022                               isMagField = cms.untracked.bool(False), 
0023                               outFileName = cms.untracked.string('GeoHistory'), #GeoHistory is the default name
0024                               numNodesToDump = cms.untracked.uint32(0) #0 means ALL, you can limit the number of nodes dumped.
0025                               )
0026 
0027 #Produces two output files dumpMagF and dumpSpecsMagF
0028 process.prodmag = cms.EDAnalyzer("PerfectGeometryAnalyzer",
0029                               ddRootNodeName = cms.untracked.string('cmsMagneticField:MAGF'),
0030                               dumpPosInfo = cms.untracked.bool(True),
0031                               dumpSpecs = cms.untracked.bool(True),
0032                               dumpGeoHistory = cms.untracked.bool(True),
0033                               label = cms.untracked.string('magfield'), #actually defaults to blank and IS default Geometry.
0034                               isMagField = cms.untracked.bool(True), 
0035                               outFileName = cms.untracked.string('MagF'), #GeoHistory is the default name
0036                               numNodesToDump = cms.untracked.uint32(0) #0 means ALL, you can limit the number of nodes dumped.
0037                               )
0038 
0039 process.Timing = cms.Service("Timing")
0040 
0041 process.p1 = cms.Path(process.prodmag*process.prod)
0042 process.e1 = cms.EndPath(process.myprint)