Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003
00004
00005
00006 magfield = cms.ESSource("XMLIdealGeometryESSource",
00007 geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
00008 'Geometry/CMSCommonData/data/cms.xml',
00009 'Geometry/CMSCommonData/data/cmsMagneticField.xml',
00010 'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1103l.xml',
00011 'MagneticField/GeomBuilder/data/MagneticFieldParameters_07_2pi.xml',
00012 'Geometry/CMSCommonData/data/materials.xml'),
00013 rootNodeName = cms.string('cmsMagneticField:MAGF')
00014 )
00015
00016
00017 es_prefer_magfield = cms.ESPrefer("XMLIdealGeometryESSource","magfield")
00018
00019
00020
00021
00022 SlaveField0 = cms.ESProducer("UniformMagneticFieldESProducer",
00023 ZFieldInTesla = cms.double(0.0),
00024 label = cms.untracked.string('slave_0')
00025 )
00026
00027 SlaveField20 = cms.ESProducer("ParametrizedMagneticFieldProducer",
00028 version = cms.string('OAE_1103l_071212'),
00029 parameters = cms.PSet(
00030 BValue = cms.string('2_0T')
00031 ),
00032 label = cms.untracked.string('slave_20')
00033 )
00034
00035 SlaveField30 = SlaveField20.clone()
00036 SlaveField30.parameters.BValue = '3_0T'
00037 SlaveField30.label = 'slave_30'
00038
00039 SlaveField35 = SlaveField20.clone()
00040 SlaveField35.parameters.BValue = '3_5T'
00041 SlaveField35.label = 'slave_35'
00042
00043 SlaveField38 = SlaveField20.clone()
00044 SlaveField38.parameters.BValue= '3_8T'
00045 SlaveField38.label = 'slave_38'
00046
00047 SlaveField40 = SlaveField20.clone()
00048 SlaveField40.parameters.BValue= '4_0T'
00049 SlaveField40.label = 'slave_40'
00050
00051
00052 VBF0 = cms.ESProducer("VolumeBasedMagneticFieldESProducer",
00053 label = cms.untracked.string('0t'),
00054 useParametrizedTrackerField = cms.bool(True),
00055 paramLabel = cms.string('slave_0'),
00056 version = cms.string('grid_1103l_071212_2t'),
00057 geometryVersion = cms.int32(71212),
00058 debugBuilder = cms.untracked.bool(False),
00059 cacheLastVolume = cms.untracked.bool(True),
00060 overrideMasterSector = cms.bool(True),
00061 scalingVolumes = cms.vint32(),
00062 scalingFactors = cms.vdouble()
00063 )
00064
00065 VBF20 = VBF0.clone()
00066 VBF20.version = 'grid_1103l_071212_2t'
00067 VBF20.paramLabel = 'slave_20'
00068 VBF20.label = '071212_2t'
00069
00070 VBF30 = VBF0.clone()
00071 VBF30.version = 'grid_1103l_071212_3t'
00072 VBF30.paramLabel = 'slave_30'
00073 VBF30.label = '071212_3t'
00074
00075 VBF35 = VBF0.clone()
00076 VBF35.version = 'grid_1103l_071212_3_5t'
00077 VBF35.paramLabel = 'slave_35'
00078 VBF35.label = '071212_3_5t'
00079
00080
00081 from MagneticField.Engine.ScalingFactors_090322_2pi_090520_cfi import *
00082 VBF38 = VBF0.clone()
00083 VBF38.version = 'grid_1103l_090322_3_8t'
00084 VBF38.geometryVersion = 90322
00085 VBF38.paramLabel = 'slave_38'
00086 VBF38.label = '090322_3_8t'
00087 VBF38.overrideMasterSector = False
00088 VBF38.scalingVolumes = fieldScaling.scalingVolumes
00089 VBF38.scalingFactors = fieldScaling.scalingFactors
00090
00091 VBF40 = VBF0.clone()
00092 VBF40.version = 'grid_1103l_071212_4t'
00093 VBF40.paramLabel = 'slave_40'
00094 VBF40.label = '071212_4t'
00095
00096
00097 AutoMagneticFieldESProducer = cms.ESProducer("AutoMagneticFieldESProducer",
00098
00099 valueOverride = cms.int32(-1),
00100 nominalCurrents = cms.untracked.vint32(-1, 0,9558,14416,16819,18268,19262),
00101 mapLabels = cms.untracked.vstring("090322_3_8t",
00102 "0t",
00103 "071212_2t",
00104 "071212_3t",
00105 "071212_3_5t",
00106 "090322_3_8t",
00107 "071212_4t"),
00108 label = cms.untracked.string(''),
00109 )
00110