Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Example configuration for the magnetic field.
0002 # This example prompts for coordinates and prints the corresponding value of B.
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("MAGNETICFIELDTEST")
0007 
0008 process.source = cms.Source("EmptySource",
0009     firstRun = cms.untracked.uint32(300000)
0010 )
0011 process.maxEvents = cms.untracked.PSet(
0012     input = cms.untracked.int32(1)
0013 )
0014 
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 from Configuration.AlCa.GlobalTag import GlobalTag
0017 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0018 
0019 
0020 ### Standard map, uses current from RunInfo and configuration based on the GT
0021 ### (in particular, according to the era)
0022 process.load("Configuration.StandardSequences.MagneticField_cff")
0023 
0024 ### Override the current from RunInfo with the specified value
0025 #process.VolumeBasedMagneticFieldESProducer.valueOverride = 18000
0026 
0027 
0028 process.MessageLogger = cms.Service("MessageLogger",
0029     cerr = cms.untracked.PSet(
0030         DEBUG = cms.untracked.PSet(
0031             limit = cms.untracked.int32(0)
0032         ),
0033         INFO = cms.untracked.PSet(
0034             limit = cms.untracked.int32(0)
0035         ),
0036         MagGeoBuilder = cms.untracked.PSet(
0037             limit = cms.untracked.int32(0)
0038         ),
0039         MagGeometry = cms.untracked.PSet(
0040             limit = cms.untracked.int32(0)
0041         ),
0042         MagGeometry_cache = cms.untracked.PSet(
0043             limit = cms.untracked.int32(0)
0044         ),
0045         MagneticField = cms.untracked.PSet(
0046             limit = cms.untracked.int32(10000000)
0047         ),
0048         WARNING = cms.untracked.PSet(
0049             limit = cms.untracked.int32(0)
0050         ),
0051         threshold = cms.untracked.string('WARNING')
0052     ),
0053     debugModules = cms.untracked.vstring('queryField')
0054 )
0055 
0056 
0057 process.queryField  = cms.EDAnalyzer("queryField")
0058 process.p1 = cms.Path(process.queryField)
0059 
0060 ### Activate verbose mode of geometry building as well as additional
0061 ### consistency checks on geometry
0062 #process.VolumeBasedMagneticFieldESProducer.debugBuilder = True