Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:54

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 from CondFormats.PPSObjects.PPSTimingDetEnum_cff import PPSTimingDetEnum
0013 
0014 # load calibrations from JSON file
0015 process.load('CalibPPS.ESProducers.ppsTimingCalibrationESSource_cfi')
0016 process.ppsTimingCalibrationESSource.calibrationFile = cms.FileInPath('RecoPPS/Local/data/timing_calibration_diamond_2018_mar19.ex.json')
0017 process.ppsTimingCalibrationESSource.subDetector = PPSTimingDetEnum.PPS_DIAMOND
0018 
0019 # output service for database
0020 process.load('CondCore.CondDB.CondDB_cfi')
0021 process.CondDB.connect = 'sqlite_file:ppsDiamondTiming_calibration.sqlite' # SQLite output
0022 
0023 process.PoolDBOutputService = cms.Service('PoolDBOutputService',
0024     process.CondDB,
0025     timetype = cms.untracked.string('runnumber'),
0026     toPut = cms.VPSet(
0027         cms.PSet(
0028             record = cms.string('PPSTimingCalibrationRcd'),
0029             tag = cms.string('PPSDiamondTimingCalibration'),
0030         )
0031     )
0032 )
0033 
0034 process.ppsTimingCalibrationWriter = cms.EDAnalyzer('PPSTimingCalibrationWriter')
0035 
0036 process.path = cms.Path(
0037     process.ppsTimingCalibrationWriter
0038 )
0039