Skip to content
Snippets Groups Projects
Verified Commit 9d941535 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add JDQ

parent 84465e3e
No related branches found
No related tags found
No related merge requests found
Pipeline #53978 passed
......@@ -38,7 +38,21 @@ RASP_PLOTS = [['dom_rates', 'ztplot', 'triggermap'],
], ['trigger_rates', 'trigger_rates_lin']]
JMRA_PLOTS = [['plot_event_duration','plot_number_slices','plot_snapshot_hits'],
['plot_number_overlays','plot_pmt_rate_distribution','plot_triggered_hits']]
['plot_number_overlays','plot_pmt_rate_distribution','plot_triggered_hits'],
['daq_status_1','daq_status_2','daq_status_3'],
['daq_status_4','daq_status_5','daq_status_6'],
['daq_status_7','daq_status_8','daq_status_9']]
JDQ_PLOTS = [['jdq_1_out_sync','jdq_1_out_usync'],
['jdq_1_veto'],
['jdq_1_acoustics','jdq_1_AHRS'],
['jdq_1_DAQ','jdq_1_event-count'],
['jdq_1_event-rate','jdq_1_FIFO'],
['jdq_1_HRV','jdq_1_livetime'],
['jdq_1_PMT-rate-mean','jdq_1_PMT-rate-rms'],
['jdq_1_UTC-livetime','jdq_1_WR']]
#['jdq_1_quality','jdq_1_selection']]
if exists(CONFIG_PATH):
config = toml.load(CONFIG_PATH)
......@@ -176,6 +190,11 @@ def rttc():
def jmra():
return render_template('jmra.html', plots=expand_wildcards(JMRA_PLOTS))
@app.route('/jdq.html')
@requires_auth
def jdq():
return render_template('jdq.html', plots=expand_wildcards(JDQ_PLOTS))
@app.route('/trigger.html')
@requires_auth
......
......@@ -59,6 +59,9 @@
<ul class="nav navbar-nav">
<li class="active"><a href="jmra.html">JMRA</a></li>
</ul>
<ul class="nav navbar-nav">
<li class="active"><a href="jdq.html">JDQ</a></li>
</ul>
<ul class="nav navbar-nav">
<li class="active"><a href="top10.html">Top10</a></li>
</ul>
......
{% extends "base.html" %}
{% block infoheader %}
{% if info is defined %}
<div class="alert alert-success alert-dismissible" role="alert">{{ info }}</div>
{% endif %}
{% endblock %}
{% block main %}
<div class="container-fluid" id="plots">
{% for row in plots %}
<div class="row">
{% for plot in row %}
<div class="col-md-{{ (12/(row|length))|int }} plot-container">
<a href="plot_{{ plot }}.html">
<img id="{{ plot }}"
class="plot img-responsive"
src="plots/{{ plot }}.png"
alt="{{ plot }}"/>
</a>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<script type = "text/javascript">
$(document).ready(function(){
setInterval(function(){
{% for row in plots %}
{% for plot in row %}
$("#{{ plot }}").attr("src", "plots/{{ plot }}.png?"+new Date().getTime());
{% endfor %}
{% endfor %}
}, 45000);
});
</script>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment