LCOV - code coverage report
Current view: top level - detchannelmaps/plugins - HDColdboxTPCChannelMap.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 77.8 % 9 7
Test Date: 2026-10-11 15:05:20 Functions: 75.0 % 4 3

            Line data    Source code
       1              : #include "PD2HDChannelMapSP.h"
       2              : #include "PD2HDChannelMapSPPluginBase.hpp"
       3              : #include "detchannelmaps/TPCChannelMap.hpp"
       4              : 
       5              : #include "logging/Logging.hpp" // NOLINT
       6              : 
       7              : namespace dunedaq {
       8              : namespace detchannelmaps {
       9              : 
      10              : class HDColdboxTPCChannelMap : public PD2HDChannelMapSPPluginBase
      11              : {
      12              : private:
      13              :   // TODO: Use detdataformats::kHD_TPC instead
      14              :   const static uint kDetID = 3;
      15              : 
      16              : public:
      17              :   /**
      18              :    * @brief Construct a new HDColdboxTPCChannelMap object
      19              :    *
      20              :    */
      21            1 :   explicit HDColdboxTPCChannelMap()
      22            1 :     : PD2HDChannelMapSPPluginBase(kDetID, "hdcoldbox/hdcb_chanmap_v1.txt")
      23              :   {
      24              : 
      25            2 :     m_elem_name_id_converter = [](const std::string& apa_name) -> uint {
      26              :       // Brute force approack
      27            0 :       if (apa_name == "APA0") {
      28              :         return 0;
      29              :       } else {
      30            0 :         return -1;
      31              :       }
      32            1 :     };
      33              : 
      34            1 :     TLOG_DEBUG(10) << "HDColdboxTPCChannelMap Created";
      35            1 :   }
      36              : 
      37              :   HDColdboxTPCChannelMap(const HDColdboxTPCChannelMap&) = delete; ///< HDColdboxTPCChannelMap is not copy-constructible
      38              :   HDColdboxTPCChannelMap& operator=(const HDColdboxTPCChannelMap&) =
      39              :     delete;                                                  ///< HDColdboxTPCChannelMap is not copy-assignable
      40              :   HDColdboxTPCChannelMap(HDColdboxTPCChannelMap&&) = delete; ///< HDColdboxTPCChannelMap is not move-constructible
      41              :   HDColdboxTPCChannelMap& operator=(HDColdboxTPCChannelMap&&) =
      42              :     delete; ///< HDColdboxTPCChannelMap is not move-assignable
      43              : };
      44              : 
      45            1 : DEFINE_DUNE_DET_TPCCHANNEL_MAP(dunedaq::detchannelmaps::HDColdboxTPCChannelMap)
      46              : 
      47              : } // namespace detchannelmaps
      48              : } // namespace dunedaq
        

Generated by: LCOV version 2.0-1