Skip to content

Commit

Permalink
Merge pull request #255 from mach3-software/feature_spline_binning_pr…
Browse files Browse the repository at this point in the history
…int_fix

bugfix: TAxis get array fix for spline binning print
  • Loading branch information
KSkwarczynski authored Dec 20, 2024
2 parents 017fc21 + 1e83ee9 commit f6eb4c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions splines/splineFDBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ std::vector<TAxis *> splineFDBase::FindSplineBinning(std::string FileName, std::

if (isHist3D)
{
Hist3D = File->Get<TH3F>(("dev_tmp_0_0"));
Hist3D = File->Get<TH3F>((TemplateName.c_str()));

if (Dimensions[iSample] != 3 && Hist3D->GetZaxis()->GetNbins() != 1)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f6eb4c7

Please sign in to comment.