Back to home page

Project CMSSW displayed by LXR

 
 

    


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 process.load("Configuration.StandardSequences.GeometryDB_cff")
0007 
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009 from Configuration.AlCa.autoCond import autoCond
0010 process.GlobalTag.globaltag = autoCond['run2_data']
0011 
0012 process.source = cms.Source("EmptyIOVSource",
0013     timetype = cms.string('runnumber'),
0014     firstValue = cms.uint64(1),
0015     lastValue = cms.uint64(1),
0016     interval = cms.uint64(1)
0017 )
0018 
0019 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0020     DBParameters = cms.PSet(
0021      messageLevel = cms.untracked.int32(0),
0022      authenticationPath = cms.untracked.string('.')
0023     ),
0024     timetype = cms.untracked.string('runnumber'),
0025     connect = cms.string("sqlite_file:cabling.db"),
0026     #process.CondDBCommon,
0027     toPut = cms.VPSet(cms.PSet(
0028         record =  cms.string('SiPixelFedCablingMapRcd'),
0029         tag = cms.string('SiPixelFedCablingMap_v21')
0030     )),
0031     # loadBlobStreamer = cms.untracked.bool(False)
0032 )
0033 #process.CondDBCommon.connect = cms.string("sqlite_file:cabling.db")
0034 
0035 process.MessageLogger = cms.Service("MessageLogger",
0036     cerr = cms.untracked.PSet(
0037         enable = cms.untracked.bool(False)
0038     ),
0039     debugModules = cms.untracked.vstring('*'),
0040     files = cms.untracked.PSet(
0041         out = cms.untracked.PSet(
0042             threshold = cms.untracked.string('DEBUG')
0043         )
0044     )
0045 )
0046 
0047 process.load("CalibTracker.SiPixelConnectivity.PixelToLNKAssociateFromAsciiESProducer_cfi")
0048 
0049 process.mapwriter = cms.EDAnalyzer("SiPixelFedCablingMapWriter",
0050   record = cms.string('SiPixelFedCablingMapRcd'),
0051   #associator = cms.untracked.string('PixelToLNKAssociateFromAscii'),
0052   #phase1 = cms.untracked.bool(False),
0053   fileName = cms.untracked.string('pixelToLNK.ascii_V21')
0054 )
0055 
0056 process.p1 = cms.Path(process.mapwriter)