Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-07 04:53:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("harvester")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0008 
0009 process.load('Configuration.StandardSequences.Services_cff')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0012 from Configuration.AlCa.GlobalTag import GlobalTag
0013 process.GlobalTag = GlobalTag(process.GlobalTag, '113X_dataRun3_Prompt_PPStestSampicPCL_v1')
0014 
0015 # Source (histograms)
0016 process.source = cms.Source("DQMRootSource",
0017     fileNames = cms.untracked.vstring("file:worker_output.root"),
0018 )
0019 
0020 # output service for database
0021 process.load('CondCore.CondDB.CondDB_cfi')
0022 process.CondDB.connect = 'sqlite_file:ppsDiamondSampicTiming_calibration.sqlite' # SQLite output
0023 
0024 process.PoolDBOutputService = cms.Service('PoolDBOutputService',
0025     process.CondDB,
0026     timetype = cms.untracked.string('runnumber'),
0027     toPut = cms.VPSet(
0028         cms.PSet(
0029             record = cms.string('PPSTimingCalibrationRcd'),
0030             tag = cms.string('DiamondSampicCalibration'),
0031         )
0032     )
0033 )
0034 
0035 ################
0036 #geometry
0037 ################
0038 process.load('Geometry.VeryForwardGeometry.geometryRPFromDD_2021_cfi')
0039 
0040 process.load("CalibPPS.TimingCalibration.PPSDiamondSampicTimingCalibrationPCLHarvester_cfi")
0041 #process.PPSDiamondSampicTimingCalibrationPCLHarvester.jsonCalibFile=cms.string("initial.cal.json")
0042 
0043 # load DQM framework
0044 process.load("DQMServices.Core.DQMStore_cfi")
0045 process.load("DQMServices.Components.DQMEnvironment_cfi")
0046 process.dqmEnv.subSystemFolder = "CalibPPS"
0047 process.dqmSaver.convention = 'Offline'
0048 process.dqmSaver.workflow = "/CalibPPS/TimingCalibration/CMSSW_12_0_0_pre2"
0049 process.dqmSaver.saveByRun = -1
0050 process.dqmSaver.saveAtJobEnd = True
0051 process.dqmSaver.forceRunNumber = 999999
0052 
0053 process.p = cms.Path(
0054     process.PPSDiamondSampicTimingCalibrationPCLHarvester
0055 )
0056 
0057 process.end_path = cms.EndPath(
0058     process.dqmEnv +
0059     process.dqmSaver
0060 )
0061 
0062 process.schedule = cms.Schedule(
0063     process.p,
0064     process.end_path
0065 )
0066 
0067 
0068