Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.source = cms.Source("DelayedReaderThrowingSource", labels = cms.untracked.vstring("fail"))
0006 
0007 process.options.TryToContinue = ['TEST']
0008 process.maxEvents.input = 3
0009 
0010 process.intProd = cms.EDProducer("IntProducer", ivalue = cms.int32(10))
0011 process.dependentAnalyzer = cms.EDAnalyzer("TestFindProduct",
0012     inputTags = cms.untracked.VInputTag(["intProd"]),
0013     inputTagsNotFound = cms.untracked.VInputTag( cms.InputTag("fail")),
0014     expectedSum = cms.untracked.int32(30)
0015 )
0016 
0017 process.dependent2 = cms.EDAnalyzer("TestFindProduct",
0018     inputTags = cms.untracked.VInputTag(["intProd"]),
0019     inputTagsNotFound = cms.untracked.VInputTag( cms.InputTag("fail")),
0020     expectedSum = cms.untracked.int32(30)
0021 )
0022 
0023 process.independent = cms.EDAnalyzer("TestFindProduct",
0024     inputTags = cms.untracked.VInputTag(["intProd"]),
0025     expectedSum = cms.untracked.int32(30)
0026 )
0027 
0028 process.f = cms.EDFilter("IntProductFilter", label = cms.InputTag("intProd"))
0029 
0030 process.options.modulesToCallForTryToContinue = [process.dependentAnalyzer.label_(), process.dependent2.label_()]
0031 
0032 process.p = cms.Path(process.dependentAnalyzer, cms.Task(process.intProd))
0033 process.p2 = cms.Path(cms.wait(process.dependent2)+process.f+process.independent)
0034 #process.add_(cms.Service("Tracer"))