Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("Test")
0003 
0004 #we want to continue processing after a 'ProductNotFound' exception in order
0005 # to test what happens to the cache held by the InputTag
0006 process.options = cms.untracked.PSet(
0007     SkipEvent = cms.untracked.vstring('ProductNotFound')
0008 )
0009 
0010 process.maxEvents = cms.untracked.PSet(
0011     input = cms.untracked.int32(3)
0012 )
0013 process.source = cms.Source("EmptySource",
0014     timeBetweenEvents = cms.untracked.uint64(10),
0015     firstTime = cms.untracked.uint64(1000000)
0016 )
0017 
0018 process.double = cms.EDProducer("ToyDoubleProducer", 
0019                                 dvalue = cms.double(1.0)
0020 )
0021 
0022 process.doubleTwo = cms.EDProducer("ToyDoubleProducer", 
0023                                     dvalue = cms.double(1.0)
0024 )
0025 
0026 #Need to add an Int producer whose module label is 'beyond' what IntTestAnalyzer is looking for
0027 process.zInt = cms.EDProducer("IntProducer", ivalue=cms.int32(26))
0028 
0029 process.getOne = cms.EDAnalyzer("IntTestAnalyzer",
0030     valueMustMatch = cms.untracked.int32(1),
0031     moduleLabel = cms.untracked.InputTag('one')
0032 )
0033 
0034 process.p = cms.Path(process.double+process.doubleTwo+process.zInt+process.getOne)