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 
11 magfield = cms.ESSource("XMLIdealGeometryESSource",
12  geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
13  'Geometry/CMSCommonData/data/cms.xml',
14  'Geometry/CMSCommonData/data/cmsMagneticField.xml',
15  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
16  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
17  'Geometry/CMSCommonData/data/materials.xml'),
18  rootNodeName = cms.string('cmsMagneticField:MAGF')
19 )
20 
21 # avoid interference with EmptyESSource in uniformMagneticField.cfi
22 es_prefer_magfield = cms.ESPrefer("XMLIdealGeometryESSource","magfield")
23 
24 
25 ParametrizedMagneticFieldProducer = cms.ESProducer("ParametrizedMagneticFieldProducer",
26  version = cms.string('OAE_1103l_071212'),
27  parameters = cms.PSet(
28  BValue = cms.string('3_8T')
29  ),
30  label = cms.untracked.string('parametrizedField')
31 )
32 
33 
34 VBFConfig_160812 = cms.PSet (
35  useParametrizedTrackerField = cms.bool(True),
36  label = cms.untracked.string(''),
37  paramLabel = cms.string('parametrizedField'),
38  version = cms.string('grid_160812_3_8t'),
39  geometryVersion = cms.int32(160812),
40  debugBuilder = cms.untracked.bool(False),
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 VolumeBasedMagneticFieldESProducer = cms.ESProducer("VolumeBasedMagneticFieldESProducer",
81  VBFConfig_160812,
82 )
83 
84 
85 
86 
87 
90 
91 
94 
95 
96