Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-22 01:53:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('test')
0004 
0005 process.source = cms.Source('EmptyIOVSource',
0006     timetype = cms.string('runnumber'),
0007     firstValue = cms.uint64(1),
0008     lastValue = cms.uint64(1),
0009     interval = cms.uint64(1)
0010 )
0011 
0012 
0013 # load calibrations from JSON file
0014 process.load('CalibPPS.ESProducers.ppsTimingCalibrationLUTESSource_cfi')
0015 process.ppsTimingCalibrationLUTESSource.calibrationFile = cms.FileInPath('CalibPPS/TimingCalibration/data/LUT_test.json')
0016 
0017 
0018 # output service for database
0019 process.load('CondCore.CondDB.CondDB_cfi')
0020 process.CondDB.connect = 'sqlite_file:ppsDiamondTiming_calibrationLUT.sqlite' # SQLite output
0021 
0022 process.PoolDBOutputService = cms.Service('PoolDBOutputService',
0023     process.CondDB,
0024     timetype = cms.untracked.string('runnumber'),
0025     toPut = cms.VPSet(
0026         cms.PSet(
0027             record = cms.string('PPSTimingCalibrationLUTRcd'),
0028             tag = cms.string('PPSDiamondTimingCalibrationLUT'),
0029         )
0030     )
0031 )
0032 
0033 process.ppsTimingCalibrationLUTWriter = cms.EDAnalyzer('PPSTimingCalibrationLUTWriter')
0034 
0035 process.path = cms.Path(
0036     process.ppsTimingCalibrationLUTWriter
0037 )
0038