213 process1 = cms.Process(
"test")
215 self.assertEqual(process1.dumpPython(),
216 """import FWCore.ParameterSet.Config as cms 218 process = cms.Process("test") 221 p = cms.Process(
"test")
222 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
223 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
224 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"),
225 nested = cms.PSet(src = cms.InputTag(
"a"), src2 = cms.InputTag(
"c")),
226 nestedv = cms.VPSet(cms.PSet(src = cms.InputTag(
"a")), cms.PSet(src = cms.InputTag(
"d"))),
227 vec = cms.VInputTag(cms.InputTag(
"a"), cms.InputTag(
"b"), cms.InputTag(
"c"), cms.InputTag(
"d"))
229 p.d = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
230 p.e = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
231 p.f = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
232 p.g = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
233 p.h = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
234 p.i = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
235 p.s1 = cms.Sequence(p.a*p.b*p.c)
236 p.path1 = cms.Path(p.s1)
237 p.s2 = cms.Sequence(p.d)
238 p.path2 = cms.Path(p.e)
239 p.s3 = cms.Sequence(p.f)
240 p.endpath1 = cms.EndPath(p.s3)
241 p.endpath2 = cms.EndPath(p.g)
244 p.schedule = cms.Schedule()
245 p.schedule.associate(p.t1, p.t2)
247 self.assertEqual(cms.InputTag(
"gen"), p.a.src)
248 self.assertEqual(cms.InputTag(
"b"), p.b.src)
249 self.assertEqual(cms.InputTag(
"a"), p.c.vec[0])
250 self.assertEqual(cms.InputTag(
"c"), p.c.vec[2])
251 self.assertEqual(cms.InputTag(
"a"), p.d.src)
252 self.assertEqual(cms.InputTag(
"b"), p.e.src)
253 self.assertEqual(cms.InputTag(
"b"), p.f.src)
254 self.assertEqual(cms.InputTag(
"b"), p.g.src)
255 self.assertEqual(cms.InputTag(
"b"), p.h.src)
256 self.assertEqual(cms.InputTag(
"b"), p.i.src)
def testMassReplaceParam(self)
def massReplaceParameter(process, name="label", old="rawDataCollector", new="rawDataRepacker", verbose=False)