Skip to content

Commit

Permalink
[CPP20] Fix deprecated enum arithmetics in SiPixelAliPCLThresholdsPay…
Browse files Browse the repository at this point in the history
…loadInspectorHelper.h
  • Loading branch information
iarspider committed Apr 8, 2024
1 parent f5861db commit e35e7d2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ namespace AlignPCLThresholdPlotHelper {
canvas.SetGrid();

// needed for the internal loop
const auto& local_end_of_types = isHighGranularity_ ? END_OF_TYPES : FRACTION_CUT;
const int N_Y_BINS = AlignPCLThresholds::extra_DOF * local_end_of_types;
const int local_end_of_types = static_cast<int>(isHighGranularity_ ? END_OF_TYPES : FRACTION_CUT);
const int N_Y_BINS = static_cast<int>(AlignPCLThresholds::extra_DOF) * local_end_of_types;

auto Thresholds =
std::make_unique<TH2F>("Thresholds", "", alignables.size(), 0, alignables.size(), N_Y_BINS, 0, N_Y_BINS);
Expand Down Expand Up @@ -309,8 +309,8 @@ namespace AlignPCLThresholdPlotHelper {
canvas.SetGrid();

// needed for the internal loop
const auto& local_end_of_types = isHighGranularity_ ? END_OF_TYPES : FRACTION_CUT;
const int N_Y_BINS = AlignPCLThresholds::extra_DOF * local_end_of_types;
const int local_end_of_types = static_cast<int>(isHighGranularity_ ? END_OF_TYPES : FRACTION_CUT);
const int N_Y_BINS = static_cast<int>(AlignPCLThresholds::extra_DOF) * local_end_of_types;

auto Thresholds = std::make_unique<TH2F>(
"Thresholds", "", v_intersection.size(), 0, v_intersection.size(), N_Y_BINS, 0, N_Y_BINS);
Expand Down

0 comments on commit e35e7d2

Please sign in to comment.