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: 2025-12-21 13:07:08 Functions: 0.0 % 4 0

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

Generated by: LCOV version 2.0-1