File indexing completed on 2024-04-06 12:22:27
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("tester")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0006 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0007 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0008
0009 process.source = cms.Source("EmptySource", firstRun = cms.untracked.uint32(284074))
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011
0012 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0013 process.l1conddb = cms.ESSource("PoolDBESSource",
0014 CondDBSetup,
0015 connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
0016 toGet = cms.VPSet(
0017 cms.PSet(
0018 record = cms.string('L1TriggerKeyExtRcd'),
0019 tag = cms.string("L1TriggerKeyExt_Stage2v0_hlt")
0020 ),
0021 cms.PSet(
0022 record = cms.string('L1TriggerKeyListExtRcd'),
0023 tag = cms.string("L1TriggerKeyListExt_Stage2v0_hlt")
0024 ),
0025 cms.PSet(
0026 record = cms.string("L1TUtmTriggerMenuRcd"),
0027 tag = cms.string("L1TUtmTriggerMenu_Stage2v0_hlt"),
0028 )
0029 )
0030 )
0031
0032
0033 from CondCore.CondDB.CondDB_cfi import CondDB
0034 CondDB.connect = cms.string('sqlite:l1config.db')
0035
0036 outputDB = cms.Service("PoolDBOutputService",
0037 CondDB,
0038 toPut = cms.VPSet(
0039 cms.PSet(
0040 record = cms.string('L1TriggerKeyExtRcd'),
0041 tag = cms.string('L1TriggerKeyExt_Stage2v0_hlt')
0042 ),
0043 cms.PSet(
0044 record = cms.string("L1TriggerKeyListExtRcd"),
0045 tag = cms.string("L1TriggerKeyListExt_Stage2v0_hlt")
0046 ),
0047 cms.PSet(
0048 record = cms.string("L1TUtmTriggerMenuRcd"),
0049 tag = cms.string("L1TUtmTriggerMenu_Stage2v0_hlt")
0050 )
0051 )
0052 )
0053
0054 outputDB.DBParameters.authenticationPath = cms.untracked.string('.')
0055 process.add_(outputDB)
0056
0057 process.l1mw = cms.EDAnalyzer("L1MenuWriter")
0058 process.l1kw = cms.EDAnalyzer("L1KeyWriter")
0059 process.l1klw = cms.EDAnalyzer("L1KeyListWriter")
0060
0061 process.p = cms.Path(process.l1kw + process.l1klw + process.l1mw)
0062