Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #Log-Report ---------- HLTLogMonitorFilter Summary ------------
0004 #Log-Report  Threshold     Issued   Accepted   Rejected   Prescale Category
0005 #Log-Report         10        100         19         81        100 Other   
0006 #Log-Report          0        100          0        100          1 Test    
0007 #Log-Report          1        150        150          0          1 TestError
0008 #Log-Report         20       1100         40       1060        400 TestWarning
0009 #
0010 #TrigReport ---------- Event  Summary ------------
0011 #TrigReport Events total = 1000 passed = 135 failed = 865
0012 
0013 process = cms.Process("TEST")
0014 
0015 process.load("FWCore.MessageService.MessageLogger_cfi")
0016 process.MessageLogger.cerr.INFO.limit = 1000
0017 
0018 process.maxEvents = cms.untracked.PSet( 
0019   input = cms.untracked.int32(10000) 
0020 )
0021 
0022 #process.options = cms.untracked.PSet(
0023 #  wantSummary = cms.untracked.bool(True)
0024 #)
0025 
0026 process.source = cms.Source('EmptySource')
0027 
0028 process.error = cms.EDAnalyzer('ArbitraryLogError',
0029   severity = cms.string('Error'),
0030   category = cms.string('TestError'),
0031   rate     = cms.uint32(20)
0032 )
0033 
0034 process.warning = cms.EDAnalyzer('ArbitraryLogError',
0035   severity = cms.string('Warning'),
0036   category = cms.string('TestWarning'),
0037   rate     = cms.uint32(1)
0038 )
0039 
0040 process.combined = cms.EDAnalyzer('ArbitraryLogError',
0041   severity = cms.string('Warning'),
0042   category = cms.string('Test|TestWarning|TestError|Other'),
0043   rate     = cms.uint32(10)
0044 )
0045 
0046 process.reject = cms.EDFilter( "HLTBool",
0047     result = cms.bool( False )
0048 )
0049 
0050 process.hltLogMonitorFilter = cms.EDFilter("HLTLogMonitorFilter",
0051     default_threshold = cms.uint32(10),
0052     categories = cms.VPSet(
0053         cms.PSet(
0054             name = cms.string('TestWarning'),
0055             threshold = cms.uint32(20)
0056         ),
0057         cms.PSet(
0058             name = cms.string('TestError'),
0059             threshold = cms.uint32(1)
0060         ),
0061         cms.PSet(
0062             name = cms.string('Test'),
0063             threshold = cms.uint32(0)
0064         )
0065     )
0066 )
0067 
0068 process.path        = cms.Path(process.warning + process.error + process.combined + process.reject)
0069 process.logmonitor  = cms.Path(process.hltLogMonitorFilter)