From 0a6f4d17076802b4682616cd4a0f41265f1a0250 Mon Sep 17 00:00:00 2001
From: Shyam Kumar <shyam055119@gmail.com>
Date: Sun, 28 Jul 2024 05:58:14 +0200
Subject: [PATCH] Update doCompare_truth_real_widebins_mom.C

---
 .../tracking_performances/doCompare_truth_real_widebins_mom.C   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/benchmarks/tracking_performances/doCompare_truth_real_widebins_mom.C b/benchmarks/tracking_performances/doCompare_truth_real_widebins_mom.C
index 283dffce..4d71e104 100644
--- a/benchmarks/tracking_performances/doCompare_truth_real_widebins_mom.C
+++ b/benchmarks/tracking_performances/doCompare_truth_real_widebins_mom.C
@@ -151,7 +151,7 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1
 	mgMom->Add(gr2);
 	c_mom->cd();
 	mgMom->GetXaxis()->SetRangeUser(0.40,20.2);
-	mgMom->GetYaxis()->SetRangeUser(0.,10.0);
+	mgMom->GetYaxis()->SetRangeUser(0.0,1.50*TMath::MaxElement(gr2->GetN(),gr2->GetY())); // 50% more of the maximum value on yaxis
 	mgMom->Draw("AP");
 	lmom->AddEntry(gr1,"Truth Seeding");
 	lmom->AddEntry(gr2,"Realistic Seeding");
-- 
GitLab