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 >, PlaneInfopdhd_plane_map
 
const std::map< std::pair< int, int >, PlaneInfopdvd_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") plane_map = &pdvd_plane_map;
11 else plane_map = &pdvd_plane_map;
12
13 auto it = plane_map->find({detelement, plane});
14 if (it == plane_map->end()) {
15 throw std::out_of_range("Invalid detelement/plane combination");
16 }
17 return it->second;
18}
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.

19 {
20 {{0,0}, {400,400}},
21 {{0,1}, {1200,400}},
22 {{0,2}, {2080,480}},
23 {{1,0}, {2560,400}},
24 {{1,1}, {3360,400}},
25 {{1,2}, {4160,480}},
26 {{2,0}, {5520,400}},
27 {{2,1}, {6320,400}},
28 {{2,2}, {7200,480}},
29 {{3,0}, {7680,400}},
30 {{3,1}, {8480,400}},
31 {{3,2}, {9280,480}}
32 };

◆ 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.

34 {
35 {{2,0}, { 6144, 952}},
36 {{2,1}, { 7096, 952}},
37 {{2,2}, { 8048, 1168}},
38 {{3,0}, { 9216, 952}},
39 {{3,1}, {10168, 952}},
40 {{3,2}, {11120, 1168}},
41 {{4,0}, { 3072, 952}},
42 {{4,1}, { 4024, 952}},
43 {{4,2}, { 4976, 1168}},
44 {{5,0}, { 0, 952}},
45 {{5,1}, { 952, 952}},
46 {{5,2}, { 1904, 1168}}
47 };

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