ProtoduneOnlineChannel.h
Go to the documentation of this file.
1 // ProtoduneOnlineChannel.h
2 //
3 // David Adams
4 // August 2018
5 //
6 // Tool that converts a protodune SP offline channel number
7 // to an online number with the convention that
8 // chanOn = 128*IFMB + ICHF
9 //
10 // IFMB is a global FEMB number 6*IAPA + IFMB_APA
11 // where IAPA is the offline APA/TPS number and IFMB_APA
12 // is the geometric FEMB number in the APA running clockwise
13 // from beam left upstream. This is the online numbering convention.
14 // See https://wiki.dunescience.org/wiki/ProtoDUNE_geometry.
15 //
16 // ICHF is the channel number in the FEMB 8*ASIC + ICHA_ASIC.
17 //
18 // The mapping is hardwired here.
19 
20 #ifndef ProtoduneOnlineChannel_H
21 #define ProtoduneOnlineChannel_H
22 
24 #include "fhiclcpp/ParameterSet.h"
26 
28 
29 public:
30 
32 
33  // Tool interface: offine --> online index.
34  Index get(Index chanOff) const override;
35 
36 private:
37 
39 
40  Index nwirPlane[4] = {800, 800, 480, 480};
41  Index nwirFemb[4] = {40, 40, 48, 48};
42  Index uch[40];
43  Index vch[40];
44  Index zch[48];
45 
46 };
47 
48 
49 #endif
static constexpr double ps
Definition: Units.h:99
ProtoduneOnlineChannel(const fhicl::ParameterSet &ps)
unsigned int Index
Definition: IndexMapTool.h:16