Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:12

0001 # cfg file to write a SQL file from OMDS - must be run on .cms cluster
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("L1ConfigWritePayloadDummy")
0006 
0007 ###################### user choices ######################
0008 
0009 testKeyL1Menu = cms.string('L1Menu_Commissioning2009_v7/L1T_Scales_20080926_startup/Imp0/0x100f')
0010 
0011 ###################### end user choices ###################
0012 
0013 # number of events and source
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(1)
0016 )
0017 process.source = cms.Source("EmptyIOVSource",
0018     timetype = cms.string('runnumber'),
0019     firstValue = cms.uint64(4294967295),
0020     lastValue = cms.uint64(4294967295),
0021     interval = cms.uint64(1)
0022 )
0023 
0024 # Generate dummy L1TriggerKeyList
0025 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0026 
0027 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0028 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuOnline_cfi")
0029 
0030 from CondTools.L1Trigger.L1CondDBPayloadWriter_cff import initPayloadWriter
0031 initPayloadWriter( process )
0032 process.L1CondDBPayloadWriter.writeL1TriggerKey = cms.bool(False)
0033 
0034 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0035 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(
0036             cms.PSet(
0037                 record = cms.string('L1GtTriggerMenuRcd'), 
0038                 type = cms.string('L1GtTriggerMenu'),
0039                 key = testKeyL1Menu
0040                 )
0041             )
0042 
0043 process.p = cms.Path(process.L1CondDBPayloadWriter)
0044 
0045 # Message Logger
0046 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0047 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0048 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0049 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0050