File indexing completed on 2024-04-06 12:12:38
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004
0005 process.options = cms.untracked.PSet(
0006 numberOfStreams = cms.untracked.uint32(1)
0007 )
0008
0009 process.maxEvents = cms.untracked.PSet(
0010 input = cms.untracked.int32(3)
0011 )
0012
0013 process.source = cms.Source("PoolSource",
0014 fileNames = cms.untracked.vstring('file:testDetSetVectorThinningTest1.root')
0015 )
0016
0017 process.slimmingTestA = cms.EDAnalyzer("ThinningDSVTestAnalyzer",
0018 parentTag = cms.InputTag('thingProducer'),
0019 thinnedTag = cms.InputTag('slimmingThingProducerA'),
0020 associationTag = cms.InputTag('slimmingThingProducerA'),
0021 trackTag = cms.InputTag('trackOfThingsProducerA'),
0022 parentWasDropped = cms.bool(True),
0023 thinnedSlimmedCount = cms.int32(1),
0024 refSlimmedCount = cms.int32(1),
0025 expectedParentContent = cms.VPSet(
0026 cms.PSet(id = cms.uint32(1), values = cms.vint32(range(0,50))),
0027 cms.PSet(id = cms.uint32(2), values = cms.vint32(range(50,100))),
0028 cms.PSet(id = cms.uint32(3), values = cms.vint32(range(100,150))),
0029 ),
0030 expectedThinnedContent = cms.VPSet(
0031 cms.PSet(id = cms.uint32(1), values = cms.vint32(range(0,9))),
0032 cms.PSet(id = cms.uint32(2), values = cms.vint32(range(50,59))),
0033 cms.PSet(id = cms.uint32(3), values = cms.vint32(range(100,109))),
0034 ),
0035 expectedIndexesIntoParent = cms.vuint32(
0036 list(range(0,9)) +
0037 list(range(50,59)) +
0038 list(range(100,109))
0039 ),
0040 expectedNumberOfTracks = cms.uint32(8*3),
0041 expectedValues = cms.vint32(
0042 list(range(0,9)) +
0043 list(range(50,59)) +
0044 list(range(100,109))
0045 )
0046 )
0047
0048 process.p = cms.Path(
0049 process.slimmingTestA
0050 )