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("TEST2D")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.source = cms.Source("PoolSource",
0008   fileNames = cms.untracked.vstring('file:testSlimmingTest1D.root')
0009 )
0010 
0011 process.testABE = cms.EDAnalyzer("ThinningTestAnalyzer",
0012     parentTag = cms.InputTag('thinningThingProducerAB'),
0013     thinnedTag = cms.InputTag('thinningThingProducerABE'),
0014     associationTag = cms.InputTag('thinningThingProducerABE'),
0015     trackTag = cms.InputTag('trackOfThingsProducerE'),
0016     parentWasDropped = cms.bool(True),
0017     expectedParentContent = cms.vint32(range(0,11)),
0018     expectedThinnedContent = cms.vint32(range(6,11)),
0019     expectedIndexesIntoParent = cms.vuint32(range(6,11)),
0020     expectedValues = cms.vint32(range(6,11)),
0021 )
0022 
0023 process.testBD = cms.EDAnalyzer("ThinningTestAnalyzer",
0024     parentTag = cms.InputTag('thinningThingProducerB'),
0025     thinnedTag = cms.InputTag('thinningThingProducerBD'),
0026     associationTag = cms.InputTag('thinningThingProducerBD'),
0027     trackTag = cms.InputTag('trackOfThingsProducerD'),
0028     parentWasDropped = cms.bool(True),
0029     parentSlimmedCount = cms.int32(1),
0030     thinnedSlimmedCount = cms.int32(1),
0031     refToParentIsAvailable = cms.bool(False),
0032     expectedParentContent = cms.vint32(range(0,11)),
0033     expectedThinnedContent = cms.vint32(range(0,6)),
0034     expectedIndexesIntoParent = cms.vuint32(range(0,6)),
0035     expectedValues = cms.vint32(range(0,6)),
0036 )
0037 
0038 process.outD = cms.OutputModule("PoolOutputModule",
0039     fileName = cms.untracked.string('testSlimmingTest2D.root'),
0040     outputCommands = cms.untracked.vstring(
0041         'keep *',
0042         'drop *_thinningThingProducerABE_*_*',
0043     )
0044 )
0045 
0046 process.p = cms.Path(
0047     process.testABE
0048     * process.testBD
0049 )
0050 
0051 process.ep = cms.EndPath(
0052     process.outD
0053 )