File indexing completed on 2024-04-06 12:02:44
0001
0002 input_conditions = 'sqlite_file:association_config.db'
0003 run_number = 1
0004 db_tag = 'PPSAssociationCuts_test'
0005
0006
0007 import FWCore.ParameterSet.Config as cms
0008
0009 process = cms.Process("retrievePPSAssociationConfig")
0010
0011
0012 process.MessageLogger = cms.Service("MessageLogger",
0013 destinations = cms.untracked.vstring('cout'),
0014 cout = cms.untracked.PSet(
0015 threshold = cms.untracked.string('INFO')
0016 )
0017 )
0018
0019
0020
0021 process.load("CondCore.CondDB.CondDB_cfi")
0022
0023
0024 process.CondDB.connect = input_conditions
0025
0026
0027 process.source = cms.Source("EmptyIOVSource",
0028 timetype = cms.string('runnumber'),
0029 firstValue = cms.uint64(run_number),
0030 lastValue = cms.uint64(run_number),
0031 interval = cms.uint64(1)
0032 )
0033
0034
0035 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0036 process.CondDB,
0037 DumbStat = cms.untracked.bool(True),
0038 toGet = cms.VPSet(cms.PSet(
0039 record = cms.string('PPSAssociationCutsRcd'),
0040 tag = cms.string(db_tag)
0041 ))
0042 )
0043
0044
0045 process.retrieve_config = cms.EDAnalyzer("RetrievePPSAssociationCuts",
0046 toGet = cms.VPSet(cms.PSet(
0047 record = cms.string('PPSAssociationCutsRcd'),
0048 data = cms.vstring('PPSAssociationCuts')
0049 )),
0050 verbose = cms.untracked.bool(True)
0051 )
0052
0053 process.path = cms.Path(process.retrieve_config)