Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-08 22:57:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MagneticFieldTest")
0004 
0005 process.source = cms.Source("EmptySource")
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(1)
0008     )
0009 
0010 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         DEBUG = cms.untracked.PSet(
0018             limit = cms.untracked.int32(-1)
0019         ),
0020         ERROR = cms.untracked.PSet(
0021             limit = cms.untracked.int32(-1)
0022         ),
0023         INFO = cms.untracked.PSet(
0024             limit = cms.untracked.int32(-1)
0025         ),
0026         WARNING = cms.untracked.PSet(
0027             limit = cms.untracked.int32(-1)
0028         ),
0029         default = cms.untracked.PSet(
0030             limit = cms.untracked.int32(-1)
0031         ),
0032         enable = cms.untracked.bool(True),
0033         noLineBreaks = cms.untracked.bool(True),
0034         threshold = cms.untracked.string('DEBUG')
0035     ),
0036     debugModules = cms.untracked.vstring('*')
0037 )
0038 
0039 
0040 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0041                                             confGeomXMLFiles = cms.FileInPath('MagneticField/GeomBuilder/data/cms-mf-geometry_160812.xml'),
0042                                             rootDDName = cms.string('cmsMagneticField:MAGF'),
0043                                             appendToDataLabel = cms.string('magfield')
0044                                             )
0045 
0046 process.MagneticFieldESProducer = cms.ESProducer("DD4hep_VolumeBasedMagneticFieldESProducer",
0047                                               DDDetector = cms.ESInputTag('', 'magfield'),
0048                                               appendToDataLabel = cms.string(''),
0049                                               useParametrizedTrackerField = cms.bool(False),
0050                                               label = cms.untracked.string(''),
0051                                               attribute = cms.string('magfield'),
0052                                               value = cms.string('magfield'),
0053                                               paramLabel = cms.string(''),
0054                                               version = cms.string('fake'),
0055                                               geometryVersion = cms.int32(160812),
0056                                               debugBuilder = cms.untracked.bool(False), # Set to True to activate full debug output
0057                                               scalingVolumes = cms.vint32(),
0058                                               scalingFactors = cms.vdouble(),
0059 
0060                                               gridFiles = cms.VPSet()
0061                                                )
0062 
0063 
0064 # Uncomment this to test geometry version 71212
0065 #process.DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath('MagneticField/GeomBuilder/data/cms-mf-geometry_71212.xml')
0066 #process.MagneticFieldESProducer.geometryVersion = cms.int32(71212)
0067 
0068 
0069 
0070 process.DDCompactViewMFESProducer = cms.ESProducer("DDCompactViewMFESProducer",
0071                                                  appendToDataLabel = cms.string('magfield')
0072                                                 )
0073 
0074 process.test = cms.EDAnalyzer("testMagGeometryAnalyzer",
0075                               DDDetector = cms.ESInputTag('', 'magfield')
0076                               )
0077 
0078 process.p = cms.Path(process.test)