Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 
0006 # instantiate & configure message logger service
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     cerr = cms.untracked.PSet(
0009         enable = cms.untracked.bool(False)
0010     ),
0011     cout = cms.untracked.PSet(
0012         enable = cms.untracked.bool(True),
0013         threshold = cms.untracked.string('INFO')
0014     )
0015 )
0016 
0017 
0018 # define prescale table: three rows (paths), three columns (scenarios)
0019 prescaleTable = cms.VPSet(
0020     cms.PSet(
0021       pathName = cms.string('HLT2'),
0022       prescales = cms.vuint32(2, 5, 10)
0023     ), 
0024     cms.PSet(
0025       pathName = cms.string('HLT3'),
0026       prescales = cms.vuint32(5, 10, 20)
0027     ), 
0028     cms.PSet(
0029       pathName = cms.string('HLT4'),
0030       prescales = cms.vuint32(10, 20, 0)
0031     )
0032 )
0033 
0034 
0035 # instantiate prescale service and configure with above defined table
0036 process.load("FWCore.PrescaleService.PrescaleService_cfi")
0037 process.PrescaleService.prescaleTable = prescaleTable
0038 process.PrescaleService.lvl1Labels = cms.vstring('10E30','10E31','10E32')
0039 process.PrescaleService.lvl1DefaultLabel = cms.string('10E31')
0040 
0041 
0042 # empty source for testing
0043 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0044 process.source = cms.Source("EmptySource")
0045 
0046 
0047 # define modules
0048 process.psHLT1 = cms.EDFilter("HLTPrescaler", 
0049     L1GtReadoutRecordTag = cms.InputTag('source')
0050 )
0051 
0052 process.psHLT2 = cms.EDFilter("HLTPrescaler", 
0053     L1GtReadoutRecordTag = cms.InputTag('source')
0054 )
0055 
0056 process.psHLT3 = cms.EDFilter("HLTPrescaler", 
0057     L1GtReadoutRecordTag = cms.InputTag('source')
0058 )
0059 
0060 process.psHLT4 = cms.EDFilter("HLTPrescaler", 
0061     L1GtReadoutRecordTag = cms.InputTag('source')
0062 )
0063 
0064 
0065 
0066 # define paths
0067 process.HLT1 = cms.Path(process.psHLT1)
0068 process.HLT2 = cms.Path(process.psHLT2)
0069 process.HLT3 = cms.Path(process.psHLT3)
0070 process.HLT4 = cms.Path(process.psHLT4)