The Gaudi Framework  master (08f81203)
Loading...
Searching...
No Matches
ControlFlow Namespace Reference

Classes

class  ControlFlowNode
 (c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE". More...
class  ControlFlowLeaf
class  ControlFlowBool
class  OrderedNode
class  AndNode
class  OrNode
class  InvertNode
class  ignore
class  par
class  seq
class  line
class  _TestVisitor
class  _TestAlgorithm
class  DotVisitor

Functions

 test ()

Variables

 CFTrue = ControlFlowBool(True)
 CFFalse = ControlFlowBool(False)

Function Documentation

◆ test()

ControlFlow.test ( )

Definition at line 333 of file ControlFlow.py.

333def test():
334 Algorithm = _TestAlgorithm
335
336 a = Algorithm("a")
337 b = Algorithm("b")
338 c = Algorithm("c")
339 d = Algorithm("d")
340 e = Algorithm("e")
341 f = Algorithm("f")
342 g = Algorithm("g")
343 sequence = seq(b >> a >> f)
344 expression = sequence | ~c & par(d & e & g)
345 a = expression == expression
346 aLine = line("MyTriggerPath", expression)
347 visitor = _TestVisitor()
348 visitor2 = DotVisitor()
349 print("\nPrinting trigger line:")
350 print(aLine)
351 print("\nPrinting expression:")
352 print(expression)
353 print("\nTraversing through expression:\n")
354 expression.visitNode(visitor)
355 expression.visitNode(visitor2)
356 visitor2.write("out.dot")
Alias for backward compatibility.
Definition Algorithm.h:58

Variable Documentation

◆ CFFalse

ControlFlow.CFFalse = ControlFlowBool(False)

Definition at line 104 of file ControlFlow.py.

◆ CFTrue

ControlFlow.CFTrue = ControlFlowBool(True)

Definition at line 103 of file ControlFlow.py.