Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # to test the communication with DBS and produce the ptlut 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("L1ConfigWritePayloadDummy")
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0007 process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
0008 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0009 
0010 
0011 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0012 process.load("L1TriggerConfig.CSCTFConfigProducers.L1MuCSCPtLutConfigOnline_cfi")
0013 
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(1)
0016 )
0017 process.source = cms.Source("EmptySource")
0018 
0019 from CondTools.L1Trigger.L1CondDBPayloadWriter_cff import initPayloadWriter
0020 initPayloadWriter( process )
0021 
0022 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0023    toGet = cms.VPSet(cms.PSet(
0024    record = cms.string('L1MuCSCPtLutRcd'),
0025    data = cms.vstring('L1MuCSCPtLut')
0026    )),
0027    verbose = cms.untracked.bool(True)
0028 )
0029 
0030 process.p = cms.Path(process.getter)
0031 
0032 
0033 
0034 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0035 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0036         record = cms.string('L1MuCSCPtLutRcd'),
0037         type = cms.string('L1MuCSCPtLut'),
0038         key = cms.string('3')
0039 ))
0040