From 95cba0db68e9aa0772124cf3a97bba6b2925d48d Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Tue, 19 Sep 2023 15:27:32 +0200 Subject: [PATCH] remove unused file --- k4ActsTracking/src/components/ACTSLogger.h | 81 ---------------------- 1 file changed, 81 deletions(-) delete mode 100644 k4ActsTracking/src/components/ACTSLogger.h diff --git a/k4ActsTracking/src/components/ACTSLogger.h b/k4ActsTracking/src/components/ACTSLogger.h deleted file mode 100644 index 7559265..0000000 --- a/k4ActsTracking/src/components/ACTSLogger.h +++ /dev/null @@ -1,81 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-or-later -// Copyright (C) 2022 Whitney Armstrong - -#ifndef RECTRACKER_ACTSLOGGER_H -#define RECTRACKER_ACTSLOGGER_H - -#include "Acts/Utilities/Logger.hpp" -#include "GaudiKernel/IMessageSvc.h" -#include "GaudiKernel/MsgStream.h" -#include "GaudiKernel/ServiceHandle.h" - -class GaudiFilterPolicy : public Acts::Logging::OutputFilterPolicy { -public: - GaudiFilterPolicy(IMessageSvc* owner) : m_messenger(owner), m_currentLevel(m_messenger.currentLevel()) {} - - bool doPrint(const Acts::Logging::Level& lvl) const { - MSG::Level l = MSG::VERBOSE; - switch (lvl) { - case Acts::Logging::VERBOSE: - l = MSG::VERBOSE; - break; - case Acts::Logging::DEBUG: - l = MSG::DEBUG; - break; - case Acts::Logging::INFO: - l = MSG::INFO; - break; - case Acts::Logging::WARNING: - l = MSG::WARNING; - break; - case Acts::Logging::ERROR: - l = MSG::ERROR; - break; - case Acts::Logging::FATAL: - l = MSG::FATAL; - break; - } - MSG::Level cl = m_currentLevel; - return l < cl; - } - -private: - MsgStream m_messenger; - MSG::Level m_currentLevel; -}; - -class GaudiPrintPolicy : public Acts::Logging::OutputPrintPolicy { -public: - GaudiPrintPolicy(IMessageSvc* owner) : m_messenger(owner) {} - - void flush(const Acts::Logging::Level& lvl, const std::ostringstream& input) { - MSG::Level l = MSG::VERBOSE; - switch (lvl) { - case Acts::Logging::VERBOSE: - l = MSG::VERBOSE; - break; - case Acts::Logging::DEBUG: - l = MSG::DEBUG; - break; - case Acts::Logging::INFO: - l = MSG::INFO; - break; - case Acts::Logging::WARNING: - l = MSG::WARNING; - break; - case Acts::Logging::ERROR: - l = MSG::ERROR; - break; - case Acts::Logging::FATAL: - l = MSG::FATAL; - break; - } - - m_messenger << l << input.str() << endmsg; - } - -private: - MsgStream m_messenger; -}; - -#endif // RECTRACKER_ACTSLOGGER_H