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