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