Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-23 03:28:03

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def ExceptionThrowingProducer(*args, **kwargs):
0004   mod = cms.EDProducer('ExceptionThrowingProducer',
0005     verbose = cms.untracked.bool(False),
0006     eventIDThrowOnEvent = cms.untracked.EventID(0, 0, 0),
0007     eventIDThrowOnGlobalBeginRun = cms.untracked.EventID(0, 0, 0),
0008     eventIDThrowOnGlobalBeginLumi = cms.untracked.EventID(0, 0, 0),
0009     eventIDThrowOnGlobalEndRun = cms.untracked.EventID(0, 0, 0),
0010     eventIDThrowOnGlobalEndLumi = cms.untracked.EventID(0, 0, 0),
0011     eventIDThrowOnStreamBeginRun = cms.untracked.EventID(0, 0, 0),
0012     eventIDThrowOnStreamBeginLumi = cms.untracked.EventID(0, 0, 0),
0013     eventIDThrowOnStreamEndRun = cms.untracked.EventID(0, 0, 0),
0014     eventIDThrowOnStreamEndLumi = cms.untracked.EventID(0, 0, 0),
0015     throwInBeginJob = cms.untracked.bool(False),
0016     throwInBeginStream = cms.untracked.bool(False),
0017     throwInBeginProcessBlock = cms.untracked.bool(False),
0018     throwInEndProcessBlock = cms.untracked.bool(False),
0019     throwInEndStream = cms.untracked.bool(False),
0020     throwInEndJob = cms.untracked.bool(False),
0021     expectedNBeginJob = cms.untracked.uint32(1),
0022     expectedNBeginStream = cms.untracked.uint32(4),
0023     expectedNBeginProcessBlock = cms.untracked.uint32(1),
0024     expectedNEndProcessBlock = cms.untracked.uint32(1),
0025     expectedNEndStream = cms.untracked.uint32(4),
0026     expectedNEndJob = cms.untracked.uint32(1),
0027     expectNoRunsProcessed = cms.untracked.bool(False),
0028     expectedOffsetNoEndJob = cms.untracked.uint32(0),
0029     expectedOffsetNoEndStream = cms.untracked.uint32(0),
0030     expectedOffsetNoEndProcessBlock = cms.untracked.uint32(0),
0031     expectedStreamBeginLumi = cms.untracked.uint32(4294967295),
0032     expectedOffsetNoStreamEndLumi = cms.untracked.uint32(0),
0033     expectedGlobalBeginLumi = cms.untracked.uint32(0),
0034     expectedOffsetNoGlobalEndLumi = cms.untracked.uint32(0),
0035     expectedOffsetNoWriteLumi = cms.untracked.uint32(0),
0036     expectedStreamBeginRun = cms.untracked.uint32(4294967295),
0037     expectedOffsetNoStreamEndRun = cms.untracked.uint32(0),
0038     expectedGlobalBeginRun = cms.untracked.uint32(0),
0039     expectedOffsetNoGlobalEndRun = cms.untracked.uint32(0),
0040     expectedOffsetNoWriteRun = cms.untracked.uint32(0),
0041     mightGet = cms.optional.untracked.vstring
0042   )
0043   for a in args:
0044     mod.update_(a)
0045   mod.update_(kwargs)
0046   return mod