251 import FWCore.ParameterSet.Config
as cms
252 process = cms.Process(
"TEST")
254 process.a = cms.EDProducer(
"AProd")
255 process.b = cms.EDProducer(
"BProd")
256 process.c = cms.EDProducer(
"CProd")
257 process.d = cms.EDProducer(
"DProd")
258 process.m = cms.EDProducer(
"MProd")
259 process.n = cms.EDProducer(
"NProd")
261 process.t1 = cms.Task(process.m)
262 t2 = cms.Task(process.n)
264 process.f1 = cms.EDFilter(
"Filter")
265 process.f2 = cms.EDFilter(
"Filter2")
266 process.f3 = cms.EDFilter(
"Filter3")
267 process.f4 = cms.EDFilter(
"Filter4")
269 process.out1 = cms.OutputModule(
"Output1")
270 process.out2 = cms.OutputModule(
"Output2")
272 process.analyzer1 = cms.EDAnalyzer(
"analyzerType1")
273 process.analyzer2 = cms.EDAnalyzer(
"analyzerType2")
275 process.p1 = cms.Path(process.a+process.b+cms.ignore(process.f1)+process.d+process.f2)
276 process.p4 = cms.Path(process.a+process.f2+process.b+~process.f1)
277 process.p2 = cms.Path(process.a+process.b)
278 process.p3 = cms.Path(process.f1)
279 process.p5 = cms.Path(process.a+process.f4)
280 process.end1 = cms.EndPath(process.out1+process.out2+process.analyzer1+process.analyzer2+process.a+process.b+cms.ignore(process.f1))
281 process.end2 = cms.EndPath()
283 process.schedule = cms.Schedule(process.p1,process.p4,process.p2,process.p3,process.end1,process.end2,tasks=[process.t1,t2])
285 self.assert_(hasattr(process,
'p2'))
286 self.assert_(hasattr(process,
'a'))
287 self.assert_(hasattr(process,
'b'))
288 self.assert_(hasattr(process,
'c'))
289 self.assert_(hasattr(process,
'd'))
290 self.assert_(hasattr(process,
'f1'))
291 self.assert_(hasattr(process,
'f2'))
292 self.assert_(hasattr(process,
'f3'))
293 self.assert_(hasattr(process,
"f4"))
294 self.assert_(hasattr(process,
"p5"))
296 self.assertEqual(process.p1.dumpPython(
None),
'cms.Path(process.f2, cms.Task(process.a, process.b, process.d, process.f1))\n')
297 self.assertEqual(process.p2.dumpPython(
None),
'cms.Path(cms.Task(process.a, process.b))\n')
298 self.assertEqual(process.p3.dumpPython(
None),
'cms.Path(process.f1)\n')
299 self.assertEqual(process.p4.dumpPython(
None),
'cms.Path(process.f2+~process.f1, cms.Task(process.a, process.b))\n')
300 self.assertEqual(process.p5.dumpPython(
None),
'cms.Path(process.f4, cms.Task(process.a))\n')
301 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')
302 self.assertEqual(process.end2.dumpPython(
None),
'cms.EndPath()\n')
304 self.assertEqual([p
for p
in process.schedule],[process.p1,process.p4,process.p2,process.p3,process.end1,process.end2])
305 listOfTasks =
list(process.schedule._tasks)
306 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