The Gaudi Framework  master (37c0b60a)
ControlFlow Namespace Reference

Classes

class  _TestAlgorithm
 
class  _TestVisitor
 
class  AndNode
 
class  ControlFlowBool
 
class  ControlFlowLeaf
 
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  DotVisitor
 
class  ignore
 
class  InvertNode
 
class  line
 
class  OrderedNode
 
class  OrNode
 
class  par
 
class  seq
 

Functions

def test ()
 

Variables

 CFTrue
 
 CFFalse
 

Function Documentation

◆ test()

def ControlFlow.test ( )

Definition at line 333 of file ControlFlow.py.

333 def 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")

Variable Documentation

◆ CFFalse

ControlFlow.CFFalse

Definition at line 104 of file ControlFlow.py.

◆ CFTrue

ControlFlow.CFTrue

Definition at line 103 of file ControlFlow.py.

Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
compareOutputFiles.par
par
Definition: compareOutputFiles.py:477
ControlFlow.test
def test()
Definition: ControlFlow.py:333
plotSpeedupsPyRoot.line
line
Definition: plotSpeedupsPyRoot.py:198
ManySmallAlgs.seq
seq
Definition: ManySmallAlgs.py:102