DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
triggeralgs::DetectorPlaneMap Struct Reference

#include <DetectorPlaneMap.hpp>

Public Member Functions

PlaneInfo get_plane_info (std::string channel_map_name, int detelement, int plane)

Public Attributes

const std::map< std::pair< int, int >, PlaneInfo > pdhd_plane_map
const std::map< std::pair< int, int >, PlaneInfo > pdvd_plane_map

Detailed Description

Definition at line 18 of file DetectorPlaneMap.hpp.

Member Function Documentation

◆ get_plane_info()

PlaneInfo triggeralgs::DetectorPlaneMap::get_plane_info ( std::string channel_map_name,
int detelement,
int plane )

Definition at line 6 of file DetectorPlaneMap.cpp.

6 {
7
8 const std::map<std::pair<int,int>, PlaneInfo> *plane_map;
9 if (channel_map_name == "PD2HDTPCChannelMap") plane_map = &pdhd_plane_map;
10 else if (channel_map_name == "PD2VDTPCChannelMap" ||
11 channel_map_name == "PD2VDBottomTPCChannelMap" ||
12 channel_map_name == "PD2VDTopTPCChannelMap") plane_map = &pdvd_plane_map;
13 else throw std::invalid_argument("Unknown channel map: " + channel_map_name);
14
15 auto it = plane_map->find({detelement, plane});
16 if (it == plane_map->end()) {
17 throw std::out_of_range("Invalid detelement/plane combination");
18 }
19 return it->second;
20}
const std::map< std::pair< int, int >, PlaneInfo > pdhd_plane_map
const std::map< std::pair< int, int >, PlaneInfo > pdvd_plane_map

Member Data Documentation

◆ pdhd_plane_map

const std::map<std::pair<int,int>, PlaneInfo> triggeralgs::DetectorPlaneMap::pdhd_plane_map
Initial value:
= {
{{0,0}, {400,400}},
{{0,1}, {1200,400}},
{{0,2}, {2080,480}},
{{1,0}, {2560,400}},
{{1,1}, {3360,400}},
{{1,2}, {4160,480}},
{{2,0}, {5520,400}},
{{2,1}, {6320,400}},
{{2,2}, {7200,480}},
{{3,0}, {7680,400}},
{{3,1}, {8480,400}},
{{3,2}, {9280,480}}
}

Definition at line 19 of file DetectorPlaneMap.hpp.

◆ pdvd_plane_map

const std::map<std::pair<int,int>, PlaneInfo> triggeralgs::DetectorPlaneMap::pdvd_plane_map
Initial value:
= {
{{2,0}, { 6144, 952}},
{{2,1}, { 7096, 952}},
{{2,2}, { 8048, 1168}},
{{3,0}, { 9216, 952}},
{{3,1}, {10168, 952}},
{{3,2}, {11120, 1168}},
{{4,0}, { 3072, 952}},
{{4,1}, { 4024, 952}},
{{4,2}, { 4976, 1168}},
{{5,0}, { 0, 952}},
{{5,1}, { 952, 952}},
{{5,2}, { 1904, 1168}}
}

Definition at line 34 of file DetectorPlaneMap.hpp.


The documentation for this struct was generated from the following files: