229 import FWCore.ParameterSet.Config
as cms
230 process = cms.Process(
"TEST")
231 process.a = cms.EDProducer(
"AProd")
232 process.b = cms.EDProducer(
"BProd")
233 process.c = cms.EDProducer(
"CProd")
234 process.d = cms.EDProducer(
"DProd",
235 par1 = cms.InputTag(
"f1"))
236 process.e = cms.EDProducer(
"EProd",
237 par1 = cms.VInputTag(cms.InputTag(
"x"), cms.InputTag(
"f1",
"y")))
238 process.f = cms.EDProducer(
"FProd",
239 par1 = cms.VInputTag(
"x",
"y",
"f1"))
240 process.g = cms.EDProducer(
"GProd",
241 par1 = cms.InputTag(
"f"))
242 process.h = cms.EDProducer(
"HProd",
243 par1 = cms.bool(
True),
246 cms.PSet(foo = cms.bool(
True)),
249 bar = cms.bool(
True),
250 foo1 = cms.InputTag(
"f1"),
251 foo2 = cms.VInputTag(cms.InputTag(
"x"), cms.InputTag(
"f11",
"y")),
252 foo3 = cms.VInputTag(
"q",
"r","s"))
257 process.k = cms.EDProducer(
"KProd",
258 par1 = cms.bool(
True),
261 cms.PSet(foo = cms.bool(
True)),
264 bar = cms.bool(
True),
265 xSrc = cms.string(
"f")
271 process.f1 = cms.EDFilter(
"Filter")
272 process.f2 = cms.EDFilter(
"Filter2")
273 process.f3 = cms.EDFilter(
"Filter3")
274 process.f4 = cms.EDFilter(
"FIlter4")
275 process.p1 = cms.Path(process.a+process.b+process.f1+process.d+process.e+process.f+process.g+process.h+process.k)
276 process.p4 = cms.Path(process.a+process.f2+process.b+~process.f1+cms.ignore(process.f4))
277 process.p2 = cms.Path(process.a+process.b)
278 process.p3 = cms.Path(process.f1)
280 self.assertEqual(process.options.allowUnscheduled, cms.untracked.bool(
True))
281 self.assert_(hasattr(process,
'p2'))
282 self.assert_(hasattr(process,
'a'))
283 self.assert_(hasattr(process,
'b'))
284 self.assert_(
not hasattr(process,
'c'))
285 self.assert_(hasattr(process,
'd'))
286 self.assert_(hasattr(process,
'e'))
287 self.assert_(hasattr(process,
'f'))
288 self.assert_(hasattr(process,
'g'))
289 self.assert_(hasattr(process,
'f1'))
290 self.assert_(hasattr(process,
'f2'))
291 self.assert_(
not hasattr(process,
'f3'))
292 self.assert_(hasattr(process,
'f4'))
293 self.assertEqual(process.p1.dumpPython(
None),
'cms.Path(process.f1)\n')
294 self.assertEqual(process.p2.dumpPython(
None),
'cms.Path()\n')
295 self.assertEqual(process.p3.dumpPython(
None),
'cms.Path(process.f1)\n')
self.assertEqual(process.p4.dumpPython(
None),
'cms.Path(process.f2+~process.f1)\n')