158 p = cms.Process(
"test")
159 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
160 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
161 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"), usrc=cms.untracked.InputTag(
"b"),
162 nested = cms.PSet(src = cms.InputTag(
"b"), src2 = cms.InputTag(
"c"), usrc = cms.untracked.InputTag(
"b")),
163 nestedv = cms.VPSet(cms.PSet(src = cms.InputTag(
"b")), cms.PSet(src = cms.InputTag(
"d"))),
164 unestedv = cms.untracked.VPSet(cms.untracked.PSet(src = cms.InputTag(
"b")), cms.untracked.PSet(src = cms.InputTag(
"d"))),
165 vec = cms.VInputTag(cms.InputTag(
"a"), cms.InputTag(
"b"), cms.InputTag(
"c"), cms.InputTag(
"d")),
166 uvec = cms.untracked.VInputTag(cms.untracked.InputTag(
"a"), cms.untracked.InputTag(
"b"), cms.untracked.InputTag(
"c"), cms.untracked.InputTag(
"d")),
169 test1 = cms.EDProducer(
"a", src = cms.InputTag(
"b"),
170 nested = cms.PSet(src = cms.InputTag(
"b"), src2 = cms.InputTag(
"c"), usrc = cms.untracked.InputTag(
"b"))
172 test2 = cms.EDProducer(
"b", src = cms.InputTag(
"c"),
173 nested = cms.PSet(src = cms.InputTag(
"b"), src2 = cms.InputTag(
"c"), usrc = cms.untracked.InputTag(
"b"))
176 p.op = cms.EDProducer(
"op", src = cms.optional.InputTag, unset = cms.optional.InputTag, vsrc = cms.optional.VInputTag, vunset = cms.optional.VInputTag)
178 p.op.vsrc=cms.VInputTag(
"b")
179 p.s = cms.Sequence(p.a*p.b*p.c*p.sp*p.op)
181 self.assertNotEqual(cms.InputTag(
"new"), p.b.src)
182 self.assertEqual(cms.InputTag(
"new"), p.c.src)
183 self.assertEqual(cms.InputTag(
"new"), p.c.usrc)
184 self.assertEqual(cms.InputTag(
"new"), p.c.nested.src)
185 self.assertEqual(cms.InputTag(
"new"), p.c.nested.usrc)
186 self.assertFalse(p.c.nested.usrc.isTracked())
187 self.assertNotEqual(cms.InputTag(
"new"), p.c.nested.src2)
188 self.assertEqual(cms.InputTag(
"new"), p.c.nestedv[0].src)
189 self.assertNotEqual(cms.InputTag(
"new"), p.c.nestedv[1].src)
190 self.assertEqual(cms.InputTag(
"new"), p.c.unestedv[0].src)
191 self.assertNotEqual(cms.InputTag(
"new"), p.c.unestedv[1].src)
192 self.assertNotEqual(cms.InputTag(
"new"), p.c.vec[0])
193 self.assertEqual(cms.InputTag(
"new"), p.c.vec[1])
194 self.assertNotEqual(cms.InputTag(
"new"), p.c.vec[2])
195 self.assertNotEqual(cms.InputTag(
"new"), p.c.vec[3])
196 self.assertNotEqual(cms.InputTag(
"new"), p.c.uvec[0])
197 self.assertEqual(cms.InputTag(
"new"), p.c.uvec[1])
198 self.assertNotEqual(cms.InputTag(
"new"), p.c.uvec[2])
199 self.assertNotEqual(cms.InputTag(
"new"), p.c.uvec[3])
200 self.assertFalse(p.c.uvec[0].isTracked())
201 self.assertFalse(p.c.uvec[1].isTracked())
202 self.assertFalse(p.c.uvec[2].isTracked())
203 self.assertFalse(p.c.uvec[3].isTracked())
204 self.assertEqual(cms.InputTag(
"new"), p.sp.test1.src)
205 self.assertEqual(cms.InputTag(
"new"), p.sp.test1.nested.src)
206 self.assertEqual(cms.InputTag(
"c"), p.sp.test1.nested.src2)
207 self.assertEqual(cms.untracked.InputTag(
"new"), p.sp.test1.nested.usrc)
208 self.assertEqual(cms.InputTag(
"c"), p.sp.test2.src)
209 self.assertEqual(cms.InputTag(
"new"), p.sp.test2.nested.src)
210 self.assertEqual(cms.InputTag(
"c"), p.sp.test2.nested.src2)
211 self.assertEqual(cms.untracked.InputTag(
"new"), p.sp.test2.nested.usrc)
212 self.assertEqual(cms.InputTag(
"new"), p.op.src)
213 self.assertEqual(cms.InputTag(
"new"), p.op.vsrc[0])