Skip to content

Commit

Permalink
fix clang-tidy again
Browse files Browse the repository at this point in the history
  • Loading branch information
YanzhaoW committed Jan 28, 2025
1 parent 54a7099 commit eadcf7f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions neuland/calibration/cal_to_hit/engine/R3BNeulandMillepede.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#include <SteerWriter.h>

#include <TGraphErrors.h>
#include <fmt/format.h>
#include <range/v3/algorithm.hpp>
#include <range/v3/algorithm/all_of.hpp>
#include <range/v3/numeric.hpp>
#include <range/v3/view.hpp>

Expand Down Expand Up @@ -116,7 +115,7 @@ namespace R3B::Neuland::Calibration
case GlobalLabel::offset_effective_c:
return module_num + num_of_module;
case GlobalLabel::effective_c:
return module_num + 2 * num_of_module;
return module_num + (2 * num_of_module);
// case GlobalLabel::offset_effective_c:
// return module_num;
// case GlobalLabel::effective_c:
Expand Down Expand Up @@ -228,7 +227,7 @@ namespace R3B::Neuland::Calibration
(right_signal.leading_time - right_signal.trigger_time) - average_t_sum_.value_or(0.F);

input_data_buffer_.measurement =
static_cast<float>(t_sum.value / SCALE_FACTOR / 2.F - BarLength / SCALE_FACTOR / init_effective_c);
static_cast<float>((t_sum.value / SCALE_FACTOR / 2.F) - (BarLength / SCALE_FACTOR / init_effective_c));
input_data_buffer_.sigma = static_cast<float>(t_sum.error / SCALE_FACTOR / 2. * error_scale_factor_);
// input_data_buffer_.sigma = static_cast<float>(DEFAULT_MEAS_ERROR);
const auto local_derivs_t = std::array{ 0.F, 0.F, pos_z / SCALE_FACTOR, 0.F, 0.F, 1.F };
Expand Down Expand Up @@ -402,7 +401,7 @@ namespace R3B::Neuland::Calibration
for (int module_num{ 1 }; module_num <= module_size; ++module_num)
{
steer_writer.add_parameter_default(get_global_label_id(module_num, GlobalLabel::effective_c),
std::make_pair(static_cast<float>(init_effective_c_), 0.F));
std::make_pair(init_effective_c_, 0.F));
}
steer_writer.add_parameter_default(get_global_label_id(REFERENCE_BAR_NUM, GlobalLabel::tsync),
std::make_pair(0.F, -1.F));
Expand Down

0 comments on commit eadcf7f

Please sign in to comment.