LCOV - code coverage report
Current view: top level - detchannelmaps/plugins - PD2VDBottomTPCChannelMap.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 10 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 PD2VDBottomTPCChannelMap : public PD2HDChannelMapSPPluginBase
      11              : {
      12              : private:
      13              :   // TODO: Use detdataformats::kHD_TPC instead
      14              :   const static uint kDetID = 10;
      15              : 
      16              : public:
      17              :   /**
      18              :    * @brief Construct a new HDColdboxTPCChannelMap object
      19              :    *
      20              :    */
      21            0 :   explicit PD2VDBottomTPCChannelMap()
      22            0 :     : PD2HDChannelMapSPPluginBase(kDetID, "pd2vd/PD2VDBottomTPCChannelMap_v1.txt")
      23              :   {
      24              : 
      25            0 :     m_elem_name_id_converter = [](const std::string& apa_name) -> uint {
      26              :       // Brute force approack
      27            0 :       if (apa_name == "BottomCRP4") {
      28              :         return 4;
      29            0 :       } else if (apa_name == "BottomCRP5") {
      30              :         return 5;
      31              :       } else {
      32            0 :         return -1;
      33              :       }
      34            0 :     };
      35              : 
      36            0 :     TLOG_DEBUG(10) << "PD2VDBottomTPCChannelMap Created";
      37            0 :   }
      38              : };
      39              : 
      40            0 : DEFINE_DUNE_DET_TPCCHANNEL_MAP(dunedaq::detchannelmaps::PD2VDBottomTPCChannelMap)
      41              : 
      42              : } // namespace detchannelmaps
      43              : } // namespace dunedaq
        

Generated by: LCOV version 2.0-1