297 import FWCore.ParameterSet.Config
as cms
298 process = cms.Process(
"TEST")
300 process.a = cms.EDProducer(
"AProd")
301 process.b = cms.EDProducer(
"BProd")
302 process.c = cms.EDProducer(
"CProd")
303 process.d = cms.EDProducer(
"DProd")
304 process.m = cms.EDProducer(
"MProd")
305 process.n = cms.EDProducer(
"NProd")
307 process.t1 = cms.Task(process.m)
308 t2 = cms.Task(process.n)
310 process.f1 = cms.EDFilter(
"Filter")
311 process.f2 = cms.EDFilter(
"Filter2")
312 process.f3 = cms.EDFilter(
"Filter3")
313 process.f4 = cms.EDFilter(
"Filter4")
315 process.out1 = cms.OutputModule(
"Output1")
316 process.out2 = cms.OutputModule(
"Output2")
318 process.analyzer1 = cms.EDAnalyzer(
"analyzerType1")
319 process.analyzer2 = cms.EDAnalyzer(
"analyzerType2")
321 process.p1 = cms.Path(process.a+process.b+cms.ignore(process.f1)+process.d+process.f2)
322 process.p4 = cms.Path(process.a+process.f2+process.b+~process.f1)
323 process.p2 = cms.Path(process.a+process.b)
324 process.p3 = cms.Path(process.f1)
325 process.p5 = cms.Path(process.a+process.f4)
326 process.end1 = cms.EndPath(process.out1+process.out2+process.analyzer1+process.analyzer2+process.a+process.b+cms.ignore(process.f1))
327 process.end2 = cms.EndPath()
329 process.schedule = cms.Schedule(process.p1,process.p4,process.p2,process.p3,process.end1,process.end2,tasks=[process.t1,t2])
331 self.assert_(hasattr(process,
'p2'))
332 self.assert_(hasattr(process,
'a'))
333 self.assert_(hasattr(process,
'b'))
334 self.assert_(hasattr(process,
'c'))
335 self.assert_(hasattr(process,
'd'))
336 self.assert_(hasattr(process,
'f1'))
337 self.assert_(hasattr(process,
'f2'))
338 self.assert_(hasattr(process,
'f3'))
339 self.assert_(hasattr(process,
"f4"))
340 self.assert_(hasattr(process,
"p5"))
342 self.assertEqual(process.p1.dumpPython(
None),
'cms.Path(process.f2, cms.Task(process.a, process.b, process.d, process.f1))\n')
343 self.assertEqual(process.p2.dumpPython(
None),
'cms.Path(cms.Task(process.a, process.b))\n')
344 self.assertEqual(process.p3.dumpPython(
None),
'cms.Path(process.f1)\n')
345 self.assertEqual(process.p4.dumpPython(
None),
'cms.Path(process.f2+~process.f1, cms.Task(process.a, process.b))\n')
346 self.assertEqual(process.p5.dumpPython(
None),
'cms.Path(process.f4, cms.Task(process.a))\n')
347 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')
348 self.assertEqual(process.end2.dumpPython(
None),
'cms.EndPath()\n')
350 self.assertEqual([p
for p
in process.schedule],[process.p1,process.p4,process.p2,process.p3,process.end1,process.end2])
351 listOfTasks =
list(process.schedule._tasks)
352 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