CMS 3D CMS Logo

volumeBasedMagneticField_160812_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 # This cfi contains everything needed to use the VolumeBased magnetic
5 # field engine version 160812.
6 #
7 # PLEASE DO NOT USE THIS DIRECTLY
8 # Always use the standard sequence Configuration.StandardSequences.MagneticField_cff
9 
10 magfield = cms.ESSource("XMLIdealGeometryESSource",
11  geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
12  'Geometry/CMSCommonData/data/cms.xml',
13  'Geometry/CMSCommonData/data/cmsMagneticField.xml',
14  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
15  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
16  'Geometry/CMSCommonData/data/materials.xml'),
17  rootNodeName = cms.string('cmsMagneticField:MAGF')
18 )
19 
20 # avoid interference with EmptyESSource in uniformMagneticField.cfi
21 es_prefer_magfield = cms.ESPrefer("XMLIdealGeometryESSource","magfield")
22 
23 
24 ParametrizedMagneticFieldProducer = cms.ESProducer("ParametrizedMagneticFieldProducer",
25  version = cms.string('OAE_1103l_071212'),
26  parameters = cms.PSet(
27  BValue = cms.string('3_8T')
28  ),
29  label = cms.untracked.string('parametrizedField')
30 )
31 
32 
33 VolumeBasedMagneticFieldESProducer = cms.ESProducer("VolumeBasedMagneticFieldESProducer",
34  useParametrizedTrackerField = cms.bool(True),
35  label = cms.untracked.string(''),
36  paramLabel = cms.string('parametrizedField'),
37  version = cms.string('grid_160812_3_8t'),
38  geometryVersion = cms.int32(160812),
39  debugBuilder = cms.untracked.bool(False),
40  cacheLastVolume = cms.untracked.bool(True),
41  scalingVolumes = cms.vint32(),
42  scalingFactors = cms.vdouble(),
43 
44 
45  gridFiles = cms.VPSet(
46 # ### Specs for using specific tables for every volume
47 # cms.PSet(
48 # volumes = cms.string('1001-1464,2001-2464'),
49 # sectors = cms.string('0') ,
50 # master = cms.int32(0),
51 # path = cms.string('s[s]/grid.[v].bin'),
52 # ),
53 
54 
55  # Volumes for which specific tables are used for each sector
56  cms.PSet(
57  volumes = cms.string('1001-1010,1012-1027,1030-1033,1036-1041,1044-1049,1052-1057,1060-1063,1066-1071,1074-1077,1080-1097,1102-1129,1138-1402,1415-1416,' +
58  '2001-2010,2012-2027,2030-2033,2036-2041,2044-2049,2052-2057,2060-2063,2066-2071,2074-2077,2080-2097,2102-2129,2138-2402,2415-2416'),
59  sectors = cms.string('0') ,
60  master = cms.int32(0),
61  path = cms.string('s[s]/grid.[v].bin'),
62  ),
63 
64  # Replicate sector 1 for volumes outside any detector
65  cms.PSet(
66  volumes = cms.string('1011,1028-1029,1034-1035,1042-1043,1050-1051,1058-1059,1064-1065,1072-1073,1078-1079,'+ # volumes extending from R~7.6 m to to R=9 m,
67  '1098-1101,1130-1137,' + # Forward volumes, ouside CASTOR/HF
68  '1403-1414,1417-1464,' # Volumes beyond |Z|>17.74
69  '2011,2028-2029,2034-2035,2042-2043,2050-2051,2058-2059,2064-2065,2072-2073,2078-2079,'+
70  '2098-2101,2130-2137,'+
71  '2403-2414,2417-2464'),
72  sectors = cms.string('0'),
73  master = cms.int32(1),
74  path = cms.string('s01/grid.[v].bin'),
75  ),
76  )
77 )
78 
79 
80 ### To set a different nominal map, set the following in your .py:
81 
82 ### 3T
83 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3t')
84 #ParametrizedMagneticFieldProducer.parameters.BValue = cms.string('3_0T')
85 
86 ### 3.5T
87 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3_5t')
88 #ParametrizedMagneticFieldProducer.parameters.BValue = cms.string('3_5T')
89 
90 
91 ### Run I, 3.8T
92 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3_8t_Run1')