DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
ProtoDUNEBSMWindow
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
9
namespace
triggeralgs
{
10
11
struct
PlaneInfo
{
12
int
min_channel
;
13
int
n_channels
;
14
};
15
16
// Provides mapping of plane and TPC ID to the first channel
17
// and number of channels on that plane
18
struct
DetectorPlaneMap
{
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
triggeralgs
Definition
AbstractFactory.hpp:18
triggeralgs::DetectorPlaneMap
Definition
DetectorPlaneMap.hpp:18
triggeralgs::DetectorPlaneMap::pdhd_plane_map
const std::map< std::pair< int, int >, PlaneInfo > pdhd_plane_map
Definition
DetectorPlaneMap.hpp:19
triggeralgs::DetectorPlaneMap::get_plane_info
PlaneInfo get_plane_info(std::string channel_map_name, int detelement, int plane)
Definition
DetectorPlaneMap.cpp:6
triggeralgs::DetectorPlaneMap::pdvd_plane_map
const std::map< std::pair< int, int >, PlaneInfo > pdvd_plane_map
Definition
DetectorPlaneMap.hpp:34
triggeralgs::PlaneInfo
Definition
DetectorPlaneMap.hpp:11
triggeralgs::PlaneInfo::min_channel
int min_channel
Definition
DetectorPlaneMap.hpp:12
triggeralgs::PlaneInfo::n_channels
int n_channels
Definition
DetectorPlaneMap.hpp:13
Generated on
for DUNE-DAQ by
1.17.0