Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:33

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MAGNETICFIELDTEST")
0004 
0005 process.source = cms.Source("EmptySource")
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(1)
0008 )
0009 
0010 
0011 process.load("MagneticField.Engine.volumeBasedMagneticField_160812_cfi")
0012 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = False
0013 
0014 process.testMagneticField = cms.EDAnalyzer("testMagneticField",
0015 
0016         inputTable = cms.untracked.string("tableList.txt"),
0017     inputTableType = cms.untracked.string("TOSCAFileList"),
0018 #   inputTableType = cms.untracked.string("xyz_m"),
0019 
0020     resolution     = cms.untracked.double(0.0005), #was: 0.0001
0021     numberOfPoints = cms.untracked.int32(100000000),
0022 
0023 #   InnerRadius = cms.untracked.double(0),    #  default: 0 
0024 #   OuterRadius = cms.untracked.double(900),  #  default: 900 
0025 #       HalfLength  = cms.untracked.double(1600)  #  default: 1600 
0026 
0027 )
0028 
0029 #process.VolumeBasedMagneticFieldESProducer.gridFiles = cms.VPSet(
0030           ### Override specs for using specific tables for every volume
0031 #           cms.PSet(
0032 #               volumes   = cms.string('1001-1402,2001-2402'),
0033 #               sectors   = cms.string('0') ,
0034 #               master    = cms.int32(0),
0035 #              path      = cms.string('s[s]/grid.[v].bin'),
0036 #           )
0037 #)
0038 
0039 
0040 process.p1 = cms.Path(process.testMagneticField)
0041