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                  , 'RPCOMTFLinkMap_v1'
0012                  , VarParsing.VarParsing.multiplicity.singleton
0013                  , VarParsing.VarParsing.varType.string
0014                  , "Output Data Tag")
0015 options.parseArguments()
0016 
0017 process = cms.Process("RPCOMTFLinkMapPopConAnalyzer")
0018 
0019 process.load("FWCore.MessageService.MessageLogger_cfi")
0020 process.load("CondTools.RPC.RPCOMTFLinkMapPopConAnalyzer_cff")
0021 
0022 process.CondDB.connect = 'sqlite_file:data/RPCLinkMap.db'
0023 process.RPCOMTFLinkMapPopConAnalyzer.Source.dataTag = options.tag;
0024 process.RPCOMTFLinkMapPopConAnalyzer.Source.txtFile = cms.untracked.string("RPCOMTFLinkMap.txt");
0025 process.RPCOMTFLinkMapPopConAnalyzer.Source.sinceRun = cms.uint64(options.sinceRun)
0026 
0027 process.source = cms.Source("EmptyIOVSource"
0028                             , timetype = cms.string('runnumber')
0029                             , firstValue = cms.uint64(options.sinceRun)
0030                             , lastValue = cms.uint64(options.sinceRun)
0031                             , interval = cms.uint64(1)
0032 )
0033 
0034 process.MessageLogger.files.RPCOMTFLinkMapPopConAnalyzer_log = cms.untracked.PSet(
0035     threshold = cms.untracked.string("INFO")
0036     , FwkReport = cms.untracked.PSet(
0037         reportEvery = cms.untracked.int32(1)
0038     )
0039 )
0040 
0041 process.MessageLogger.cout.threshold = cms.untracked.string("INFO")
0042 
0043 process.PoolDBOutputService = cms.Service("PoolDBOutputService"
0044                                           , process.CondDB
0045                                           , timetype = cms.untracked.string('runnumber')
0046                                           , toPut = cms.VPSet(
0047                                               cms.PSet(
0048                                                   record = cms.string('RPCOMTFLinkMapRcd')
0049                                                   , tag = cms.string(options.tag)
0050                                               )
0051                                           )
0052 )
0053 
0054 process.p = cms.Path(process.RPCOMTFLinkMapPopConAnalyzer)