From dea49113c1bd3a5ea8144ec4c52049c49d8c1204 Mon Sep 17 00:00:00 2001 From: Patrick Koppenburg Date: Tue, 8 Dec 2020 13:07:08 +0100 Subject: [PATCH 1/2] CheckPV fix so print actually works --- Phys/DaVinciPVTools/src/CheckPV.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Phys/DaVinciPVTools/src/CheckPV.cpp b/Phys/DaVinciPVTools/src/CheckPV.cpp index 54b45834f..e1f248a3b 100644 --- a/Phys/DaVinciPVTools/src/CheckPV.cpp +++ b/Phys/DaVinciPVTools/src/CheckPV.cpp @@ -79,7 +79,8 @@ StatusCode CheckPV::execute() { // count PVs n = PV->size(); - if ( msgLevel( MSG::VERBOSE ) || m_print ) verbose() << "There are " << n << " primary vertices." << endmsg; + if ( msgLevel( MSG::VERBOSE ) ) verbose() << "There are " << n << " primary vertices." << endmsg; + else if ( m_print ) always() << "There are " << n << " primary vertices." << endmsg; m_PVsCounter += n; -- GitLab From 4bebf135c4c0156c9439da4693d0dee9e0e498de Mon Sep 17 00:00:00 2001 From: Gitlab CI Date: Tue, 8 Dec 2020 12:08:22 +0000 Subject: [PATCH 2/2] Fixed formatting patch generated by https://gitlab.cern.ch/lhcb/Phys/-/jobs/11234900 --- Phys/DaVinciPVTools/src/CheckPV.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Phys/DaVinciPVTools/src/CheckPV.cpp b/Phys/DaVinciPVTools/src/CheckPV.cpp index e1f248a3b..d2b5ed220 100644 --- a/Phys/DaVinciPVTools/src/CheckPV.cpp +++ b/Phys/DaVinciPVTools/src/CheckPV.cpp @@ -79,8 +79,10 @@ StatusCode CheckPV::execute() { // count PVs n = PV->size(); - if ( msgLevel( MSG::VERBOSE ) ) verbose() << "There are " << n << " primary vertices." << endmsg; - else if ( m_print ) always() << "There are " << n << " primary vertices." << endmsg; + if ( msgLevel( MSG::VERBOSE ) ) + verbose() << "There are " << n << " primary vertices." << endmsg; + else if ( m_print ) + always() << "There are " << n << " primary vertices." << endmsg; m_PVsCounter += n; -- GitLab