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: 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 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            0 :     m_elem_name_id_converter = [](const std::string& apa_name) -> uint {
      24              :       // Brute force approack
      25            0 :       if(apa_name=="APA_P02SU") {
      26              :         return 1;
      27            0 :       } else if(apa_name=="APA_P01SU") {
      28              :         return 2;
      29            0 :       } else if(apa_name=="APA_P02NL") {
      30              :         return 3;
      31            0 :       } else if(apa_name=="APA_P01NL") {
      32              :         return 4;
      33              :       } else {
      34            0 :         return -1;
      35              :       }
      36            0 :     };
      37              : 
      38            0 :     TLOG_DEBUG(10) << "PD2HDTPCChannelMap Created";
      39            0 :   }
      40              : 
      41              : };
      42              : 
      43            0 : DEFINE_DUNE_DET_TPCCHANNEL_MAP(dunedaq::detchannelmaps::PD2HDTPCChannelMap)
      44              : 
      45              : 
      46              : } // namespace detchannelmaps
      47              : } // namespace dunedaq
        

Generated by: LCOV version 2.0-1