{%- for histGroup in subsystem.histGroups -%}
{%- if histGroup.histList != [] -%}
{# groupSelectionPatten should always be a valid proxy for a valid link #}
{# The value "nonSubsystemEmptyString" is interpreted in the validation function for the hist group, so it shouldn't show up anywhere else! #}
{{ histGroup.prettyName }}
{%- if histGroup.plotInGrid == False -%}
{%- for histName in histGroup.histList -%}
{%- set hist = subsystem.hists[histName] -%}
{# The value "nonSubsystemEmptyString" is interpreted in the validation function for the hist group, so it shouldn't show up anywhere else! #}
{{ hist.prettyName }}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- endfor %}