From cdcdb5ce2009af0b26b29adb1105086a61626a75 Mon Sep 17 00:00:00 2001
From: Lubynets <lubinets95@gmail.com>
Date: Mon, 14 Dec 2020 16:42:58 +0100
Subject: [PATCH] use correct value along x-axis

---
 src/BordersFinder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/BordersFinder.cpp b/src/BordersFinder.cpp
index c193779..3f1a24d 100644
--- a/src/BordersFinder.cpp
+++ b/src/BordersFinder.cpp
@@ -26,7 +26,7 @@ void BordersFinder::FindBorders() {
   double *histIntegral = histo_.GetIntegral();
   double x[n];
   for (int i = 0; i < n; ++i) {
-    x[i] = axis->GetBinCenter(i + 1);
+    x[i] = axis->GetBinLowEdge(i + 1);
   }
 
   TGraph intVsXGraph(n, x, histIntegral);
-- 
GitLab