{# Display histograms here #}

{{ run.prettyName }}

{{ run.prettyName }} started at approximately {{ subsystem.prettyPrintUnixTime(subsystem.startOfRun) }} (CERN time zone){%- if run.hltMode and run.hltMode != "U" %} and received via HLT Mode {{ run.hltMode }}{%- endif -%}.
Logbook entry, RCT

{%- if timeSlice != None -%}

{#subsystem.timeSlices: {{ subsystem.timeSlices }} timeSlice: {{ timeSlice }} #} Time slice requested {{ timeSlice.timeInMinutesRounded(timeSlice.minUnixTimeRequested) | int }} to {{ timeSlice.timeInMinutesRounded(timeSlice.maxUnixTimeRequested) | int }} minutes and returned {{ timeSlice.timeInMinutesRounded(timeSlice.minUnixTimeAvailable) | int }} to {{ timeSlice.timeInMinutesRounded(timeSlice.maxUnixTimeAvailable) | int }} due to data constraints.

Processed with {% for key, val in timeSlice.processingOptions.items() -%}{{ key }} = {{ val }}{% if not loop.last%}, {% endif %}{% endfor -%}

{%- endif -%}
{# NOTE: We cannot use loop.first because we loop through many empty histGroups! #} {# See: https://stackoverflow.com/a/4880398 #} {% set firstLoopCompleted = [] %} {% set threshold = [] %} {% for histGroup in subsystem.histGroups %} {% if selectedHistGroup == histGroup.selectionPattern or (selectedHistGroup == None and firstLoopCompleted == []) %} {%- for histName in histGroup.histList -%} {%- set hist = subsystem.hists[histName] %} {% if selectedHist == hist.histName or selectedHist == None %} {% if histGroup.plotInGrid == False or (histGroup.plotInGrid == True and firstLoopCompleted == []) %} {# Effective increments our counter #} {% if firstLoopCompleted.append(1) %}{% endif %} {% if histGroup.plotInGrid == True -%}

{{ histGroup.prettyName }}

{%- else -%}

{{ hist.prettyName }}

{%- endif %} {% if hist.information != dict() %} {% for label, info in hist.information.items() %} {# Get threshold value if it exists #} {%- if label == "Threshold" -%} {% if threshold.append(info) %}{% endif %} {%- endif -%}
{{ label }}
{{ info }}

{% endfor %} {% endif %} {% endif %} {# If grid, then add class #} {# Set histogramContainer style when we using jsRoot to set the proper shadows #} {%- set histogramContainerClasses = "histogramContainerStyle" -%} {% if histGroup.plotInGrid == True %} {# TODO: Determine how to properly show the grid with iron-flex-layout #} {# See: The example on this page: https://stackoverflow.com/a/31484427 -- https://codepen.io/StijnDeWitt/pen/EyPyyL #}

Grid!

{% endif %}
{% if jsRoot != True %} {{ hist.histName }} {% else %} {# Provide indication that we are loading jsroot content #} {# It will disappear once jsroot loads the histogram #}

Loading...

{% endif %}
{% endif %} {% endfor -%} {% endif %} {% endfor %} {# Should only get here if nothing was selected! #} {%- if firstLoopCompleted == [] -%}

Error! No hist group (input: {{ selectedHistGroup }}) or hist (input: {{ selectedHist }}) was selected! Please try again with a different value or contact the admin!

{%- endif -%} {# Content for time slices #}