File indexing completed on 2024-04-06 12:03:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 import FWCore.ParameterSet.Config as cms
0019 import FWCore.ParameterSet.VarParsing as VarParsing
0020
0021 process = cms.Process("UPDATEDB")
0022
0023 options = VarParsing.VarParsing()
0024 options.register( "inputDB",
0025 "frontier://FrontierProd/CMS_CONDITIONS",
0026 VarParsing.VarParsing.multiplicity.singleton,
0027 VarParsing.VarParsing.varType.string,
0028 "the input DB"
0029 )
0030
0031 options.register( "inputTag",
0032 "AlCaRecoHLTpaths8e29_1e31_v7_hlt",
0033 VarParsing.VarParsing.multiplicity.singleton,
0034 VarParsing.VarParsing.varType.string,
0035 "the input tag"
0036 )
0037
0038 options.register( "outputDB",
0039 "sqlite_file:AlCaRecoTriggerBits.db",
0040 VarParsing.VarParsing.multiplicity.singleton,
0041 VarParsing.VarParsing.varType.string,
0042 "the output DB"
0043 )
0044
0045 options.register( "outputTag",
0046 "testTag",
0047 VarParsing.VarParsing.multiplicity.singleton,
0048 VarParsing.VarParsing.varType.string,
0049 "the input DB"
0050 )
0051
0052 options.register( "firstRun",
0053 1,
0054 VarParsing.VarParsing.multiplicity.singleton,
0055 VarParsing.VarParsing.varType.int,
0056 "the first run"
0057 )
0058
0059 options.parseArguments()
0060
0061 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0062 process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
0063 process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
0064 reportEvery = cms.untracked.int32(1)
0065 ))
0066
0067
0068 from CondTools.HLT.alCaRecoTriggerBitsRcdUpdate_cfi import alCaRecoTriggerBitsRcdUpdate as _alCaRecoTriggerBitsRcdUpdate
0069 process.AlCaRecoTriggerBitsRcdUpdate = _alCaRecoTriggerBitsRcdUpdate.clone()
0070
0071 process.AlCaRecoTriggerBitsRcdUpdate.firstRunIOV = options.firstRun
0072
0073
0074 process.AlCaRecoTriggerBitsRcdUpdate.startEmpty = False
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085 process.AlCaRecoTriggerBitsRcdUpdate.triggerListsAdd = []
0086 process.AlCaRecoTriggerBitsRcdUpdate.alcarecoToReplace = [
0087 cms.PSet(oldKey = cms.string('SiStripCalMinBiasAfterAbortGap'),
0088 newKey = cms.string('SiStripCalMinBiasAAG')
0089 )
0090 ]
0091
0092
0093 process.source = cms.Source("EmptySource",
0094
0095 firstRun = cms.untracked.uint32(options.firstRun)
0096 )
0097 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110
0111 process.load("CondCore.CondDB.CondDB_cfi")
0112
0113
0114 process.CondDB.connect = options.inputDB
0115 process.dbInput = cms.ESSource("PoolDBESSource",
0116 process.CondDB,
0117 toGet = cms.VPSet(cms.PSet(record = cms.string('AlCaRecoTriggerBitsRcd'),
0118 tag = cms.string(options.inputTag)
0119 )
0120 )
0121 )
0122
0123
0124 process.CondDB.connect = options.outputDB
0125 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0126 process.CondDB,
0127 timetype = cms.untracked.string('runnumber'),
0128 toPut = cms.VPSet(cms.PSet(record = cms.string('AlCaRecoTriggerBitsRcd'),
0129 tag = cms.string(options.outputTag)
0130 )
0131 )
0132 )
0133
0134
0135 process.p = cms.Path(process.AlCaRecoTriggerBitsRcdUpdate)
0136
0137