File indexing completed on 2024-04-06 11:59:31
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("MapWriter")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005
0006
0007 process.load("Configuration.Geometry.GeometryExtended2017Reco_cff")
0008
0009 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0010 from Configuration.AlCa.autoCond import autoCond
0011 process.GlobalTag.globaltag = autoCond['phase1_2017_design']
0012
0013
0014
0015 process.source = cms.Source("EmptyIOVSource",
0016 timetype = cms.string('runnumber'),
0017 firstValue = cms.uint64(1),
0018 lastValue = cms.uint64(1),
0019 interval = cms.uint64(1)
0020 )
0021
0022 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0023 DBParameters = cms.PSet(
0024 messageLevel = cms.untracked.int32(0),
0025 authenticationPath = cms.untracked.string('.')
0026 ),
0027 timetype = cms.untracked.string('runnumber'),
0028 connect = cms.string("sqlite_file:cabling.db"),
0029
0030 toPut = cms.VPSet(cms.PSet(
0031 record = cms.string('SiPixelFedCablingMapRcd'),
0032 tag = cms.string('SiPixelFedCablingMap_phase1_v1')
0033 )),
0034
0035 )
0036
0037 process.MessageLogger = cms.Service("MessageLogger",
0038 cerr = cms.untracked.PSet(
0039 enable = cms.untracked.bool(False)
0040 ),
0041 debugModules = cms.untracked.vstring('*'),
0042 files = cms.untracked.PSet(
0043 log = cms.untracked.PSet(
0044 threshold = cms.untracked.string('WARNING')
0045 )
0046 )
0047 )
0048
0049
0050
0051 process.mapwriter = cms.EDAnalyzer("SiPixelFedCablingMapWriter",
0052 record = cms.string('SiPixelFedCablingMapRcd'),
0053 fileName = cms.untracked.string('pixelToLNK.ascii_phase1_v1')
0054
0055
0056 )
0057
0058 process.p1 = cms.Path(process.mapwriter)