From 4f6ccf642682a8ed45625bec08f88fc178181544 Mon Sep 17 00:00:00 2001 From: Kamil Skwarczynski Date: Mon, 6 Jan 2025 21:04:00 +0000 Subject: [PATCH] minor fixes --- Diagnostics/PlotMCMCDiag.cpp | 4 ++-- Diagnostics/ProcessMCMC.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Diagnostics/PlotMCMCDiag.cpp b/Diagnostics/PlotMCMCDiag.cpp index 2dec34c52..fdd00bec2 100644 --- a/Diagnostics/PlotMCMCDiag.cpp +++ b/Diagnostics/PlotMCMCDiag.cpp @@ -183,11 +183,11 @@ void PlotAutoCorr(TString fname1, TString fname2, TString fname3, TString fname4 int main(int argc, char *argv[]) { SetMaCh3LoggerFormat(); - if (argc != 2) + if (argc < 2 || argc > 5) { MACH3LOG_ERROR("How to use: {} DiagMCMC_Output.root", argv[0]); MACH3LOG_ERROR("Up to 4 files"); - throw MaCh3Exception(__FILE__ , __LINE__ ); + throw MaCh3Exception(__FILE__ , __LINE__); } if(argc == 2) { diff --git a/Diagnostics/ProcessMCMC.cpp b/Diagnostics/ProcessMCMC.cpp index 2bfe25a16..0fe320a95 100644 --- a/Diagnostics/ProcessMCMC.cpp +++ b/Diagnostics/ProcessMCMC.cpp @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) nFiles = 0; if (argc != 3 && argc !=6 && argc != 8) { - MACH3LOG_ERROR("How to use: {} ", argv[0]); + MACH3LOG_ERROR("How to use: {} ", argv[0]); throw MaCh3Exception(__FILE__ , __LINE__ ); }