Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:25

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.RCTConfigProducers.L1RCTParametersOnline_cfi")
0014 process.load("L1TriggerConfig.L1ScalesProducers.L1EmEtScaleConfigOnline_cfi")
0015 process.load("L1TriggerConfig.L1ScalesProducers.L1CaloEcalScaleConfigOnline_cfi")
0016 process.load("L1TriggerConfig.L1ScalesProducers.L1CaloHcalScaleConfigOnline_cfi")
0017 process.l1RCTParametersTest = cms.EDAnalyzer("L1RCTParametersTester")
0018 process.l1RCTChannelMaskTest = cms.EDAnalyzer("L1RCTChannelMaskTester")
0019 process.l1scalesTest = cms.EDAnalyzer("L1ScalesTester")
0020 # paths to be run
0021 
0022 
0023 
0024 
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1)
0028 )
0029 
0030 process.source = cms.Source("EmptySource")
0031 
0032 from CondTools.L1Trigger.L1CondDBPayloadWriter_cff import initPayloadWriter
0033 initPayloadWriter( process )
0034 
0035 
0036 
0037 
0038 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0039    toGet = cms.VPSet(cms.PSet(
0040    record = cms.string('L1EmEtScaleRcd'),
0041    data = cms.vstring('L1CaloEtScale')),
0042                      cms.PSet(
0043     record = cms.string('L1RCTParametersRcd'),
0044     data = cms.vstring('L1RCTParameters')
0045     ),
0046                      cms.PSet(
0047       record = cms.string('L1CaloHcalScaleRcd'),
0048     data = cms.vstring('L1CaloHcalScale')
0049     ),
0050                      cms.PSet(
0051     record = cms.string('L1CaloEcalScaleRcd'),
0052     data = cms.vstring('L1CaloEcalScale')
0053     )),
0054    verbose = cms.untracked.bool(True)
0055 )
0056 
0057 process.p = cms.Path(process.getter*process.l1scalesTest)
0058 
0059 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0060 process.L1TriggerKeyDummy.objectKeys = cms.VPSet()
0061 process.L1TriggerKeyDummy.label = cms.string('SubsystemKeysOnly')
0062 
0063 # rctKey = csctfKey, dttfKey, rpcKey, gmtKey, rctKey, gctKey, gtKey, or tsp0Key
0064 #process.L1TriggerKeyDummy.rctKey = cms.string('EEG_EHSUMS_TAU3_DECO_25_FALLGR09_FULLECAL')
0065 #process.L1TriggerKeyDummy.rctKey = cms.string('HEG_HSUMS_HF');
0066 process.L1TriggerKeyDummy.rctKey = cms.string('EEG_EHSUMS_TAU4_NOVETOES_14APR10')
0067 #process.L1TriggerKeyDummy.rctKey = cms.string('EE+');
0068 
0069 # Subclass of L1ObjectKeysOnlineProdBase.
0070 process.load("L1TriggerConfig.RCTConfigProducers.L1RCTObjectKeysOnline_cfi")
0071 process.L1RCTObjectKeysOnline.subsystemLabel = cms.string('')
0072