Skip to content

Commit e35e7d2

Browse files
committed
[CPP20] Fix deprecated enum arithmetics in SiPixelAliPCLThresholdsPayloadInspectorHelper.h
1 parent f5861db commit e35e7d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CondCore/PCLConfigPlugins/plugins/SiPixelAliPCLThresholdsPayloadInspectorHelper.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ namespace AlignPCLThresholdPlotHelper {
118118
canvas.SetGrid();
119119

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

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

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

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

0 commit comments

Comments
 (0)