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("TEST2A")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.source = cms.Source("PoolSource",
0008   fileNames = cms.untracked.vstring('file:testSlimmingTest1A.root')
0009 )
0010 
0011 process.testA = cms.EDAnalyzer("ThinningTestAnalyzer",
0012     parentTag = cms.InputTag('thingProducer'),
0013     thinnedTag = cms.InputTag('thinningThingProducerA'),
0014     associationTag = cms.InputTag('thinningThingProducerA'),
0015     trackTag = cms.InputTag('trackOfThingsProducerA'),
0016     parentWasDropped = cms.bool(True),
0017     expectedParentContent = cms.vint32(range(0,50)),
0018     expectedThinnedContent = cms.vint32(range(0,20)),
0019     expectedIndexesIntoParent = cms.vuint32(range(0,20)),
0020     expectedValues = cms.vint32(range(0,20)),
0021 )
0022 
0023 process.testABF = cms.EDAnalyzer("ThinningTestAnalyzer",
0024     parentTag = cms.InputTag('thinningThingProducerAB'),
0025     thinnedTag = cms.InputTag('thinningThingProducerABF'),
0026     associationTag = cms.InputTag('thinningThingProducerABF'),
0027     trackTag = cms.InputTag('trackOfThingsProducerF'),
0028     expectedParentContent = cms.vint32(range(0,11)),
0029     expectedThinnedContent = cms.vint32(range(6,9)),
0030     expectedIndexesIntoParent = cms.vuint32(range(6,9)),
0031     expectedValues = cms.vint32(range(6,9)),
0032 )
0033 
0034 process.testB = cms.EDAnalyzer("ThinningTestAnalyzer",
0035     parentTag = cms.InputTag('thingProducer'),
0036     thinnedTag = cms.InputTag('thinningThingProducerB'),
0037     associationTag = cms.InputTag('thinningThingProducerB'),
0038     trackTag = cms.InputTag('trackOfThingsProducerB'),
0039     parentWasDropped = cms.bool(True),
0040     thinnedSlimmedCount = cms.int32(1),
0041     expectedParentContent = cms.vint32(range(0,50)),
0042     expectedThinnedContent = cms.vint32(range(0,11)),
0043     expectedIndexesIntoParent = cms.vuint32(range(0,11)),
0044     expectedValues = cms.vint32(range(0,11)),
0045 )
0046 
0047 process.testBD = cms.EDAnalyzer("ThinningTestAnalyzer",
0048     parentTag = cms.InputTag('thinningThingProducerB'),
0049     thinnedTag = cms.InputTag('thinningThingProducerBD'),
0050     associationTag = cms.InputTag('thinningThingProducerBD'),
0051     trackTag = cms.InputTag('trackOfThingsProducerD'),
0052     parentSlimmedCount = cms.int32(1),
0053     thinnedSlimmedCount = cms.int32(1),
0054     expectedParentContent = cms.vint32(range(0,11)),
0055     expectedThinnedContent = cms.vint32(range(0,6)),
0056     expectedIndexesIntoParent = cms.vuint32(range(0,6)),
0057     expectedValues = cms.vint32(range(0,6)),
0058 )
0059 
0060 process.testBE = cms.EDAnalyzer("ThinningTestAnalyzer",
0061     parentTag = cms.InputTag('thinningThingProducerB'),
0062     thinnedTag = cms.InputTag('thinningThingProducerBE'),
0063     associationTag = cms.InputTag('thinningThingProducerBE'),
0064     trackTag = cms.InputTag('trackOfThingsProducerE'),
0065     parentSlimmedCount = cms.int32(1),
0066     thinnedSlimmedCount = cms.int32(2),
0067     expectedParentContent = cms.vint32(range(0,11)),
0068     expectedThinnedContent = cms.vint32(range(6,11)),
0069     expectedIndexesIntoParent = cms.vuint32(range(6,11)),
0070     expectedValues = cms.vint32(range(6,11)),
0071 )
0072 
0073 process.testBEG = cms.EDAnalyzer("ThinningTestAnalyzer",
0074     parentTag = cms.InputTag('thinningThingProducerBE'),
0075     thinnedTag = cms.InputTag('thinningThingProducerBEG'),
0076     associationTag = cms.InputTag('thinningThingProducerBEG'),
0077     trackTag = cms.InputTag('trackOfThingsProducerG'),
0078     parentSlimmedCount = cms.int32(2),
0079     thinnedSlimmedCount = cms.int32(2),
0080     expectedParentContent = cms.vint32(range(6,11)),
0081     expectedThinnedContent = cms.vint32(range(9,11)),
0082     expectedIndexesIntoParent = cms.vuint32(range(3,5)),
0083     expectedValues = cms.vint32(range(9,11)),
0084 )
0085 
0086 process.p = cms.Path(
0087     process.testA
0088     * process.testABF
0089     * process.testB
0090     * process.testBD
0091     * process.testBE
0092     * process.testBEG
0093 )