From 70e303bbc844506ffeec36a6a1db4ca8d3d2a1a6 Mon Sep 17 00:00:00 2001 From: Gerhard Raven <gerhard.raven@nikhef.nl> Date: Thu, 16 May 2024 09:38:37 +0200 Subject: [PATCH] Remove unused (and redundant) UTRawBankMap.h --- .../src/component/UTDigitsToRawBankAlg.cpp | 1 - UT/UTDAQ/src/component/UTFullDecoding.cpp | 1 - UT/UTDAQ/src/component/UTPedestalDecoding.cpp | 1 - UT/UTDAQ/src/component/UTRawBankMonitor.cpp | 1 - .../src/component/UTRawBankToUTDigitsAlg.cpp | 1 - UT/UTKernel/include/Kernel/UTRawBankMap.h | 36 ------------------- 6 files changed, 41 deletions(-) delete mode 100644 UT/UTKernel/include/Kernel/UTRawBankMap.h diff --git a/UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp b/UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp index d84edc82746..5e130e775e9 100644 --- a/UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp +++ b/UT/UTDAQ/src/component/UTDigitsToRawBankAlg.cpp @@ -22,7 +22,6 @@ #include <Kernel/UTDAQBoard.h> #include <Kernel/UTDAQDefinitions.h> #include <Kernel/UTDAQID.h> -#include <Kernel/UTRawBankMap.h> #include <UTDAQ/UTADCWord.h> #include <UTDAQ/UTHeaderWord.h> #include <algorithm> diff --git a/UT/UTDAQ/src/component/UTFullDecoding.cpp b/UT/UTDAQ/src/component/UTFullDecoding.cpp index aecb240e1fd..b144c99067b 100644 --- a/UT/UTDAQ/src/component/UTFullDecoding.cpp +++ b/UT/UTDAQ/src/component/UTFullDecoding.cpp @@ -12,7 +12,6 @@ #include "Event/UTTELL1Data.h" #include "Kernel/IUTReadoutTool.h" #include "Kernel/UTDAQDefinitions.h" -#include "Kernel/UTRawBankMap.h" #include "Kernel/UTTell1Board.h" #include "Kernel/UTTell1ID.h" #include "LHCbAlgs/Transformer.h" diff --git a/UT/UTDAQ/src/component/UTPedestalDecoding.cpp b/UT/UTDAQ/src/component/UTPedestalDecoding.cpp index 65de4dcbb22..87cd2feffc7 100644 --- a/UT/UTDAQ/src/component/UTPedestalDecoding.cpp +++ b/UT/UTDAQ/src/component/UTPedestalDecoding.cpp @@ -11,7 +11,6 @@ #include "Event/RawBank.h" #include "Event/UTTELL1Data.h" #include "Kernel/IUTReadoutTool.h" -#include "Kernel/UTRawBankMap.h" #include "LHCbAlgs/Transformer.h" /** @class UTPedestalDecoding UTPedestalDecoding.h diff --git a/UT/UTDAQ/src/component/UTRawBankMonitor.cpp b/UT/UTDAQ/src/component/UTRawBankMonitor.cpp index 519036318fd..622419ea991 100644 --- a/UT/UTDAQ/src/component/UTRawBankMonitor.cpp +++ b/UT/UTDAQ/src/component/UTRawBankMonitor.cpp @@ -16,7 +16,6 @@ #include "Event/RawBank.h" #include "GaudiAlg/GaudiHistoAlg.h" #include "Kernel/IUTReadoutTool.h" -#include "Kernel/UTRawBankMap.h" #include "Kernel/UTTell1ID.h" #include "LHCbAlgs/Consumer.h" #include <string> diff --git a/UT/UTDAQ/src/component/UTRawBankToUTDigitsAlg.cpp b/UT/UTDAQ/src/component/UTRawBankToUTDigitsAlg.cpp index 0c187e0ac63..c9df6019fc0 100644 --- a/UT/UTDAQ/src/component/UTRawBankToUTDigitsAlg.cpp +++ b/UT/UTDAQ/src/component/UTRawBankToUTDigitsAlg.cpp @@ -30,7 +30,6 @@ #include "Kernel/UTDAQDefinitions.h" #include "Kernel/UTDAQID.h" #include "Kernel/UTDecoder.h" -#include "Kernel/UTRawBankMap.h" #include "LHCbAlgs/Transformer.h" #include "UTDAQ/UTADCWord.h" #include "UTDAQ/UTDAQHelper.h" diff --git a/UT/UTKernel/include/Kernel/UTRawBankMap.h b/UT/UTKernel/include/Kernel/UTRawBankMap.h deleted file mode 100644 index 9e1784b14de..00000000000 --- a/UT/UTKernel/include/Kernel/UTRawBankMap.h +++ /dev/null @@ -1,36 +0,0 @@ -/*****************************************************************************\ -* (c) Copyright 2000-2018 CERN for the benefit of the LHCb Collaboration * -* * -* This software is distributed under the terms of the GNU General Public * -* Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". * -* * -* In applying this licence, CERN does not waive the privileges and immunities * -* granted to it by virtue of its status as an Intergovernmental Organization * -* or submit itself to any jurisdiction. * -\*****************************************************************************/ -#pragma once - -/** @namespace UTRawBankMap UTRawBankMap.h SKernel/UTRawBank - * - * Map string to corresponding bank type enum - * @author A. Beiter (based on code by M.Needham) - * @date 2018-09-04 - */ - -#include "Event/RawBank.h" -#include <string_view> - -namespace UTRawBankMap { - - inline LHCb::RawBank::BankType stringToType( std::string_view type ) { - // use the Velo as NULL - // clang-format off - return ( type == "UT" ) ? LHCb::RawBank::UT - : ( type == "UTFull" ) ? LHCb::RawBank::UTFull - : ( type == "UTError" ) ? LHCb::RawBank::UTError - : ( type == "UTPedestal" ) ? LHCb::RawBank::UTPedestal - : LHCb::RawBank::Velo; - // clang-format on - } - -} // namespace UTRawBankMap -- GitLab