Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
duneprototypes
duneprototypes
Coldbox
vd
Tools
VDColdboxOnlineChannel.h
Go to the documentation of this file.
1
// VDColdboxOnlineChannel.h
2
//
3
// David Adams
4
// November 2021
5
//
6
// Tool that converts a VD coldbox offline channel number
7
// to an online index following the FEMB convention:
8
//
9
// chanOn = 128*KFMB + KFCH
10
// KFCH 8*KASIC + KACH
11
//
12
// KFMB = FEMB number (1-14 in VD coldbox 2021)
13
// KFCH = Channel number in the FEMB (0-127)
14
// KASIC = ASCIC number in the FEMB (0-7)
15
// KACH = Channel number in the ASIC (0-15)
16
//
17
// Configuration parameters:
18
// LogLevel - 0=silent, 1=init messages, 2=message every call
19
20
#ifndef VDColdboxOnlineChannel_H
21
#define VDColdboxOnlineChannel_H
22
23
#include "
art/Utilities/ToolMacros.h
"
24
#include "
fhiclcpp/ParameterSet.h
"
25
#include "
dunecore/DuneInterface/Tool/IndexMapTool.h
"
26
27
class
VDColdboxOnlineChannel
:
public
IndexMapTool
{
28
29
public
:
30
31
using
Name
=
std::string
;
32
33
VDColdboxOnlineChannel
(
const
fhicl::ParameterSet
&
ps
);
34
35
Index
get
(
Index
chanOff)
const
override
;
36
37
private
:
38
39
// Configuration parameters.
40
Index
m_LogLevel
;
41
42
};
43
44
45
#endif
IndexMapTool
Definition:
IndexMapTool.h:12
string
std::string string
Definition:
nybbler.cc:12
VDColdboxOnlineChannel
Definition:
VDColdboxOnlineChannel.h:27
IndexMapTool.h
VDColdboxOnlineChannel::m_LogLevel
Index m_LogLevel
Definition:
VDColdboxOnlineChannel.h:40
ParameterSet.h
ToolMacros.h
VDColdboxOnlineChannel::Name
std::string Name
Definition:
VDColdboxOnlineChannel.h:31
VDColdboxOnlineChannel::VDColdboxOnlineChannel
VDColdboxOnlineChannel(const fhicl::ParameterSet &ps)
Definition:
VDColdboxOnlineChannel_tool.cc:15
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
IndexMapTool::Index
unsigned int Index
Definition:
IndexMapTool.h:16
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11