292 import FWCore.ParameterSet.Config
as cms
293 process = cms.Process(
"TEST")
295 process.a = cms.EDProducer(
"AProd")
296 process.b = cms.EDProducer(
"BProd")
297 process.c = cms.EDProducer(
"CProd")
298 process.d = cms.EDProducer(
"DProd")
299 process.m = cms.EDProducer(
"MProd")
300 process.n = cms.EDProducer(
"NProd")
302 process.t1 = cms.Task(process.m)
303 t2 = cms.Task(process.n)
305 process.f1 = cms.EDFilter(
"Filter")
306 process.f2 = cms.EDFilter(
"Filter2")
307 process.f3 = cms.EDFilter(
"Filter3")
308 process.f4 = cms.EDFilter(
"Filter4")
310 process.out1 = cms.OutputModule(
"Output1")
311 process.out2 = cms.OutputModule(
"Output2")
313 process.analyzer1 = cms.EDAnalyzer(
"analyzerType1")
314 process.analyzer2 = cms.EDAnalyzer(
"analyzerType2")
316 process.p1 = cms.Path(process.a+process.b+cms.ignore(process.f1)+process.d+process.f2)
317 process.p4 = cms.Path(process.a+process.f2+process.b+~process.f1)
318 process.p2 = cms.Path(process.a+process.b)
319 process.p3 = cms.Path(process.f1)
320 process.p5 = cms.Path(process.a+process.f4)
321 process.end1 = cms.EndPath(process.out1+process.out2+process.analyzer1+process.analyzer2+process.a+process.b+cms.ignore(process.f1))
322 process.end2 = cms.EndPath()
324 process.schedule = cms.Schedule(process.p1,process.p4,process.p2,process.p3,process.end1,process.end2,tasks=[process.t1,t2])
326 self.assert_(hasattr(process,
'p2'))
327 self.assert_(hasattr(process,
'a'))
328 self.assert_(hasattr(process,
'b'))
329 self.assert_(hasattr(process,
'c'))
330 self.assert_(hasattr(process,
'd'))
331 self.assert_(hasattr(process,
'f1'))
332 self.assert_(hasattr(process,
'f2'))
333 self.assert_(hasattr(process,
'f3'))
334 self.assert_(hasattr(process,
"f4"))
335 self.assert_(hasattr(process,
"p5"))
337 self.assertEqual(process.p1.dumpPython(
None),
'cms.Path(process.f2, cms.Task(process.a, process.b, process.d, process.f1))\n')
338 self.assertEqual(process.p2.dumpPython(
None),
'cms.Path(cms.Task(process.a, process.b))\n')
339 self.assertEqual(process.p3.dumpPython(
None),
'cms.Path(process.f1)\n')
340 self.assertEqual(process.p4.dumpPython(
None),
'cms.Path(process.f2+~process.f1, cms.Task(process.a, process.b))\n')
341 self.assertEqual(process.p5.dumpPython(
None),
'cms.Path(process.f4, cms.Task(process.a))\n')
342 self.assertEqual(process.end1.dumpPython(
None),
'cms.EndPath(process.out1+process.out2+process.analyzer1+process.analyzer2, cms.Task(process.a, process.b, process.f1))\n')
343 self.assertEqual(process.end2.dumpPython(
None),
'cms.EndPath()\n')
345 self.assertEqual([p
for p
in process.schedule],[process.p1,process.p4,process.p2,process.p3,process.end1,process.end2])
346 listOfTasks =
list(process.schedule._tasks)
347 self.assertEqual(listOfTasks, [process.t1,t2])
def testWithSchedule(self)
def convertToUnscheduled(proc)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run