hltflow.core

Implement functionality to visualise an HLT streamer in a TiKz flowchart.

class hltflow.core.Operation[source]

A helper class that is never instantiated. Only has static methods to check for different kinds of operations.

static is_cut(op)[source]

Checks whether an operation is a cut (i.e. starts with an opening parenthesis).

static is_op(op)[source]

Checks whether op is supposed to show up in the flowchart.

static is_sink(op)[source]

Checks whether an operation is a call to sink (i.e. starts with the keyword SINK).

static is_tee(op)[source]

Check whether an operation is a call to tee.

class hltflow.core.StreamerFlowchart(name, code, prefix=None)[source]

Implement the structure for a flowchart.

generateTikz()[source]

Generates TikZ code for this streamer.

This method is used internally and should (for performance reasons) not be called manually. Use the StreamerFlowchart.tikz property instead.

tikz

Getter for the generated TikZ code representing the streamer.

An internal variable is used to cache the value so the code is generated on demand and only once.