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