Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:19

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 # This cfi contains everything needed to use the VolumeBased magnetic
0005 # field engine version 160812.
0006 #
0007 # PLEASE DO NOT USE THIS DIRECTLY
0008 # Always use the standard sequence Configuration.StandardSequences.MagneticField_cff
0009 
0010 
0011 magfield = cms.ESSource("XMLIdealGeometryESSource",
0012     geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/normal/cmsextent.xml', 
0013         'Geometry/CMSCommonData/data/cms.xml', 
0014         'Geometry/CMSCommonData/data/cmsMagneticField.xml', 
0015         'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_1.xml',
0016         'MagneticField/GeomBuilder/data/MagneticFieldVolumes_160812_2.xml',
0017         'Geometry/CMSCommonData/data/materials.xml'),
0018     rootNodeName = cms.string('cmsMagneticField:MAGF')
0019 )
0020 
0021 # avoid interference with EmptyESSource in uniformMagneticField.cfi
0022 es_prefer_magfield = cms.ESPrefer("XMLIdealGeometryESSource","magfield")
0023 
0024 
0025 ParametrizedMagneticFieldProducer = cms.ESProducer("ParametrizedMagneticFieldProducer",
0026     version = cms.string('OAE_1103l_071212'),
0027     parameters = cms.PSet(
0028         BValue = cms.string('3_8T')
0029     ),
0030     label = cms.untracked.string('parametrizedField')
0031 )
0032 
0033 
0034 VBFConfig_160812 = cms.PSet (
0035     useParametrizedTrackerField = cms.bool(True),
0036     label = cms.untracked.string(''),
0037     paramLabel = cms.string('parametrizedField'),
0038     version = cms.string('grid_160812_3_8t'),
0039     geometryVersion = cms.int32(160812),
0040     debugBuilder = cms.untracked.bool(False),
0041     scalingVolumes = cms.vint32(),
0042     scalingFactors = cms.vdouble(),
0043 
0044 
0045     gridFiles = cms.VPSet(
0046 #           ### Specs for using specific tables for every volume
0047 #             cms.PSet(
0048 #                 volumes   = cms.string('1001-1464,2001-2464'),
0049 #                 sectors   = cms.string('0') ,
0050 #                 master    = cms.int32(0),
0051 #                 path      = cms.string('s[s]/grid.[v].bin'),
0052 #             ),
0053 
0054 
0055            # Volumes for which specific tables are used for each sector
0056            cms.PSet(
0057                 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,' + 
0058                                        '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'),
0059                 sectors   = cms.string('0') ,
0060                 master    = cms.int32(0),
0061                 path      = cms.string('s[s]/grid.[v].bin'),
0062            ),
0063 
0064            # Replicate sector 1 for volumes outside any detector
0065            cms.PSet(
0066                 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,
0067                                        '1098-1101,1130-1137,' + # Forward volumes, ouside CASTOR/HF
0068                                        '1403-1414,1417-1464,' # Volumes beyond |Z|>17.74
0069                                        '2011,2028-2029,2034-2035,2042-2043,2050-2051,2058-2059,2064-2065,2072-2073,2078-2079,'+
0070                                        '2098-2101,2130-2137,'+
0071                                        '2403-2414,2417-2464'),
0072                 sectors   = cms.string('0'),
0073                 master    = cms.int32(1),
0074                 path      = cms.string('s01/grid.[v].bin'),
0075            ),
0076       )
0077 )
0078 
0079 
0080 VolumeBasedMagneticFieldESProducer = cms.ESProducer("VolumeBasedMagneticFieldESProducer",
0081     VBFConfig_160812,
0082 )
0083 
0084 
0085 ### To set a different nominal map, set the following in your .py:
0086 
0087 ### 3T
0088 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3t')
0089 #ParametrizedMagneticFieldProducer.parameters.BValue = cms.string('3_0T')
0090 
0091 ### 3.5T
0092 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3_5t')
0093 #ParametrizedMagneticFieldProducer.parameters.BValue = cms.string('3_5T')
0094 
0095 
0096 ### Run I, 3.8T
0097 #VolumeBasedMagneticFieldESProducer.version = cms.string('grid_160812_3_8t_Run1')