Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb
MooreAnalysis
Commits
3ef19eb0
Commit
3ef19eb0
authored
May 29, 2021
by
Ross John Hunter
Committed by
Lorenzo Pica
Jun 07, 2021
Browse files
Add option in the HltEfficiencyChecker yaml config to turn on DEBUG mode
parent
ff510e7d
Pipeline
#2694619
passed with stage
in 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
HltEfficiencyChecker/options/options_template.py.jinja
View file @
3ef19eb0
...
...
@@ -46,6 +46,13 @@ options.{{ key }} = {{ "{!r}".format(job[key]) }}
{% endif %}
{% endfor %}
# Uncomment the following to increase the output verbosity
{% if job.debug_mode is defined %}
if {{ job. debug_mode }}:
from Gaudi.Configuration import DEBUG
options.output_level = DEBUG
{% endif %}
# needed to run over data with FTv != 4
from RecoConf.hlt1_tracking import default_ft_decoding_version
{% if job.ft_decoding_version is defined %}
...
...
@@ -56,20 +63,22 @@ default_ft_decoding_version.global_bind(value=6)
from RecoConf.global_tools import stateProvider_with_simplified_geom
{% if job.run_reconstruction is defined %}
run_reconstruction = {{ job.run_reconstruction }}
{% else %}
run_reconstruction = False
{% endif %}
if level == 2:
with reconstruction.bind(from_file={{ not job.run_reconstruction }}),\
make_charged_protoparticles.bind(enable_muon_id=True):
if run_reconstruction:
with reconstruction.bind(from_file={{ not job.run_reconstruction }}),\
make_charged_protoparticles.bind(enable_muon_id=True):
run_moore_with_tuples(
options, False, decay, public_tools=[stateProvider_with_simplified_geom()])
else:
run_moore_with_tuples(
options, False, decay, public_tools=[stateProvider_with_simplified_geom()])
else:
run_moore_with_tuples(options, True, decay)
{% else %}
if level == 2:
run_moore_with_tuples(
options, False, decay, public_tools=[stateProvider_with_simplified_geom()])
else:
if use_allen:
run_allen_in_moore_with_tuples(options, decay)
else:
run_moore_with_tuples(options, True, decay)
{% endif %}
HltEfficiencyChecker/scripts/hlt_line_efficiencies.py
View file @
3ef19eb0
...
...
@@ -362,11 +362,12 @@ def main():
# so handle all the axes titles and so on once, now.
# Also scale to fit in the efficiency y-range.
oldmax
=
distr
.
GetMaximum
()
for
ibin
in
range
(
1
,
distr
.
GetNbinsX
()
+
1
):
distr
.
SetBinContent
(
ibin
,
eff_plot_ymin
+
(
0.9
*
(
eff_plot_ymax
-
eff_plot_ymin
)
/
oldmax
)
*
distr
.
GetBinContent
(
ibin
))
if
oldmax
:
for
ibin
in
range
(
1
,
distr
.
GetNbinsX
()
+
1
):
distr
.
SetBinContent
(
ibin
,
eff_plot_ymin
+
(
0.9
*
(
eff_plot_ymax
-
eff_plot_ymin
)
/
oldmax
)
*
distr
.
GetBinContent
(
ibin
))
distr
.
SetMinimum
(
eff_plot_ymin
)
distr
.
SetMaximum
(
eff_plot_ymax
)
distr
.
SetTitle
(
""
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment