Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:56

0001 #
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("MAGNETICFIELDTEST")
0006 
0007 process.source = cms.Source("EmptySource")
0008 process.maxEvents = cms.untracked.PSet(
0009     input = cms.untracked.int32(1)
0010 )
0011 
0012 # Example configuration for the magnetic field
0013 
0014 # Uncomment ONE of the following:
0015 
0016 ### Uniform field
0017 #process.load("Configuration.StandardSequences.MagneticField_0T_cff")
0018 #process.localUniform.ZFieldInTesla = 3.8
0019 
0020 
0021 ### Full field map, static configuration for each field value
0022 #process.load("Configuration.StandardSequences.MagneticField_20T_cff")
0023 #process.load("Configuration.StandardSequences.MagneticField_30T_cff")
0024 #process.load("Configuration.StandardSequences.MagneticField_35T_cff")
0025 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0026 #process.load("Configuration.StandardSequences.MagneticField_40T_cff")
0027 
0028 ### Configuration to select map based on recorded current in the DB
0029 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0030 #from Configuration.AlCa.GlobalTag import GlobalTag
0031 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0032 #process.GlobalTag = GlobalTag(process.GlobalTag,'auto:phase1_2017_realistic', '')
0033 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0034 #process.load("Configuration.StandardSequences.MagneticField_cff")
0035 #process.VolumeBasedMagneticFieldESProducer.valueOverride = 18000
0036 
0037 process.load("MagneticField.Engine.volumeBasedMagneticField_160812_cfi")
0038 
0039 
0040 process.MessageLogger = cms.Service("MessageLogger",
0041     cerr = cms.untracked.PSet(
0042         enable = cms.untracked.bool(False)
0043     ),
0044     cout = cms.untracked.PSet(
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         enable = cms.untracked.bool(True),
0052         noLineBreaks = cms.untracked.bool(True),
0053         threshold = cms.untracked.string('WARNING')
0054     )
0055 )
0056 
0057 process.testField  = cms.EDAnalyzer("RKTest")
0058 process.p1 = cms.Path(process.testField)
0059