From 280aad45f2635f613e567207d0c53fd3d6b47169 Mon Sep 17 00:00:00 2001 From: Gray Putnam Date: Fri, 8 May 2026 16:51:58 -0500 Subject: [PATCH] Use correct variable (err) for error checking, --- icaruscode/TPC/Calorimetry/NormalizeTPCPerPlane_tool.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icaruscode/TPC/Calorimetry/NormalizeTPCPerPlane_tool.cc b/icaruscode/TPC/Calorimetry/NormalizeTPCPerPlane_tool.cc index 66d8ae6fc..5ed3854ef 100644 --- a/icaruscode/TPC/Calorimetry/NormalizeTPCPerPlane_tool.cc +++ b/icaruscode/TPC/Calorimetry/NormalizeTPCPerPlane_tool.cc @@ -114,14 +114,14 @@ icarus::calo::NormalizeTPCPerPlane::ScaleInfo icarus::calo::NormalizeTPCPerPlane int err = 0; // Get the itpc number int ch = getLongValue(tup, 0, &err); - if (error) { - throw cet::exception("NormalizeTPCPerPlane") << "Calibration Database access failed. URL: (" << url << ") Failed on tuple access, row: " << row << ", col 0. Error Code: " << error; + if (err) { + throw cet::exception("NormalizeTPCPerPlane") << "Calibration Database access failed. URL: (" << url << ") Failed on tuple access, row: " << row << ", col 0. Error Code: " << err; } // and the scale double scale = getDoubleValue(tup, 3, &err); - if (error) { - throw cet::exception("NormalizeTPCPerPlane") << "Calibration Database access failed. URL: (" << url << ") Failed on tuple access, row: " << row << ", col 1. Error Code: " << error; + if (err) { + throw cet::exception("NormalizeTPCPerPlane") << "Calibration Database access failed. URL: (" << url << ") Failed on tuple access, row: " << row << ", col 1. Error Code: " << err; } thisscale.scale[ch] = scale;