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("TEST3B")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.source = cms.Source("PoolSource",
0008   fileNames = cms.untracked.vstring('file:testSlimmingTest2B.root')
0009 )
0010 
0011 process.testBF = cms.EDAnalyzer("ThinningTestAnalyzer",
0012     parentTag = cms.InputTag('thinningThingProducerB'),
0013     thinnedTag = cms.InputTag('thinningThingProducerBF'),
0014     associationTag = cms.InputTag('thinningThingProducerBF'),
0015     trackTag = cms.InputTag('trackOfThingsProducerF'),
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,10)),
0021     expectedThinnedContent = cms.vint32(range(6,9)),
0022     expectedIndexesIntoParent = cms.vuint32(range(6,9)),
0023     expectedValues = cms.vint32(range(6,9)),
0024 )
0025 
0026 process.testBEG = cms.EDAnalyzer("ThinningTestAnalyzer",
0027     parentTag = cms.InputTag('thinningThingProducerBE'),
0028     thinnedTag = cms.InputTag('thinningThingProducerBEG'),
0029     associationTag = cms.InputTag('thinningThingProducerBEG'),
0030     trackTag = cms.InputTag('trackOfThingsProducerG'),
0031     parentWasDropped = cms.bool(True),
0032     refToParentIsAvailable = cms.bool(False),
0033     parentSlimmedCount = cms.int32(2),
0034     thinnedSlimmedCount = cms.int32(2),
0035     refSlimmedCount = cms.int32(1),
0036     expectedParentContent = cms.vint32(range(6,11)),
0037     expectedThinnedContent = cms.vint32(range(9,11)),
0038     expectedIndexesIntoParent = cms.vuint32(range(3,5)),
0039     expectedValues = cms.vint32(range(9,11)),
0040 )
0041 
0042 process.outB = cms.OutputModule("PoolOutputModule",
0043     fileName = cms.untracked.string('testSlimmingTest3B.root'),
0044     outputCommands = cms.untracked.vstring(
0045         'keep *',
0046         'drop *_thinningThingProducerBF_*_*',
0047     )
0048 )
0049 
0050 process.p = cms.Path(
0051     process.testBF
0052     * process.testBEG
0053 )
0054 
0055 process.ep = cms.EndPath(
0056     process.outB
0057 )