Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:44

0001 # Test of a feature of PSet validation:
0002 #   The  statistics
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 
0008 import FWCore.Framework.test.cmsExceptionsFatal_cff
0009 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0010 
0011 process.load("FWCore.MessageService.test.Services_cff")
0012 
0013 process.MessageLogger = cms.Service("MessageLogger",
0014     cerr = cms.untracked.PSet(
0015         enable = cms.untracked.bool(False)
0016     ),
0017     debugModules = cms.untracked.vstring('*'),
0018     files = cms.untracked.PSet(
0019         u1_debugs = cms.untracked.PSet(
0020             FwkTest = cms.untracked.PSet(
0021                 limit = cms.untracked.int32(0)
0022             ),
0023             noTimeStamps = cms.untracked.bool(True),
0024             preEventProcessing = cms.untracked.PSet(
0025                 limit = cms.untracked.int32(0)
0026             ),
0027             threshold = cms.untracked.string('DEBUG')
0028         ),
0029         u1_default = cms.untracked.PSet(
0030             FwkTest = cms.untracked.PSet(
0031                 limit = cms.untracked.int32(0)
0032             ),
0033             enableStatistics = cms.untracked.bool(True),
0034             noTimeStamps = cms.untracked.bool(True),
0035             preEventProcessing = cms.untracked.PSet(
0036                 limit = cms.untracked.int32(0)
0037             )
0038         ),
0039         u1_errors = cms.untracked.PSet(
0040             noTimeStamps = cms.untracked.bool(True),
0041             threshold = cms.untracked.string('ERROR')
0042         ),
0043         u1_infos = cms.untracked.PSet(
0044             FwkTest = cms.untracked.PSet(
0045                 limit = cms.untracked.int32(0)
0046             ),
0047             noTimeStamps = cms.untracked.bool(True),
0048             preEventProcessing = cms.untracked.PSet(
0049                 limit = cms.untracked.int32(0)
0050             ),
0051             threshold = cms.untracked.string('INFO')
0052         ),
0053         u1_warnings = cms.untracked.PSet(
0054             enableStatistics = cms.untracked.bool(True),
0055             noTimeStamps = cms.untracked.bool(True),
0056             threshold = cms.untracked.string('WARNING')
0057         ),
0058         u1_x = cms.untracked.PSet(
0059 
0060         )
0061     )
0062 )
0063 
0064 process.maxEvents = cms.untracked.PSet(
0065     input = cms.untracked.int32(2)
0066 )
0067 
0068 process.source = cms.Source("EmptySource")
0069 
0070 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0071 
0072 process.p = cms.Path(process.sendSomeMessages)