Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
duneprototypes
duneprototypes
Protodune
singlephase
Tool
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
23
#include "
art/Utilities/ToolMacros.h
"
24
#include "
fhiclcpp/ParameterSet.h
"
25
#include "
dunecore/DuneInterface/Tool/IndexMapTool.h
"
26
27
class
ProtoduneOnlineChannel
:
public
IndexMapTool
{
28
29
public
:
30
31
ProtoduneOnlineChannel
(
const
fhicl::ParameterSet
&
ps
);
32
33
// Tool interface: offine --> online index.
34
Index
get
(
Index
chanOff)
const
override
;
35
36
private
:
37
38
Index
m_LogLevel
;
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
ProtoduneOnlineChannel
Definition:
ProtoduneOnlineChannel.h:27
IndexMapTool
Definition:
IndexMapTool.h:12
ProtoduneOnlineChannel::nwirPlane
Index nwirPlane[4]
Definition:
ProtoduneOnlineChannel.h:40
ProtoduneOnlineChannel::nwirFemb
Index nwirFemb[4]
Definition:
ProtoduneOnlineChannel.h:41
IndexMapTool.h
ProtoduneOnlineChannel::vch
Index vch[40]
Definition:
ProtoduneOnlineChannel.h:43
ParameterSet.h
ProtoduneOnlineChannel::zch
Index zch[48]
Definition:
ProtoduneOnlineChannel.h:44
ToolMacros.h
ProtoduneOnlineChannel::m_LogLevel
Index m_LogLevel
Definition:
ProtoduneOnlineChannel.h:38
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
ProtoduneOnlineChannel::ProtoduneOnlineChannel
ProtoduneOnlineChannel(const fhicl::ParameterSet &ps)
Definition:
ProtoduneOnlineChannel_tool.cc:14
ProtoduneOnlineChannel::uch
Index uch[40]
Definition:
ProtoduneOnlineChannel.h:42
IndexMapTool::Index
unsigned int Index
Definition:
IndexMapTool.h:16
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11