1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST2F")
process.maxEvents.input = 3
process.WhatsItESProducer = cms.ESProducer("WhatsItESProducer")
process.DoodadESSource = cms.ESSource("DoodadESSource")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:testSlimmingTest1F.root')
)
process.thinningThingProducerABEF = cms.EDProducer("SlimmingThingProducer",
inputTag = cms.InputTag('thinningThingProducerABE'),
trackTag = cms.InputTag('trackOfThingsProducerF'),
offsetToThinnedKey = cms.uint32(6),
offsetToValue = cms.uint32(6),
expectedCollectionSize = cms.uint32(5)
)
process.testABEF = cms.EDAnalyzer("ThinningTestAnalyzer",
parentTag = cms.InputTag('thinningThingProducerABE'),
thinnedTag = cms.InputTag('thinningThingProducerABEF'),
associationTag = cms.InputTag('thinningThingProducerABEF'),
trackTag = cms.InputTag('trackOfThingsProducerF'),
thinnedSlimmedCount = cms.int32(1),
expectedParentContent = cms.vint32(range(6,11)),
expectedThinnedContent = cms.vint32(range(6,9)),
expectedIndexesIntoParent = cms.vuint32(range(0,3)),
expectedValues = cms.vint32(range(6,9)),
)
process.outF = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testSlimmingTest2F.root'),
outputCommands = cms.untracked.vstring(
'drop *',
'keep *_thinningThingProducerABEF_*_*',
'keep *_trackOfThingsProducerF_*_*',
)
)
process.p = cms.Path(
process.thinningThingProducerABEF
* process.testABEF
)
process.ep = cms.EndPath(
process.outF
)
|