File indexing completed on 2023-03-17 10:47:46
0001
0002 output_conditions = 'sqlite_file:association_config.db'
0003 run_number = 1
0004 db_tag = 'PPSAssociationCuts_test'
0005 product_instance_label = 'db_test_label'
0006
0007
0008 import FWCore.ParameterSet.Config as cms
0009
0010 process = cms.Process("writePPSAssociationCuts")
0011
0012
0013
0014 process.MessageLogger = cms.Service("MessageLogger",
0015 destinations = cms.untracked.vstring('cout'),
0016 cout = cms.untracked.PSet(
0017 threshold = cms.untracked.string('INFO')
0018 )
0019 )
0020
0021
0022 process.load("CondCore.CondDB.CondDB_cfi")
0023
0024
0025 process.CondDB.connect = output_conditions
0026
0027
0028 process.source = cms.Source("EmptyIOVSource",
0029 timetype = cms.string('runnumber'),
0030 firstValue = cms.uint64(run_number),
0031 lastValue = cms.uint64(run_number),
0032 interval = cms.uint64(1)
0033 )
0034
0035
0036 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0037 process.CondDB,
0038 timetype = cms.untracked.string('runnumber'),
0039 toPut = cms.VPSet(cms.PSet(
0040 record = cms.string('PPSAssociationCutsRcd'),
0041 tag = cms.string(db_tag)
0042 ))
0043 )
0044
0045
0046
0047 import CalibPPS.ESProducers.ppsAssociationCuts_non_DB_cff as ac
0048 ac.use_single_infinite_iov_entry(ac.ppsAssociationCutsESSource,ac.p2018)
0049
0050 process.ppsAssociationCutsESSource = ac.ppsAssociationCutsESSource
0051 process.ppsAssociationCutsESSource.appendToDataLabel = cms.string('product_instance_label')
0052
0053
0054
0055
0056
0057 process.config_writer = cms.EDAnalyzer("WritePPSAssociationCuts",
0058 record = cms.string('PPSAssociationCutsRcd'),
0059 loggingOn = cms.untracked.bool(True),
0060 SinceAppendMode = cms.bool(True),
0061 Source = cms.PSet(
0062 IOVRun = cms.untracked.uint32(1)
0063 ),
0064 label = cms.string("product_instance_label")
0065 )
0066
0067 process.path = cms.Path(process.config_writer)