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("TEST2F")
0004 
0005 process.maxEvents.input = 3
0006 
0007 process.WhatsItESProducer = cms.ESProducer("WhatsItESProducer")
0008 
0009 process.DoodadESSource = cms.ESSource("DoodadESSource")
0010 
0011 process.source = cms.Source("PoolSource",
0012   fileNames = cms.untracked.vstring('file:testSlimmingTest1F.root')
0013 )
0014 
0015 process.thinningThingProducerABEF = cms.EDProducer("SlimmingThingProducer",
0016     inputTag = cms.InputTag('thinningThingProducerABE'),
0017     trackTag = cms.InputTag('trackOfThingsProducerF'),
0018     offsetToThinnedKey = cms.uint32(6),
0019     offsetToValue = cms.uint32(6),
0020     expectedCollectionSize = cms.uint32(5)
0021 )
0022 
0023 process.testABEF = cms.EDAnalyzer("ThinningTestAnalyzer",
0024     parentTag = cms.InputTag('thinningThingProducerABE'),
0025     thinnedTag = cms.InputTag('thinningThingProducerABEF'),
0026     associationTag = cms.InputTag('thinningThingProducerABEF'),
0027     trackTag = cms.InputTag('trackOfThingsProducerF'),
0028     thinnedSlimmedCount = cms.int32(1),
0029     expectedParentContent = cms.vint32(range(6,11)),
0030     expectedThinnedContent = cms.vint32(range(6,9)),
0031     expectedIndexesIntoParent = cms.vuint32(range(0,3)),
0032     expectedValues = cms.vint32(range(6,9)),
0033 )
0034 
0035 process.outF = cms.OutputModule("PoolOutputModule",
0036     fileName = cms.untracked.string('testSlimmingTest2F.root'),
0037     outputCommands = cms.untracked.vstring(
0038         'drop *',
0039         'keep *_thinningThingProducerABEF_*_*',
0040         'keep *_trackOfThingsProducerF_*_*',
0041     )
0042 )
0043 
0044 process.p = cms.Path(
0045     process.thinningThingProducerABEF
0046     * process.testABEF
0047 )
0048 
0049 process.ep = cms.EndPath(
0050     process.outF
0051 )