Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3mon
Commits
9d941535
Verified
Commit
9d941535
authored
7 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Add JDQ
parent
84465e3e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#53978
passed
7 months ago
Stage: docker
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/app/routes.py
+20
-1
20 additions, 1 deletion
frontend/app/routes.py
frontend/app/templates/base.html
+3
-0
3 additions, 0 deletions
frontend/app/templates/base.html
frontend/app/templates/jdq.html
+41
-0
41 additions, 0 deletions
frontend/app/templates/jdq.html
with
64 additions
and
1 deletion
frontend/app/routes.py
+
20
−
1
View file @
9d941535
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
frontend/app/templates/base.html
+
3
−
0
View file @
9d941535
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
frontend/app/templates/jdq.html
0 → 100644
+
41
−
0
View file @
9d941535
{% 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 %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment