The Gaudi Framework  v32r2 (46d42edc)
GaudiConfig.ControlFlow Namespace Reference

Classes

class  _TestAlgorithm
 
class  _TestVisitor
 
class  AndNode
 
class  ControlFlowBool
 
class  ControlFlowLeaf
 
class  ControlFlowNode
 
class  DotVisitor
 
class  ignore
 
class  InvertNode
 
class  line
 
class  OrderedNode
 
class  OrNode
 
class  par
 
class  seq
 

Functions

def test ()
 

Variables

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

Detailed Description

Classes for the implementation of the Control Flow Structure Syntax.

@see: https://github.com/lhcb/scheduling-event-model/tree/master/controlflow_syntax

Function Documentation

◆ test()

def GaudiConfig.ControlFlow.test ( )

Definition at line 322 of file ControlFlow.py.

322 def test():
323  Algorithm = _TestAlgorithm
324 
325  a = Algorithm("a")
326  b = Algorithm("b")
327  c = Algorithm("c")
328  d = Algorithm("d")
329  e = Algorithm("e")
330  f = Algorithm("f")
331  g = Algorithm("g")
332  sequence = seq(b >> a >> f)
333  expression = sequence | ~c & par(d & e & g)
334  a = (expression == expression)
335  aLine = line("MyTriggerPath", expression)
336  visitor = _TestVisitor()
337  visitor2 = DotVisitor()
338  print("\nPrinting trigger line:")
339  print(aLine)
340  print("\nPrinting expression:")
341  print(expression)
342  print("\nTraversing through expression:\n")
343  expression.visitNode(visitor)
344  expression.visitNode(visitor2)
345  visitor2.write("out.dot")
Alias for backward compatibility.
Definition: Algorithm.h:56

Variable Documentation

◆ CFFalse

GaudiConfig.ControlFlow.CFFalse = ControlFlowBool(False)

Definition at line 93 of file ControlFlow.py.

◆ CFTrue

GaudiConfig.ControlFlow.CFTrue = ControlFlowBool(True)

Definition at line 92 of file ControlFlow.py.