Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-17 02:42:00

0001 ##### configuration #####
0002 input_conditions = 'sqlite_file:alignment_config.db'  # input database
0003 run_number = 1  # used to select the IOV
0004 db_tag = 'PPSAlignmentConfiguration_v1_express'  # database tag
0005 #########################
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("retrievePPSAlignmentConfiguration")
0010 
0011 # Message Logger
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 # Load CondDB service
0020 process.load("CondCore.CondDB.CondDB_cfi")
0021 \
0022 # input database (in this case the local sqlite file)
0023 process.CondDB.connect = input_conditions
0024 
0025 # A data source must always be defined. We don't need it, so here's a dummy one.
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 # input service
0034 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0035     process.CondDB,
0036     toGet = cms.VPSet(cms.PSet(
0037         record = cms.string('PPSAlignmentConfigurationRcd'),
0038         tag = cms.string(db_tag)
0039     ))
0040 )
0041 
0042 # DB object retrieve module
0043 process.retrieve_config = cms.EDAnalyzer("RetrievePPSAlignmentConfiguration",
0044     toGet = cms.VPSet(cms.PSet(
0045         record = cms.string('PPSAlignmentConfigurationRcd'),
0046         data = cms.vstring('PPSAlignmentConfiguration')
0047     )),
0048     verbose = cms.untracked.bool(True)
0049 )
0050 
0051 process.path = cms.Path(process.retrieve_config)