test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
volumeBasedMagneticField_120812_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 120812
6 
7 magfield = cms.ESSource("XMLIdealGeometryESSource",
8  geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml',
9  'Geometry/CMSCommonData/data/cms.xml',
10  'Geometry/CMSCommonData/data/cmsMagneticField.xml',
11 #FIXME: material description is for the LARGE version!!
12  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_1_v7_large.xml',
13  'MagneticField/GeomBuilder/data/MagneticFieldVolumes_2_v7_large.xml',
14  'Geometry/CMSCommonData/data/materials.xml'),
15  rootNodeName = cms.string('cmsMagneticField:MAGF')
16 )
17 
18 # avoid interference with EmptyESSource in uniformMagneticField.cfi
19 es_prefer_magfield = cms.ESPrefer("XMLIdealGeometryESSource","magfield")
20 
21 
22 ParametrizedMagneticFieldProducer = cms.ESProducer("ParametrizedMagneticFieldProducer",
23  version = cms.string('OAE_1103l_071212'),
24  parameters = cms.PSet(
25  BValue = cms.string('3_8T')
26  ),
27  label = cms.untracked.string('parametrizedField')
28 )
29 
30 
31 VolumeBasedMagneticFieldESProducer = cms.ESProducer("VolumeBasedMagneticFieldESProducer",
32  useParametrizedTrackerField = cms.bool(True),
33  label = cms.untracked.string(''),
34  paramLabel = cms.string('parametrizedField'),
35  version = cms.string('grid_120812_3_8t_v7_small'),
36  geometryVersion = cms.int32(120812),
37  debugBuilder = cms.untracked.bool(False),
38  cacheLastVolume = cms.untracked.bool(True),
39  scalingVolumes = cms.vint32(),
40  scalingFactors = cms.vdouble(),
41 
42 
43  gridFiles = cms.VPSet(
44  # Default: specific tables for all volumes
45 # cms.PSet(
46 # volumes = cms.string('1001-1360'),
47 # sectors = cms.string('0') ,
48 # master = cms.int32(0),
49 # path = cms.string('s[s]_1/grid.[v].bin'),
50 # ),
51 # cms.PSet(
52 # volumes = cms.string('2001-2360'),
53 # sectors = cms.string('0'),
54 # master = cms.int32(0),
55 # path = cms.string('s[s]_2/grid.[v].bin'),
56 # ),
57 
58  # Specific tables for each sector
59  cms.PSet(
60  volumes = cms.string('1001-1010,1012-1027,1030-1033,1036-1041,1044-1049,1052-1057,1060-1063,1066-1071,1074-1077,1080-1083,1130-1133,1138-1360'),
61  sectors = cms.string('0') ,
62  master = cms.int32(0),
63  path = cms.string('s[s]_1/grid.[v].bin'),
64  ),
65  cms.PSet(
66  volumes = cms.string('2001-2010,2012-2027,2030-2033,2036-2041,2044-2049,2052-2057,2060-2063,2066-2071,2074-2077,2080-2083,2130-2133,2138-2360'),
67  sectors = cms.string('0'),
68  master = cms.int32(0),
69  path = cms.string('s[s]_2/grid.[v].bin'),
70  ),
71 
72  # Replicate sector 1 for volumes outside any detector
73 # cms.PSet(
74 # volumes = cms.string('1011,1028-1029,1034-1035,1042-1043,1050-1051,1058-1059,1064-1065,1072-1073,1078-1079,1084-1129,1134-1137'),
75 # sectors = cms.string('0'),
76 # master = cms.int32(1),
77 # path = cms.string('s01_1/grid.[v].bin'),
78 # ),
79 # cms.PSet(
80 # volumes = cms.string('2011,2028-2029,2034-2035,2042-2043,2050-2051,2058-2059,2064-2065,2072-2073,2078-2079,2084-2129,2134-2137'),
81 # sectors = cms.string('0'),
82 # master = cms.int32(1),
83 # path = cms.string('s01_2/grid.[v].bin'),
84 # ),
85 
86  cms.PSet(
87  volumes = cms.string('1011,1028-1029,1034-1035,1042-1043,1050-1051,1058-1059,1064-1065,1072-1073,1078-1079,1084-1129,1136-1137'),
88  sectors = cms.string('0'),
89  master = cms.int32(1),
90  path = cms.string('s01_1/grid.[v].bin'),
91  ),
92  cms.PSet(
93  volumes = cms.string('2011,2028-2029,2034-2035,2042-2043,2050-2051,2058-2059,2064-2065,2072-2073,2078-2079,2084-2129,2136-2137'),
94  sectors = cms.string('0'),
95  master = cms.int32(1),
96  path = cms.string('s01_2/grid.[v].bin'),
97  ),
98 
99  # Replicate sector 4 for the volume outside CASTOR, to avoid aliasing due to the plates in the cylinder gap
100  # between the collar and the rotating shielding.
101  cms.PSet(
102  volumes = cms.string('1134-1135'),
103  sectors = cms.string('0'),
104  master = cms.int32(4),
105  path = cms.string('s04_1/grid.[v].bin'),
106  ),
107  cms.PSet(
108  volumes = cms.string('2134-2135'),
109  sectors = cms.string('0'),
110  master = cms.int32(4),
111  path = cms.string('s04_2/grid.[v].bin'),
112  ),
113 
114 
115  )
116 )
117 
118