Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Tool
ChannelStatusServiceTool.h
Go to the documentation of this file.
1
// ChannelStatusServiceTool.h
2
//
3
// David Adams
4
// November 2019
5
//
6
// Tool to return the channel status reported by ChannelStatusService.
7
//
8
// Parameters:
9
// LogLevel - Message logging level (0=none, 1=ctor, 2=each call, ...)
10
11
#ifndef ChannelStatusServiceTool_H
12
#define ChannelStatusServiceTool_H
13
14
#include "
art/Utilities/ToolMacros.h
"
15
#include "
fhiclcpp/ParameterSet.h
"
16
#include "
dunecore/DuneInterface/Tool/IndexMapTool.h
"
17
#include <map>
18
19
namespace
lariov
{
20
class
ChannelStatusProvider
;
21
}
22
23
class
ChannelStatusServiceTool
:
public
IndexMapTool
{
24
25
public
:
26
27
using
Index
=
IndexMapTool::Index
;
28
29
// Ctor.
30
ChannelStatusServiceTool
(
fhicl::ParameterSet
const
&
ps
);
31
32
// Dtor.
33
~
ChannelStatusServiceTool
()
override
=
default
;
34
35
// Return the channel status.
36
Index
get
(
Index
icha)
const
override
;
37
38
private
:
39
40
// Parameters.
41
Index
m_LogLevel
;
42
43
// Derived from configuration.
44
const
lariov::ChannelStatusProvider
*
m_pChannelStatusProvider
;
45
46
};
47
48
49
#endif
ChannelStatusServiceTool
Definition:
ChannelStatusServiceTool.h:23
IndexMapTool
Definition:
IndexMapTool.h:12
ChannelStatusServiceTool::Index
IndexMapTool::Index Index
Definition:
ChannelStatusServiceTool.h:27
IndexMapTool.h
ChannelStatusServiceTool::m_LogLevel
Index m_LogLevel
Definition:
ChannelStatusServiceTool.h:41
ParameterSet.h
ToolMacros.h
ChannelStatusServiceTool::m_pChannelStatusProvider
const lariov::ChannelStatusProvider * m_pChannelStatusProvider
Definition:
ChannelStatusServiceTool.h:44
lariov::ChannelStatusProvider
Class providing information about the quality of channels.
Definition:
ChannelStatusProvider.h:49
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
lariov
Filters for channels, events, etc.
Definition:
ChannelStatusServiceTool.h:19
IndexMapTool::Index
unsigned int Index
Definition:
IndexMapTool.h:16
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11