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 HDColdboxTPCChannelMap : public PD2HDChannelMapSPPluginBase {
11 : private:
12 : // TODO: Use detdataformats::kHD_TPC instead
13 : const static uint kDetID = 3;
14 :
15 : public:
16 : /**
17 : * @brief Construct a new HDColdboxTPCChannelMap object
18 : *
19 : */
20 1 : explicit HDColdboxTPCChannelMap() :
21 1 : PD2HDChannelMapSPPluginBase( kDetID, "hdcoldbox/hdcb_chanmap_v1.txt" ) {
22 :
23 2 : m_elem_name_id_converter = [](const std::string& apa_name) -> uint {
24 : // Brute force approack
25 0 : if(apa_name=="APA0") {
26 : return 0;
27 : } else {
28 0 : return -1;
29 : }
30 1 : };
31 :
32 :
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&) = delete; ///< HDColdboxTPCChannelMap is not copy-assignable
39 : HDColdboxTPCChannelMap(HDColdboxTPCChannelMap&&) = delete; ///< HDColdboxTPCChannelMap is not move-constructible
40 : HDColdboxTPCChannelMap& operator=(HDColdboxTPCChannelMap&&) = delete; ///< HDColdboxTPCChannelMap is not move-assignable
41 :
42 : };
43 :
44 1 : DEFINE_DUNE_DET_TPCCHANNEL_MAP(dunedaq::detchannelmaps::HDColdboxTPCChannelMap)
45 :
46 :
47 : } // namespace detchannelmaps
48 : } // namespace dunedaq
|