From 6787ade28d4bcf5ff0512503f054ff1768162ebc Mon Sep 17 00:00:00 2001 From: Daniel Barrow Date: Fri, 24 Jan 2025 11:03:11 -0600 Subject: [PATCH] Move throw to within expected if statement and remove warning about XVar --- samplePDF/samplePDFFDBase.cpp | 1 - splines/splineFDBase.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/samplePDF/samplePDFFDBase.cpp b/samplePDF/samplePDFFDBase.cpp index 23663816f..2559a9cd0 100644 --- a/samplePDF/samplePDFFDBase.cpp +++ b/samplePDF/samplePDFFDBase.cpp @@ -599,7 +599,6 @@ void samplePDFFDBase::fillArray_MP() { } //DB - Second, check to see if the event is outside of the binning range and skip event if it is else if (XVar < XBinEdges[0] || XVar >= XBinEdges[nXBins]) { - MACH3LOG_WARN("XVAR BEYOND BIN EDGES!!"); continue; } //DB - Thirdly, check the adjacent bins first as Eb+CC+EScale shifts aren't likely to move an Erec more than 1bin width diff --git a/splines/splineFDBase.cpp b/splines/splineFDBase.cpp index 6402738e1..32c9a8de7 100644 --- a/splines/splineFDBase.cpp +++ b/splines/splineFDBase.cpp @@ -460,8 +460,8 @@ std::vector splineFDBase::FindSplineBinning(std::string FileName, std:: if (Dimensions[iSample] != 2) { MACH3LOG_ERROR("Trying to load a 2D spline template when nDim={}", Dimensions[iSample]); - } throw MaCh3Exception(__FILE__, __LINE__); + } //Hist2D = std::unique_ptr(File->Get("dev_tmp_0_0")); Hist2D = File->Get(TemplateName.c_str()); }