Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 from __future__ import print_function
0002 # cfg file to test the online producer of L1GtTriggerMenuRcd
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("L1ConfigWritePayloadDummy")
0007 
0008 ###################### user choices ######################
0009 
0010 useKey = 'ObjectKey'
0011 #useKey = 'SubsystemKey'
0012 #useKey = 'TscKey'
0013 
0014 ###################### end user choices ###################
0015 
0016 # number of events and source
0017 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(1)
0019 )
0020 process.source = cms.Source("EmptyIOVSource",
0021     timetype = cms.string('runnumber'),
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     interval = cms.uint64(1)
0025 )
0026 
0027 
0028 # Generate dummy L1TriggerKeyList
0029 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0030 
0031 # Get configuration data from OMDS.  This is the subclass of L1ConfigOnlineProdBase.
0032 process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuOnline_cfi")
0033 
0034 if (useKey == 'ObjectKey') : 
0035     process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0036     process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0037         record = cms.string('L1GtTriggerMenuRcd'),
0038         type = cms.string('L1GtTriggerMenu'),
0039         key = cms.string('L1Menu_Commissioning2009_v7/L1T_Scales_20080926_startup/Imp0/0x100f')
0040         ))
0041     
0042 elif (useKey == 'SubsystemKey') :
0043     process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0044     process.L1TriggerKeyDummy.objectKeys = cms.VPSet()
0045     process.L1TriggerKeyDummy.label = cms.string('SubsystemKeysOnly')
0046 
0047     # xxxKey = csctfKey, dttfKey, rpcKey, gmtKey, rctKey, gctKey, gtKey, or tsp0Key
0048     process.L1TriggerKeyDummy.gtKey = cms.string('gt_2009_test_1')
0049 
0050     # Subclass of L1ObjectKeysOnlineProdBase.
0051     process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTscObjectKeysOnline_cfi")
0052     process.l1GtTscObjectKeysOnline.systemLabel = cms.string('')
0053 
0054 elif (useKey == 'TscKey') :
0055     # TSC key
0056     process.load("CondTools.L1Trigger.L1SubsystemKeysOnline_cfi")
0057     #process.L1SubsystemKeysOnline.tscKey = cms.string( 'TSC_000618_090304_MIDWEEK2008_GTgt20090bst30_GMTstartup3_DTTF_DT_MI' )
0058     process.L1SubsystemKeysOnline.tscKey = \
0059         cms.string( 'TSC_000990_090723_CRAFT_GTgt200911_GMTsynctf02ro3rpc2_GCT_RCT_DTTF_CSCTF_HCAL_DT_RPC_MI')
0060     
0061     # Subclass of L1ObjectKeysOnlineProdBase.
0062     process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTscObjectKeysOnline_cfi")
0063     process.l1GtTscObjectKeysOnline.systemLabel = cms.string('')
0064 
0065 else :
0066     print('Error: no such key type ', useKey)  
0067     sys.exit()
0068 
0069 
0070 
0071 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0072    toGet = cms.VPSet(cms.PSet(
0073    record = cms.string('L1GtTriggerMenuRcd'),
0074    data = cms.vstring('L1GtTriggerMenu')
0075    )),
0076    verbose = cms.untracked.bool(True)
0077 )
0078 
0079 process.p = cms.Path(process.getter)
0080 
0081 # Message Logger
0082 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0083 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0084 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0085 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0086