DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DetectorPlaneMap.hpp
Go to the documentation of this file.
1
2#ifndef TRIGGERALGS_PROTODUNEBSMWINDOW_DETECTORPLANEMAP_HPP_
3#define TRIGGERALGS_PROTODUNEBSMWINDOW_DETECTORPLANEMAP_HPP_
4
5#include <string>
6#include <map>
7#include <algorithm>
8
9namespace triggeralgs {
10
11 struct PlaneInfo {
14 };
15
16 // Provides mapping of plane and TPC ID to the first channel
17 // and number of channels on that plane
19 const std::map<std::pair<int,int>, PlaneInfo> pdhd_plane_map = {
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 };
33
34 const std::map<std::pair<int,int>, PlaneInfo> pdvd_plane_map = {
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 };
48
49 // Function to get the plane range map information. The detid controls
50 // whether to use the PD-HD or PD-VD map
51 PlaneInfo get_plane_info(std::string channel_map_name, int detelement, int plane);
52 };
53} // triggeralgs
54#endif
const std::map< std::pair< int, int >, PlaneInfo > pdhd_plane_map
PlaneInfo get_plane_info(std::string channel_map_name, int detelement, int plane)
const std::map< std::pair< int, int >, PlaneInfo > pdvd_plane_map