File indexing completed on 2024-04-06 12:12:39
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST2E")
0004
0005 process.maxEvents.input = 3
0006
0007 process.source = cms.Source("PoolSource",
0008 fileNames = cms.untracked.vstring('file:testSlimmingTest1E.root')
0009 )
0010
0011 process.testBD = cms.EDAnalyzer("ThinningTestAnalyzer",
0012 parentTag = cms.InputTag('thinningThingProducerB'),
0013 thinnedTag = cms.InputTag('thinningThingProducerBD'),
0014 associationTag = cms.InputTag('thinningThingProducerBD'),
0015 trackTag = cms.InputTag('trackOfThingsProducerD'),
0016 parentWasDropped = cms.bool(True),
0017 parentSlimmedCount = cms.int32(1),
0018 thinnedSlimmedCount = cms.int32(1),
0019 refSlimmedCount = cms.int32(1),
0020 expectedParentContent = cms.vint32(range(0,11)),
0021 expectedThinnedContent = cms.vint32(range(0,6)),
0022 expectedIndexesIntoParent = cms.vuint32(range(0,6)),
0023 expectedValues = cms.vint32(range(0,6)),
0024 )
0025
0026 process.testBEF = cms.EDAnalyzer("ThinningTestAnalyzer",
0027 parentTag = cms.InputTag('thinningThingProducerBE'),
0028 thinnedTag = cms.InputTag('thinningThingProducerBEF'),
0029 associationTag = cms.InputTag('thinningThingProducerBEF'),
0030 trackTag = cms.InputTag('trackOfThingsProducerF'),
0031 parentWasDropped = cms.bool(True),
0032 parentSlimmedCount = cms.int32(2),
0033 thinnedSlimmedCount = cms.int32(2),
0034 refToParentIsAvailable = cms.bool(False),
0035 expectedParentContent = cms.vint32(range(0,11)),
0036 expectedThinnedContent = cms.vint32(range(6,9)),
0037 expectedIndexesIntoParent = cms.vuint32(range(0,3)),
0038 expectedValues = cms.vint32(range(6,9)),
0039 )
0040
0041 process.outE = cms.OutputModule("PoolOutputModule",
0042 fileName = cms.untracked.string('testSlimmingTest2E.root'),
0043 outputCommands = cms.untracked.vstring(
0044 'keep *',
0045 'drop *_thinningThingProducerBD_*_*',
0046 )
0047 )
0048
0049 process.p = cms.Path(
0050 process.testBD
0051 * process.testBEF
0052 )
0053
0054 process.ep = cms.EndPath(
0055 process.outE
0056 )