Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST2I")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.source = cms.Source("PoolSource",
0008   fileNames = cms.untracked.vstring('file:testSlimmingTest1I.root')
0009 )
0010 
0011 process.testB = cms.EDAnalyzer("ThinningTestAnalyzer",
0012     parentTag = cms.InputTag('thingProducer'),
0013     thinnedTag = cms.InputTag('thinningThingProducerB'),
0014     associationTag = cms.InputTag('thinningThingProducerB'),
0015     trackTag = cms.InputTag('trackOfThingsProducerB'),
0016     parentWasDropped = cms.bool(True),
0017     refToParentIsAvailable = cms.bool(False),
0018     thinnedSlimmedCount = cms.int32(1),
0019     expectedThinnedContent = cms.vint32(range(0,11)),
0020     expectedIndexesIntoParent = cms.vuint32(range(0,11)),
0021     expectedValues = cms.vint32(range(0,11)),
0022 )
0023 
0024 process.testCI = cms.EDAnalyzer("ThinningTestAnalyzer",
0025     parentTag = cms.InputTag('thinningThingProducerC'),
0026     thinnedTag = cms.InputTag('thinningThingProducerCI'),
0027     associationTag = cms.InputTag('thinningThingProducerCI'),
0028     trackTag = cms.InputTag('trackOfThingsProducerI'),
0029     parentWasDropped = cms.bool(True),
0030     expectedThinnedContent = cms.vint32(range(11,16)),
0031     expectedIndexesIntoParent = cms.vuint32(range(0,5)),
0032     expectedValues = cms.vint32(range(11,16)),
0033 )
0034 
0035 process.outI = cms.OutputModule("PoolOutputModule",
0036     fileName = cms.untracked.string('testSlimmingTest2I.root'),
0037     outputCommands = cms.untracked.vstring(
0038         'keep *',
0039         'drop *_thinningThingProducerCI_*_*',
0040     )
0041 )
0042 
0043 process.p = cms.Path(
0044     process.testB
0045     * process.testCI
0046 )
0047 
0048 process.ep = cms.EndPath(
0049     process.outI
0050 )