From 3a5a79725c2cad2b2b4170041c18bdd0e794f65e Mon Sep 17 00:00:00 2001 From: Stephen Fegan Date: Tue, 8 Oct 2024 12:38:05 +0200 Subject: [PATCH] Tidy up a bit --- src/diagnostics/run_info.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/diagnostics/run_info.cpp b/src/diagnostics/run_info.cpp index 648696a7..72124659 100644 --- a/src/diagnostics/run_info.cpp +++ b/src/diagnostics/run_info.cpp @@ -577,25 +577,26 @@ void RunInfoDiagnosticsParallelEventVisitor::integrate_partials() config_.event_number_histogram_resolution(), 0.0, 1.0e9, double(run_config_->camera_layout().first_event_number()) }; + const double thistres = config_.event_time_histogram_resolution(); const double thistmin = config_.event_time_histogram_min(); const double thistmax = config_.event_time_histogram_max(); calin::math::histogram::Histogram1D elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_physics_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_software_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_pedestal_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_external_flasher_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_internal_flasher_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_forced_array_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; calin::math::histogram::Histogram1D trigger_ucts_aux_elapsed_time_hist { - config_.event_time_histogram_resolution(), thistmin, thistmax, 0.0 }; + thistres, thistmin, thistmax, 0.0 }; for(int ievent=0; ieventevent_number_sequence_size(); ++ievent) { event_number_hist.insert(partials_->event_number_sequence(ievent));