File indexing completed on 2024-04-06 12:12:40
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("PROD3")
0004
0005 process.source = cms.Source("PoolSource",
0006 fileNames = cms.untracked.vstring(
0007 'file:testGetBy2.root'
0008 )
0009 )
0010
0011 process.out = cms.OutputModule("PoolOutputModule",
0012 fileName = cms.untracked.string('testGetBy3.root'),
0013 outputCommands = cms.untracked.vstring(
0014 'keep *',
0015 'drop *_intProducerA_*_*'
0016 )
0017 )
0018
0019 process.intProducer = cms.EDProducer("IntProducer", ivalue = cms.int32(3))
0020
0021 process.intProducerU = cms.EDProducer("IntProducer", ivalue = cms.int32(30))
0022
0023 process.intProducerA = cms.EDProducer("IntProducer", ivalue = cms.int32(200))
0024
0025 process.aliasForInt = cms.EDAlias(
0026 intProducerA = cms.VPSet(
0027 cms.PSet(type = cms.string('edmtestIntProduct')
0028 )
0029 )
0030 )
0031
0032 process.nonProducer = cms.EDProducer("NonProducer")
0033
0034 process.intVectorSetProducer = cms.EDProducer("IntVectorSetProducer")
0035
0036 process.intVectorProducer = cms.EDProducer("IntVectorProducer",
0037 count = cms.int32(9),
0038 ivalue = cms.int32(31)
0039 )
0040
0041 process.a1 = cms.EDAnalyzer("TestFindProduct",
0042 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer") ),
0043 expectedSum = cms.untracked.int32(9)
0044 )
0045
0046 process.a2 = cms.EDAnalyzer("TestFindProduct",
0047 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer", processName=cms.InputTag.skipCurrentProcess()) ),
0048 expectedSum = cms.untracked.int32(6)
0049 )
0050
0051 process.a3 = cms.EDAnalyzer("TestFindProduct",
0052 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer", "", "PROD1") ),
0053 expectedSum = cms.untracked.int32(3)
0054 )
0055
0056 process.a4 = cms.EDAnalyzer("TestFindProduct",
0057 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer", "", "PROD2") ),
0058 expectedSum = cms.untracked.int32(6)
0059 )
0060
0061 process.a5 = cms.EDAnalyzer("TestFindProduct",
0062 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer", "", "PROD3") ),
0063 expectedSum = cms.untracked.int32(9)
0064 )
0065
0066 process.a6 = cms.EDAnalyzer("TestFindProduct",
0067 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducer", "", processName=cms.InputTag.currentProcess()) ),
0068 expectedSum = cms.untracked.int32(9)
0069 )
0070
0071 process.a10 = cms.EDAnalyzer("TestFindProduct",
0072 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerU") ),
0073 expectedSum = cms.untracked.int32(90)
0074 )
0075
0076 process.a20 = cms.EDAnalyzer("TestFindProduct",
0077 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerU", processName=cms.InputTag.skipCurrentProcess()) ),
0078 expectedSum = cms.untracked.int32(60)
0079 )
0080
0081 process.a30 = cms.EDAnalyzer("TestFindProduct",
0082 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerU", "", "PROD1") ),
0083 expectedSum = cms.untracked.int32(30)
0084 )
0085
0086 process.a40 = cms.EDAnalyzer("TestFindProduct",
0087 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerU", "", "PROD2") ),
0088 expectedSum = cms.untracked.int32(60)
0089 )
0090
0091 process.a50 = cms.EDAnalyzer("TestFindProduct",
0092 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerU", "", "PROD3") ),
0093 expectedSum = cms.untracked.int32(90)
0094 )
0095
0096 process.a60 = cms.EDAnalyzer("TestFindProduct",
0097 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerU", "", processName=cms.InputTag.currentProcess()) ),
0098 expectedSum = cms.untracked.int32(90),
0099 inputTagsNotFound = cms.untracked.VInputTag(
0100 cms.InputTag("intProducerB", processName=cms.InputTag.currentProcess())
0101 )
0102 )
0103
0104 process.a70 = cms.EDAnalyzer("TestFindProduct",
0105 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerB", processName=cms.InputTag.skipCurrentProcess()) ),
0106 expectedSum = cms.untracked.int32(3000)
0107 )
0108
0109 process.a100 = cms.EDAnalyzer("TestFindProduct",
0110 inputTags = cms.untracked.VInputTag( cms.InputTag("source", processName=cms.InputTag.skipCurrentProcess()) ),
0111 expectedSum = cms.untracked.int32(12)
0112 )
0113
0114 process.a200 = cms.EDAnalyzer("TestFindProduct",
0115 inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerA") ),
0116 expectedSum = cms.untracked.int32(600)
0117 )
0118
0119 process.a300 = cms.EDAnalyzer("TestFindProduct",
0120 inputTags = cms.untracked.VInputTag( cms.InputTag("aliasForInt") ),
0121 expectedSum = cms.untracked.int32(600)
0122 )
0123
0124 process.a400 = cms.EDAnalyzer("TestFindProduct",
0125 inputTags = cms.untracked.VInputTag( cms.InputTag("aliasForInt", processName=cms.InputTag.skipCurrentProcess()) ),
0126 expectedSum = cms.untracked.int32(300),
0127 inputTagsNotFound = cms.untracked.VInputTag(
0128 cms.InputTag("intProducerA", processName=cms.InputTag.skipCurrentProcess())
0129 )
0130 )
0131
0132 process.a1000 = cms.EDAnalyzer("TestFindProduct",
0133 inputTags = cms.untracked.VInputTag( cms.InputTag("doesNotExist") ),
0134 expectedSum = cms.untracked.int32(1),
0135 getByTokenFirst = cms.untracked.bool(True)
0136 )
0137
0138 process.a1001 = cms.EDAnalyzer("TestFindProduct",
0139 inputTags = cms.untracked.VInputTag( cms.InputTag("nonProducer") ),
0140 expectedSum = cms.untracked.int32(1),
0141 getByTokenFirst = cms.untracked.bool(True)
0142 )
0143
0144 process.a1002 = cms.EDAnalyzer("TestFindProduct",
0145 inputTags = cms.untracked.VInputTag(),
0146 inputTagsView = cms.untracked.VInputTag( cms.InputTag("intVectorSetProducer", "", "PROD3") ),
0147 expectedSum = cms.untracked.int32(1),
0148 getByTokenFirst = cms.untracked.bool(True)
0149 )
0150
0151 process.a1003 = cms.EDAnalyzer("TestFindProduct",
0152 inputTags = cms.untracked.VInputTag(),
0153 inputTagsView = cms.untracked.VInputTag( cms.InputTag("intVectorSetProducer") ),
0154 expectedSum = cms.untracked.int32(1),
0155 getByTokenFirst = cms.untracked.bool(True)
0156 )
0157
0158 process.a1004 = cms.EDAnalyzer("TestFindProduct",
0159 inputTags = cms.untracked.VInputTag(),
0160 inputTagsView = cms.untracked.VInputTag( cms.InputTag("intVectorProducer") ),
0161 expectedSum = cms.untracked.int32(93)
0162 )
0163
0164 process.a1005 = cms.EDAnalyzer("TestFindProduct",
0165 inputTags = cms.untracked.VInputTag(),
0166 inputTagsView = cms.untracked.VInputTag( cms.InputTag("intVectorProducer", processName=cms.InputTag.skipCurrentProcess()) ),
0167 expectedSum = cms.untracked.int32(63)
0168 )
0169
0170 process.a1006 = cms.EDAnalyzer("TestFindProduct",
0171 inputTags = cms.untracked.VInputTag(),
0172 inputTagsView = cms.untracked.VInputTag( cms.InputTag("intVectorProducer", processName=cms.InputTag.currentProcess()) ),
0173 expectedSum = cms.untracked.int32(93)
0174 )
0175
0176 process.a2000 = cms.EDAnalyzer("TestFindProduct",
0177 inputTags = cms.untracked.VInputTag(),
0178 inputTagsInputProcessBlock = cms.untracked.VInputTag( cms.InputTag("intProducerBeginProcessBlock"), cms.InputTag("intProducerEndProcessBlock")),
0179 expectedSum = cms.untracked.int32(110000),
0180 expectedCache = cms.untracked.int32(110000)
0181 )
0182
0183 process.p = cms.Path(process.intProducer * process.a1 * process.a2 * process.a3 * process.a4 * process.a5 * process.a6)
0184
0185 process.p0 = cms.Path(process.a10 * process.a20 * process.a30 * process.a40 * process.a50 * process.a60 * process.a70)
0186
0187 process.p00 = cms.Path(process.a100 * process.a200 * process.a300 * process.a400)
0188
0189
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204 process.p1004 = cms.Path(process.a1004)
0205
0206 process.p1005 = cms.Path(process.a1005 * process.a1006)
0207
0208 process.p2000 = cms.Path(process.a2000)
0209
0210 process.t = cms.Task(process.intProducerU, process.intProducerA, process.nonProducer,
0211 process.intVectorSetProducer, process.intVectorProducer)
0212
0213 process.e = cms.EndPath(process.out, process.t)