Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import FWCore.ParameterSet.VarParsing as VarParsing
0004 options = VarParsing.VarParsing()
0005 options.register('sinceRun'
0006                  , 1
0007                  , VarParsing.VarParsing.multiplicity.singleton
0008                  , VarParsing.VarParsing.varType.int
0009                  , "IOV Start Run Number")
0010 options.register('tag'
0011                  , 'RPCLBLinkMap_v1'
0012                  , VarParsing.VarParsing.multiplicity.singleton
0013                  , VarParsing.VarParsing.varType.string
0014                  , "Output Data Tag")
0015 options.parseArguments()
0016 
0017 process = cms.Process("RPCLBLinkMapPopConAnalyzer")
0018 
0019 process.load("FWCore.MessageService.MessageLogger_cfi")
0020 process.load("CondTools.RPC.RPCLBLinkMapPopConAnalyzer_cff")
0021 
0022 process.CondDB.connect = 'sqlite_file:data/RPCLinkMap.db'
0023 process.RPCLBLinkMapPopConAnalyzer.Source.dataTag = options.tag;
0024 process.RPCLBLinkMapPopConAnalyzer.Source.txtFile = cms.untracked.string("RPCLBLinkMap.txt");
0025 
0026 process.source = cms.Source("EmptyIOVSource"
0027                             , timetype = cms.string('runnumber')
0028                             , firstValue = cms.uint64(options.sinceRun)
0029                             , lastValue = cms.uint64(options.sinceRun)
0030                             , interval = cms.uint64(1)
0031 )
0032 
0033 process.MessageLogger.files.RPCLBLinkMapPopConAnalyzer_log = cms.untracked.PSet(
0034     threshold = cms.untracked.string("INFO")
0035     , FwkReport = cms.untracked.PSet(
0036         reportEvery = cms.untracked.int32(1)
0037     )
0038 )
0039 
0040 process.MessageLogger.cout.threshold = cms.untracked.string("INFO")
0041 
0042 process.PoolDBOutputService = cms.Service("PoolDBOutputService"
0043                                           , process.CondDB
0044                                           , timetype = cms.untracked.string('runnumber')
0045                                           , toPut = cms.VPSet(
0046                                               cms.PSet(
0047                                                   record = cms.string('RPCLBLinkMapRcd')
0048                                                   , tag = cms.string(options.tag)
0049                                               )
0050                                           )
0051 )
0052 
0053 process.p = cms.Path(process.RPCLBLinkMapPopConAnalyzer)