Skip to content
Snippets Groups Projects
Commit 1bd6dc59 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Merge branch 'jmra_branch' into 'master'

added Alba's JMRA plots

See merge request !31
parents d11eee37 145149e4
No related branches found
No related tags found
1 merge request!31added Alba's JMRA plots
Pipeline #32924 passed
......@@ -17,7 +17,8 @@ LOGS_PATH = "/logs"
USERNAME = None
PASSWORD = None
PLOTS = [['dom_activity', 'dom_rates'], 'pmt_rates_du*', ['trigger_rates'],
PLOTS = [['dom_activity', 'dom_rates', 'triggered_hits_JTRIGGER3DMUON'],
['trigger_rates'],
['ztplot', 'triggermap']]
ACOUSTICS_PLOTS = [['Online_Acoustic_Monitoring']]
......@@ -36,6 +37,9 @@ RASP_PLOTS = [['dom_rates', 'ztplot', 'triggermap'],
'pmt_rates_du5'
], ['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']]
if exists(CONFIG_PATH):
config = toml.load(CONFIG_PATH)
if "WebServer" in config:
......@@ -167,6 +171,11 @@ def rttc():
# "y-axis: rate [Hz], x-axis: cosine of angles. "
# "blue=before, red=after")
@app.route('/jmra.html')
@requires_auth
def jmra():
return render_template('jmra.html', plots=expand_wildcards(JMRA_PLOTS))
@app.route('/trigger.html')
@requires_auth
......
......@@ -56,6 +56,9 @@
<ul class="nav navbar-nav">
<li class="active"><a target="_blank" href="http://antorcamm2.in2p3.fr/supernova/">SN</a></li>
</ul>
<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="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="alert alert-success alert-dismissible" role="alert">Download the compiled PDF: <a target="_blank" href="/plots/jmra/plot_JMRA.pdf">plot_JMRA.pdf</a> [<50kB] </div>
<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