Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-18 02:24:49

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     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 # DB object retrieve module

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)