From ca55841a665266c3bfe741e18385af1fbb1ed769 Mon Sep 17 00:00:00 2001 From: Shin-Shan Yu Date: Tue, 16 Jun 2026 16:28:31 -0400 Subject: [PATCH] use std::max instead of TMath::Max --- madanalysis/layout/merging_plots.py | 2 +- madanalysis/layout/plotflow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/madanalysis/layout/merging_plots.py b/madanalysis/layout/merging_plots.py index 7589e27e..72bd85a0 100644 --- a/madanalysis/layout/merging_plots.py +++ b/madanalysis/layout/merging_plots.py @@ -323,7 +323,7 @@ def DrawROOT(self,DJRplots,dataset,filenameC,output_files,index): outputC.write(' legend->SetFillColor(0);\n') outputC.write(' legend->SetTextSize(0.04);\n') outputC.write(' legend->SetTextFont(22);\n') - outputC.write(' legend->SetY1(TMath::Max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') + outputC.write(' legend->SetY1(std::max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') outputC.write(' legend->Draw();\n') outputC.write('\n') diff --git a/madanalysis/layout/plotflow.py b/madanalysis/layout/plotflow.py index b8a7bf6a..fcd5ab89 100644 --- a/madanalysis/layout/plotflow.py +++ b/madanalysis/layout/plotflow.py @@ -512,7 +512,7 @@ def DrawROOT(self,histos,scales,ref,irelhisto,filenameC,outputnames): outputC.write(' legend->SetFillColor(0);\n') outputC.write(' legend->SetTextSize(0.05);\n') outputC.write(' legend->SetTextFont(22);\n') - outputC.write(' legend->SetY1(TMath::Max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') + outputC.write(' legend->SetY1(std::max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') outputC.write(' legend->Draw();\n') outputC.write('\n')