File indexing completed on 2024-04-06 12:12:43
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST3")
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("NewEventStreamFileReader",
0014 fileNames = cms.untracked.vstring('file:testThinningStreamerout.dat')
0015 )
0016
0017 process.testA = cms.EDAnalyzer("ThinningTestAnalyzer",
0018 parentTag = cms.InputTag('thingProducer'),
0019 thinnedTag = cms.InputTag('thinningThingProducerA'),
0020 associationTag = cms.InputTag('thinningThingProducerA'),
0021 trackTag = cms.InputTag('trackOfThingsProducerA'),
0022 parentWasDropped = cms.bool(True),
0023 expectedThinnedContent = cms.vint32(0, 1, 2, 3, 4, 5, 6, 7, 8),
0024 expectedIndexesIntoParent = cms.vuint32(0, 1, 2, 3, 4, 5, 6, 7, 8),
0025 expectedValues = cms.vint32(0, 1, 2, 3, 4, 5, 6, 7, 8)
0026 )
0027
0028 process.testB = cms.EDAnalyzer("ThinningTestAnalyzer",
0029 parentTag = cms.InputTag('thinningThingProducerA'),
0030 thinnedTag = cms.InputTag('thinningThingProducerB'),
0031 associationTag = cms.InputTag('thinningThingProducerB'),
0032 trackTag = cms.InputTag('trackOfThingsProducerB'),
0033 expectedParentContent = cms.vint32( 0, 1, 2, 3, 4, 5, 6, 7, 8),
0034 expectedThinnedContent = cms.vint32(0, 1, 2, 3),
0035 expectedIndexesIntoParent = cms.vuint32(0, 1, 2, 3),
0036 expectedValues = cms.vint32(0, 1, 2, 3)
0037 )
0038
0039 process.testC = cms.EDAnalyzer("ThinningTestAnalyzer",
0040 parentTag = cms.InputTag('thinningThingProducerA'),
0041 thinnedTag = cms.InputTag('thinningThingProducerC'),
0042 associationTag = cms.InputTag('thinningThingProducerC'),
0043 trackTag = cms.InputTag('trackOfThingsProducerC'),
0044 expectedParentContent = cms.vint32( 0, 1, 2, 3, 4, 5, 6, 7, 8),
0045 expectedThinnedContent = cms.vint32(4, 5, 6, 7),
0046 expectedIndexesIntoParent = cms.vuint32(4, 5, 6, 7),
0047 expectedValues = cms.vint32(4, 5, 6, 7)
0048 )
0049
0050 process.testD = cms.EDAnalyzer("ThinningTestAnalyzer",
0051 parentTag = cms.InputTag('thingProducer'),
0052 thinnedTag = cms.InputTag('thinningThingProducerD'),
0053 associationTag = cms.InputTag('thinningThingProducerD'),
0054 trackTag = cms.InputTag('trackOfThingsProducerD'),
0055 parentWasDropped = cms.bool(True),
0056 thinnedWasDropped = cms.bool(True),
0057 expectedIndexesIntoParent = cms.vuint32(10, 11, 12, 13, 14, 15, 16, 17, 18),
0058 expectedValues = cms.vint32(10, 11, 12, 13, 14, 15, 16, 17, -1)
0059 )
0060
0061 process.testE = cms.EDAnalyzer("ThinningTestAnalyzer",
0062 parentTag = cms.InputTag('thinningThingProducerD'),
0063 thinnedTag = cms.InputTag('thinningThingProducerE'),
0064 associationTag = cms.InputTag('thinningThingProducerE'),
0065 trackTag = cms.InputTag('trackOfThingsProducerE'),
0066 parentWasDropped = cms.bool(True),
0067 expectedThinnedContent = cms.vint32(10, 11, 12, 13, 14),
0068 expectedIndexesIntoParent = cms.vuint32(0, 1, 2, 3, 4),
0069 expectedValues = cms.vint32(10, 11, 12, 13, 14)
0070 )
0071
0072 process.testF = cms.EDAnalyzer("ThinningTestAnalyzer",
0073 parentTag = cms.InputTag('thinningThingProducerD'),
0074 thinnedTag = cms.InputTag('thinningThingProducerF'),
0075 associationTag = cms.InputTag('thinningThingProducerF'),
0076 trackTag = cms.InputTag('trackOfThingsProducerF'),
0077 parentWasDropped = cms.bool(True),
0078 expectedThinnedContent = cms.vint32(14, 15, 16, 17),
0079 expectedIndexesIntoParent = cms.vuint32(4, 5, 6, 7),
0080 expectedValues = cms.vint32(14, 15, 16, 17)
0081 )
0082
0083 process.testG = cms.EDAnalyzer("ThinningTestAnalyzer",
0084 parentTag = cms.InputTag('thingProducer'),
0085 thinnedTag = cms.InputTag('thinningThingProducerG'),
0086 associationTag = cms.InputTag('thinningThingProducerG'),
0087 trackTag = cms.InputTag('trackOfThingsProducerG'),
0088 parentWasDropped = cms.bool(True),
0089 expectedThinnedContent = cms.vint32(20, 21, 22, 23, 24, 25, 26, 27, 28),
0090 expectedIndexesIntoParent = cms.vuint32(20, 21, 22, 23, 24, 25, 26, 27, 28),
0091 expectedValues = cms.vint32(20, 21, 22, 23, 24, 25, 26, 27, 28)
0092 )
0093
0094 process.testH = cms.EDAnalyzer("ThinningTestAnalyzer",
0095 parentTag = cms.InputTag('thinningThingProducerG'),
0096 thinnedTag = cms.InputTag('thinningThingProducerH'),
0097 associationTag = cms.InputTag('thinningThingProducerH'),
0098 trackTag = cms.InputTag('trackOfThingsProducerH'),
0099 thinnedWasDropped = cms.bool(True),
0100 expectedParentContent = cms.vint32( 20, 21, 22, 23, 24, 25, 26, 27, 28),
0101 associationShouldBeDropped = cms.bool(True),
0102 expectedValues = cms.vint32(20, 21, 22, 23)
0103 )
0104
0105 process.testI = cms.EDAnalyzer("ThinningTestAnalyzer",
0106 parentTag = cms.InputTag('thinningThingProducerG'),
0107 thinnedTag = cms.InputTag('thinningThingProducerI'),
0108 associationTag = cms.InputTag('thinningThingProducerI'),
0109 trackTag = cms.InputTag('trackOfThingsProducerI'),
0110 thinnedWasDropped = cms.bool(True),
0111 associationShouldBeDropped = cms.bool(True),
0112 expectedParentContent = cms.vint32( 20, 21, 22, 23, 24, 25, 26, 27, 28),
0113 expectedValues = cms.vint32(24, 25, 26, 27)
0114 )
0115
0116 process.testJ = cms.EDAnalyzer("ThinningTestAnalyzer",
0117 parentTag = cms.InputTag('thingProducer'),
0118 thinnedTag = cms.InputTag('thinningThingProducerJ'),
0119 associationTag = cms.InputTag('thinningThingProducerJ'),
0120 trackTag = cms.InputTag('trackOfThingsProducerJ'),
0121 parentWasDropped = cms.bool(True),
0122 thinnedWasDropped = cms.bool(True),
0123 associationShouldBeDropped = cms.bool(True),
0124 expectedValues = cms.vint32(-1, -1, -1, -1, -1, -1, -1, -1, -1)
0125 )
0126
0127 process.testK = cms.EDAnalyzer("ThinningTestAnalyzer",
0128 parentTag = cms.InputTag('thinningThingProducerJ'),
0129 thinnedTag = cms.InputTag('thinningThingProducerK'),
0130 associationTag = cms.InputTag('thinningThingProducerK'),
0131 trackTag = cms.InputTag('trackOfThingsProducerK'),
0132 parentWasDropped = cms.bool(True),
0133 thinnedWasDropped = cms.bool(True),
0134 associationShouldBeDropped = cms.bool(True),
0135 expectedValues = cms.vint32(-1, -1, -1, -1)
0136 )
0137
0138 process.testL = cms.EDAnalyzer("ThinningTestAnalyzer",
0139 parentTag = cms.InputTag('thinningThingProducerJ'),
0140 thinnedTag = cms.InputTag('thinningThingProducerL'),
0141 associationTag = cms.InputTag('thinningThingProducerL'),
0142 trackTag = cms.InputTag('trackOfThingsProducerL'),
0143 parentWasDropped = cms.bool(True),
0144 thinnedWasDropped = cms.bool(True),
0145 associationShouldBeDropped = cms.bool(True),
0146 expectedValues = cms.vint32(-1, -1, -1, -1)
0147 )
0148
0149 process.testM = cms.EDAnalyzer("ThinningTestAnalyzer",
0150 parentTag = cms.InputTag('thingProducer'),
0151 thinnedTag = cms.InputTag('thinningThingProducerM'),
0152 associationTag = cms.InputTag('thinningThingProducerM'),
0153 trackTag = cms.InputTag('trackOfThingsProducerM'),
0154 parentWasDropped = cms.bool(True),
0155 thinnedWasDropped = cms.bool(True),
0156 expectedIndexesIntoParent = cms.vuint32(40, 41, 42, 43, 44, 45, 46, 47, 48),
0157 expectedValues = cms.vint32(-1, -1, -1, -1, 44, 45, 46, 47, -1)
0158 )
0159
0160 process.testN = cms.EDAnalyzer("ThinningTestAnalyzer",
0161 parentTag = cms.InputTag('thinningThingProducerM'),
0162 thinnedTag = cms.InputTag('thinningThingProducerN'),
0163 associationTag = cms.InputTag('thinningThingProducerN'),
0164 trackTag = cms.InputTag('trackOfThingsProducerN'),
0165 parentWasDropped = cms.bool(True),
0166 thinnedWasDropped = cms.bool(True),
0167 associationShouldBeDropped = cms.bool(True),
0168 expectedValues = cms.vint32(-1, -1, -1, -1)
0169 )
0170
0171 process.testO = cms.EDAnalyzer("ThinningTestAnalyzer",
0172 parentTag = cms.InputTag('thinningThingProducerM'),
0173 thinnedTag = cms.InputTag('aliasO'),
0174 thinnedIsAlias = cms.bool(True),
0175 associationTag = cms.InputTag('thinningThingProducerO'),
0176 trackTag = cms.InputTag('trackOfThingsProducerO'),
0177 parentWasDropped = cms.bool(True),
0178 expectedThinnedContent = cms.vint32(44, 45, 46, 47),
0179 expectedIndexesIntoParent = cms.vuint32(4, 5, 6, 7),
0180 expectedValues = cms.vint32(44, 45, 46, 47)
0181 )
0182
0183 process.out = cms.OutputModule("PoolOutputModule",
0184 fileName = cms.untracked.string('testThinningTestStreamerIn.root')
0185 )
0186
0187 process.p = cms.Path(process.testA *
0188 process.testB *
0189 process.testC *
0190 process.testD *
0191 process.testE *
0192 process.testF *
0193 process.testG *
0194 process.testH *
0195 process.testI *
0196 process.testJ *
0197 process.testK *
0198 process.testL *
0199 process.testM *
0200 process.testN *
0201 process.testO
0202 )
0203
0204 process.endPath = cms.EndPath(process.out)