Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-27 03:17:57

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