File indexing completed on 2024-04-06 12:22:27
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("L1ConfigWritePayloadDummy")
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")
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011
0012
0013 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0014 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0015 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0016 record = cms.string("L1TUtmTriggerMenuRcd"),
0017 type = cms.string("L1TUtmTriggerMenu"),
0018 key = cms.string("dummy")
0019 ))
0020
0021
0022 process.load("L1Trigger.L1TGlobal.TriggerMenu_cff")
0023 process.TriggerMenu.L1TriggerMenuFile = cms.string('L1Menu_Collisions2016_dev_v4.xml')
0024
0025 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0026 toGet = cms.VPSet(
0027 cms.PSet(
0028 record = cms.string('L1TUtmTriggerMenuRcd'),
0029 data = cms.vstring('L1TUtmTriggerMenu')
0030 )
0031 ),
0032 verbose = cms.untracked.bool(True)
0033 )
0034
0035 process.l1mw = cms.EDAnalyzer("L1MenuWriter", isO2Opayload = cms.untracked.bool(False))
0036
0037 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0038 outputDB = cms.Service("PoolDBOutputService",
0039 CondDBSetup,
0040 connect = cms.string('sqlite_file:L1Menu_Collisions2016_dev_v4.xml.db'),
0041 toPut = cms.VPSet(
0042 cms.PSet(
0043 record = cms.string('L1TUtmTriggerMenuRcd'),
0044 tag = cms.string("L1Menu_Collisions2016_dev_v4")
0045 )
0046 )
0047 )
0048 outputDB.DBParameters.authenticationPath = '.'
0049 process.add_(outputDB)
0050
0051 process.p = cms.Path(process.getter + process.l1mw)