Commit 3ef19eb0 authored by Ross John Hunter's avatar Ross John Hunter Committed by Lorenzo Pica
Browse files

Add option in the HltEfficiencyChecker yaml config to turn on DEBUG mode

parent ff510e7d
Pipeline #2694619 passed with stage
in 34 seconds
......@@ -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 %}
......@@ -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("")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment