MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
SelectionDiagram Namespace Reference

Functions

TString Dot (const std::vector< SelectionStep > &steps, const TString &title)
 The steps as a Graphviz DOT graph.
TString Mermaid (const std::vector< SelectionStep > &steps, const TString &title)
 The steps as a Mermaid flowchart.
void Write (const std::vector< SelectionStep > &steps, const TString &dir, const TString &title)
 Write selection.dot and selection.mmd under dir, and render the DOT to selection.png and selection.pdf when dot is available.

Function Documentation

◆ Dot()

TString SelectionDiagram::Dot ( const std::vector< SelectionStep > & steps,
const TString & title )

The steps as a Graphviz DOT graph.

Parameters
stepsFrom StripSumScatter::DescribeSelection().
titleGraph title, e.g. "37Cl event selection".

Definition at line 131 of file SelectionDiagram.cpp.

Referenced by Write().

◆ Mermaid()

TString SelectionDiagram::Mermaid ( const std::vector< SelectionStep > & steps,
const TString & title )

The steps as a Mermaid flowchart.

Parameters
stepsFrom StripSumScatter::DescribeSelection().
titleChart title (a --- front-matter block).

Definition at line 209 of file SelectionDiagram.cpp.

Referenced by Write().

◆ Write()

void SelectionDiagram::Write ( const std::vector< SelectionStep > & steps,
const TString & dir,
const TString & title )

Write selection.dot and selection.mmd under dir, and render the DOT to selection.png and selection.pdf when dot is available.

Parameters
stepsFrom StripSumScatter::DescribeSelection().
dirOutput directory, created if missing.
titleDiagram title.

Definition at line 257 of file SelectionDiagram.cpp.

Referenced by StripSumScatter::Prepare().