Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Test of a feature of PSet validation:
0002 #   Category nested PSets
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     cat_J = cms.untracked.PSet(
0015         limit = cms.untracked.int32(100),
0016         reportEvery = cms.untracked.int32(10),
0017         timespan = cms.untracked.int32(10)
0018     ),
0019     cerr = cms.untracked.PSet(
0020         enable = cms.untracked.bool(False)
0021     ),
0022     debugModules = cms.untracked.vstring('*'),
0023     files = cms.untracked.PSet(
0024         u1_debugs = cms.untracked.PSet(
0025             FwkTest = cms.untracked.PSet(
0026                 limit = cms.untracked.int32(0)
0027             ),
0028             noTimeStamps = cms.untracked.bool(True),
0029             preEventProcessing = cms.untracked.PSet(
0030                 limit = cms.untracked.int32(0)
0031             ),
0032             threshold = cms.untracked.string('DEBUG')
0033         ),
0034         u1_default = cms.untracked.PSet(
0035             FwkTest = cms.untracked.PSet(
0036                 limit = cms.untracked.int32(0)
0037             ),
0038             enableStatistics = cms.untracked.bool(True),
0039             noTimeStamps = cms.untracked.bool(True),
0040             preEventProcessing = cms.untracked.PSet(
0041                 limit = cms.untracked.int32(0)
0042             )
0043         ),
0044         u1_errors = cms.untracked.PSet(
0045             noTimeStamps = cms.untracked.bool(True),
0046             threshold = cms.untracked.string('ERROR')
0047         ),
0048         u1_infos = cms.untracked.PSet(
0049             FwkTest = cms.untracked.PSet(
0050                 limit = cms.untracked.int32(0)
0051             ),
0052             noTimeStamps = cms.untracked.bool(True),
0053             preEventProcessing = cms.untracked.PSet(
0054                 limit = cms.untracked.int32(0)
0055             ),
0056             threshold = cms.untracked.string('INFO')
0057         ),
0058         u1_warnings = cms.untracked.PSet(
0059             enableStatistics = cms.untracked.bool(True),
0060             noTimeStamps = cms.untracked.bool(True),
0061             threshold = cms.untracked.string('WARNING')
0062         ),
0063         u1_x = cms.untracked.PSet(
0064             FwkTest = cms.untracked.PSet(
0065                 limit = cms.untracked.int32(0)
0066             ),
0067             INFO = cms.untracked.PSet(
0068                 limit = cms.untracked.int32(0)
0069             ),
0070             noTimeStamps = cms.untracked.bool(True),
0071             preEventProcessing = cms.untracked.PSet(
0072                 limit = cms.untracked.int32(0)
0073             ),
0074             threshold = cms.untracked.string('INFO')
0075         )
0076     )
0077 )
0078 
0079 process.maxEvents = cms.untracked.PSet(
0080     input = cms.untracked.int32(2)
0081 )
0082 
0083 process.source = cms.Source("EmptySource")
0084 
0085 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0086 
0087 process.p = cms.Path(process.sendSomeMessages)