Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:29

0001 import FWCore.ParameterSet.Config as cms
0002 from MagneticField.Engine.volumeBasedMagneticField_160812_cfi import VBFConfig_160812 
0003 from MagneticField.Engine.volumeBasedMagneticField_160812_cfi import ParametrizedMagneticFieldProducer
0004 
0005 
0006 # This cfi contains everything needed to use the VolumeBased magnetic
0007 # field engine version 160812 built using dd4hep for the geometry.
0008 #
0009 # PLEASE DO NOT USE THIS DIRECTLY
0010 # Always use the standard sequence Configuration.StandardSequences.MagneticField_cff
0011 
0012 
0013 DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0014     confGeomXMLFiles = cms.FileInPath('MagneticField/GeomBuilder/data/cms-mf-geometry_160812.xml'),
0015     rootDDName = cms.string('cmsMagneticField:MAGF'),
0016     appendToDataLabel = cms.string('magfield')
0017     )
0018 
0019 
0020 DDCompactViewMFESProducer = cms.ESProducer("DDCompactViewMFESProducer",
0021                                             appendToDataLabel = cms.string('magfield')
0022                                            )
0023 
0024 
0025 VolumeBasedMagneticFieldESProducer = cms.ESProducer("DD4hep_VolumeBasedMagneticFieldESProducer",
0026     VBFConfig_160812,
0027     appendToDataLabel = cms.string(''),
0028 )
0029 
0030 
0031 ### To set a different nominal map, set the following in your .py:
0032 
0033 ### 3T
0034 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3t')
0035 #ParametrizedMagneticFieldProducer.parameters.BValue = cms.string('3_0T')
0036 
0037 ### 3.5T
0038 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3_5t')
0039 #ParametrizedMagneticFieldProducer.parameters.BValue = cms.string('3_5T')
0040 
0041 
0042 ### Run I, 3.8T
0043 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3_8t_Run1')