CMS 3D CMS Logo

MagneticField_cff.py
Go to the documentation of this file.
1 # This is the default configuration for the magnetic field in CMSSW.
2 # Loads the field map corresponding to the current stored in the runInfo,
3 # with the geometry and configuration specified in the GT.
4 
5 import FWCore.ParameterSet.Config as cms
7 
8 from MagneticField.Engine.volumeBasedMagneticFieldFromDB_dd4hep_cfi import VolumeBasedMagneticFieldESProducer as _VolumeBasedMagneticFieldESProducer_dd4hep
9 
10 from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
11 dd4hep.toReplaceWith(VolumeBasedMagneticFieldESProducer, _VolumeBasedMagneticFieldESProducer_dd4hep)
12 
13 # Parabolic parametrized magnetic field used for track building (scaled to nominal map closest to current from runInfo)
14 from MagneticField.ParametrizedEngine.autoParabolicParametrizedField_cfi import ParametrizedMagneticFieldProducer as ParabolicParametrizedMagneticFieldProducer
15 ParabolicParametrizedMagneticFieldProducer.label = "ParabolicMf"
16 
17 
volumeBasedMagneticFieldFromDB_cfi