LCOV - code coverage report
Current view: top level - detchannelmaps/plugins - PD2HDTPCChannelMap.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 12 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 4 0

            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 PD2HDTPCChannelMap : public PD2HDChannelMapSPPluginBase
      11              : {
      12              : public:
      13              :   // TODO: Use detdataformats::kHD_TPC instead
      14              :   const static uint kDetID = 3;
      15              : 
      16              :   /**
      17              :    * @brief Construct a new HDColdboxTPCChannelMap object
      18              :    *
      19              :    */
      20            0 :   explicit PD2HDTPCChannelMap()
      21            0 :     : PD2HDChannelMapSPPluginBase(kDetID, "pd2hd/PD2HDChannelMap_v6.txt")
      22              :   {
      23              : 
      24            0 :     m_elem_name_id_converter = [](const std::string& apa_name) -> uint {
      25              :       // Brute force approack
      26            0 :       if (apa_name == "APA_P02SU") {
      27              :         return 1;
      28            0 :       } else if (apa_name == "APA_P01SU") {
      29              :         return 2;
      30            0 :       } else if (apa_name == "APA_P02NL") {
      31              :         return 3;
      32            0 :       } else if (apa_name == "APA_P01NL") {
      33              :         return 4;
      34              :       } else {
      35            0 :         return -1;
      36              :       }
      37            0 :     };
      38              : 
      39            0 :     TLOG_DEBUG(10) << "PD2HDTPCChannelMap Created";
      40            0 :   }
      41              : };
      42              : 
      43            0 : DEFINE_DUNE_DET_TPCCHANNEL_MAP(dunedaq::detchannelmaps::PD2HDTPCChannelMap)
      44              : 
      45              : } // namespace detchannelmaps
      46              : } // namespace dunedaq
        

Generated by: LCOV version 2.0-1