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("TEST2B")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.source = cms.Source("PoolSource",
0008   fileNames = cms.untracked.vstring('file:testSlimmingTest1B.root')
0009 )
0010 
0011 process.testABF = cms.EDAnalyzer("ThinningTestAnalyzer",
0012     parentTag = cms.InputTag('thinningThingProducerAB'),
0013     thinnedTag = cms.InputTag('thinningThingProducerABF'),
0014     associationTag = cms.InputTag('thinningThingProducerABF'),
0015     trackTag = cms.InputTag('trackOfThingsProducerF'),
0016     parentWasDropped = cms.bool(True),
0017     expectedParentContent = cms.vint32(range(0,11)),
0018     expectedThinnedContent = cms.vint32(range(6,9)),
0019     expectedIndexesIntoParent = cms.vuint32(range(6,9)),
0020     expectedValues = cms.vint32(range(6,9)),
0021 )
0022 
0023 process.testABG = cms.EDAnalyzer("ThinningTestAnalyzer",
0024     parentTag = cms.InputTag('thinningThingProducerAB'),
0025     thinnedTag = cms.InputTag('thinningThingProducerABG'),
0026     associationTag = cms.InputTag('thinningThingProducerABG'),
0027     trackTag = cms.InputTag('trackOfThingsProducerG'),
0028     parentWasDropped = cms.bool(True),
0029     expectedParentContent = cms.vint32(range(0,11)),
0030     expectedThinnedContent = cms.vint32(range(9,11)),
0031     expectedIndexesIntoParent = cms.vuint32(range(9,11)),
0032     expectedValues = cms.vint32(range(9,11)),
0033 )
0034 
0035 process.testBF = cms.EDAnalyzer("ThinningTestAnalyzer",
0036     parentTag = cms.InputTag('thinningThingProducerB'),
0037     thinnedTag = cms.InputTag('thinningThingProducerBF'),
0038     associationTag = cms.InputTag('thinningThingProducerBF'),
0039     trackTag = cms.InputTag('trackOfThingsProducerF'),
0040     parentWasDropped = cms.bool(True),
0041     parentSlimmedCount = cms.int32(1),
0042     thinnedSlimmedCount = cms.int32(1),
0043     expectedParentContent = cms.vint32(range(0,11)),
0044     expectedThinnedContent = cms.vint32(range(6,9)),
0045     expectedIndexesIntoParent = cms.vuint32(range(6,9)),
0046     expectedValues = cms.vint32(range(6,9)),
0047 )
0048 
0049 process.testBEG = cms.EDAnalyzer("ThinningTestAnalyzer",
0050     parentTag = cms.InputTag('thinningThingProducerBE'),
0051     thinnedTag = cms.InputTag('thinningThingProducerBEG'),
0052     associationTag = cms.InputTag('thinningThingProducerBEG'),
0053     trackTag = cms.InputTag('trackOfThingsProducerG'),
0054     parentWasDropped = cms.bool(True),
0055     parentSlimmedCount = cms.int32(2),
0056     thinnedSlimmedCount = cms.int32(2),
0057     expectedParentContent = cms.vint32(range(6,11)),
0058     expectedThinnedContent = cms.vint32(range(9,11)),
0059     expectedIndexesIntoParent = cms.vuint32(range(3,5)),
0060     expectedValues = cms.vint32(range(9,11)),
0061 )
0062 
0063 process.outB = cms.OutputModule("PoolOutputModule",
0064     fileName = cms.untracked.string('testSlimmingTest2B.root'),
0065     outputCommands = cms.untracked.vstring(
0066         'keep *',
0067         'drop *_thinningThingProducerABF_*_*',
0068         'drop *_thinningThingProducerABG_*_*',
0069     )
0070 )
0071 
0072 process.p = cms.Path(
0073     process.testABF
0074     * process.testABG
0075     * process.testBF
0076     * process.testBEG
0077 )
0078 
0079 process.ep = cms.EndPath(
0080     process.outB
0081 )