Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPP20] Fix deprecated enum arithmetics in SiPixelAliPCLThresholdsPayloadInspectorHelper #44653

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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