From f0a754945c2b27d526ee8840709a183966509206 Mon Sep 17 00:00:00 2001 From: EdAtkin Date: Wed, 11 Dec 2024 17:58:37 +0000 Subject: [PATCH 1/2] fixing a bug where the reading in of the dummy histogram containing the binning could have had the incorrect delimiters for 3D inputs --- splines/splineFDBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splines/splineFDBase.cpp b/splines/splineFDBase.cpp index d6d3eb75..f989c1fe 100644 --- a/splines/splineFDBase.cpp +++ b/splines/splineFDBase.cpp @@ -478,7 +478,7 @@ std::vector splineFDBase::FindSplineBinning(std::string FileName, std:: if (isHist3D) { - Hist3D = File->Get(("dev_tmp_0_0")); + Hist3D = File->Get((TemplateName.c_str())); if (Dimensions[iSample] != 3 && Hist3D->GetZaxis()->GetNbins() != 1) { From 202697c61585f5da1459b90b29eb23585149b543 Mon Sep 17 00:00:00 2001 From: EdAtkin Date: Fri, 20 Dec 2024 14:45:24 +0000 Subject: [PATCH 2/2] fixing a bug in the printing of the spline binning, root Taxis I think is just a bit strange --- splines/splineFDBase.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/splines/splineFDBase.cpp b/splines/splineFDBase.cpp index f989c1fe..86443475 100644 --- a/splines/splineFDBase.cpp +++ b/splines/splineFDBase.cpp @@ -977,12 +977,11 @@ void splineFDBase::PrintBinning(TAxis *Axis) //**************************************** { const int NBins = Axis->GetNbins(); - const double *BinEdges = Axis->GetXbins()->GetArray(); std::cout << "\t"; for (int iBin = 0; iBin < (NBins + 1); iBin++) { - std::cout << BinEdges[iBin] << " "; + std::cout << Axis->GetXbins()->GetAt(iBin) << " " << std::endl; } std::cout << std::endl; return;