Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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('INFO')
0007 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0008 
0009 # Generate dummy L1TriggerKeyList
0010 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0011 
0012 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0013 process.load("L1TriggerConfig.CSCTFConfigProducers.CSCTFConfigOnline_cfi")
0014 process.load("L1TriggerConfig.CSCTFConfigProducers.L1MuCSCPtLutConfigOnline_cfi") 
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017         input = cms.untracked.int32(1)
0018         )
0019 process.source = cms.Source("EmptySource")
0020 
0021 from CondTools.L1Trigger.L1CondDBPayloadWriter_cff import initPayloadWriter
0022 initPayloadWriter( process,
0023                    outputDBConnect = 'sqlite_file:csctf.db')
0024 process.L1CondDBPayloadWriter.writeL1TriggerKey = cms.bool(False)
0025 
0026 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0027 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0028      record = cms.string('L1MuCSCTFConfigurationRcd'),  
0029      type = cms.string('L1MuCSCTFConfiguration'),
0030      key = cms.string('200710') # <-- you may want to change it depending on the payload
0031      ))
0032 
0033 ## process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0034 ##    record = cms.string('L1MuCSCPtLutRcd'),  
0035 ##    type = cms.string('L1MuCSCPtLut'),
0036 ##    key = cms.string('4') # <-- you may want to change it depending on the payload
0037 ##                 ))
0038 
0039 process.p = cms.Path(process.L1CondDBPayloadWriter)