Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST2G")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.WhatsItESProducer = cms.ESProducer("WhatsItESProducer")
0008 
0009 process.DoodadESSource = cms.ESSource("DoodadESSource")
0010 
0011 process.source = cms.Source("PoolSource",
0012   fileNames = cms.untracked.vstring('file:testSlimmingTest1G.root')
0013 )
0014 
0015 # Here thinningThingProducerB leads to an association with
0016 # default-constructed BranchID for the parent to be inserted. That
0017 # should not lead to other failures as long as the thinning producer
0018 # is not run.
0019 process.rejectingFilter = cms.EDFilter("TestFilterModule",
0020     acceptValue = cms.untracked.int32(-1)
0021 )
0022 process.thinningThingProducerB = cms.EDProducer("SlimmingThingProducer",
0023     inputTag = cms.InputTag('doesNotExist', '', 'PROD'),
0024     trackTag = cms.InputTag('trackOfThingsProducerB'),
0025     offsetToThinnedKey = cms.uint32(0),
0026     expectedCollectionSize = cms.uint32(50)
0027 )
0028 
0029 process.thinningThingProducerAB = cms.EDProducer("ThinningThingProducer",
0030     inputTag = cms.InputTag('thinningThingProducerA'),
0031     trackTag = cms.InputTag('trackOfThingsProducerB'),
0032     offsetToThinnedKey = cms.uint32(0),
0033     expectedCollectionSize = cms.uint32(20)
0034 )
0035 
0036 process.p = cms.Path(
0037     process.rejectingFilter *
0038     process.thinningThingProducerB
0039 )
0040 process.p2 = cms.Path(
0041     process.thinningThingProducerAB
0042 )