From e5b4630c292162720c55fa4e3b2b7fc3b9176efb Mon Sep 17 00:00:00 2001
From: Danilo Piparo <danilo.piparo@cern.ch>
Date: Wed, 4 Oct 2017 11:37:39 +0200
Subject: [PATCH] [TDF] Fix bug linked to Z and Y limits of profiles

---
 tree/treeplayer/src/TDFHistoModels.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tree/treeplayer/src/TDFHistoModels.cxx b/tree/treeplayer/src/TDFHistoModels.cxx
index 6fc0d37081c..e2f873103d4 100644
--- a/tree/treeplayer/src/TDFHistoModels.cxx
+++ b/tree/treeplayer/src/TDFHistoModels.cxx
@@ -91,7 +91,7 @@ TH3DModel::~TH3DModel()
 
 TProfile1DModel::TProfile1DModel(const ::TProfile &h)
    : fName(h.GetName()), fTitle(h.GetTitle()), fNbinsX(h.GetNbinsX()), fXLow(h.GetXaxis()->GetXmin()),
-     fXUp(h.GetXaxis()->GetXmax()), fYLow(h.GetYaxis()->GetXmin()), fYUp(h.GetYaxis()->GetXmax()),
+     fXUp(h.GetXaxis()->GetXmax()), fYLow(h.GetYmin()), fYUp(h.GetYmax()),
      fOption(h.GetErrorOption())
 {
 }
@@ -115,7 +115,7 @@ TProfile1DModel::~TProfile1DModel()
 TProfile2DModel::TProfile2DModel(const ::TProfile2D &h)
    : fName(h.GetName()), fTitle(h.GetTitle()), fNbinsX(h.GetNbinsX()), fXLow(h.GetXaxis()->GetXmin()),
      fXUp(h.GetXaxis()->GetXmax()), fNbinsY(h.GetNbinsY()), fYLow(h.GetYaxis()->GetXmin()),
-     fYUp(h.GetYaxis()->GetXmax()), fZLow(h.GetZaxis()->GetXmin()), fZUp(h.GetZaxis()->GetXmax()),
+     fYUp(h.GetYaxis()->GetXmax()), fZLow(h.GetZmin()), fZUp(h.GetZmax()),
      fOption(h.GetErrorOption())
 {
 }
-- 
GitLab