Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Tool
FclIndexRangeTool.h
Go to the documentation of this file.
1
// FclIndexRangeTool.h
2
//
3
// David Adams
4
// July 2018
5
//
6
// Fcl-based tool to return IndexRange objects.
7
//
8
// Parameters:
9
// LogLevel - Message logging level (0=none, 1=ctor, 2=each call, ...)
10
// Ranges - Vector fcl blocks each describing a range:
11
// name - name for the range
12
// label - label
13
// begin - first index
14
// end - last+1 index
15
16
#ifndef FclIndexRangeTool_H
17
#define FclIndexRangeTool_H
18
19
#include "
art/Utilities/ToolMacros.h
"
20
#include "
fhiclcpp/ParameterSet.h
"
21
#include "
dunecore/DuneInterface/Tool/IndexRangeTool.h
"
22
#include <map>
23
24
class
FclIndexRangeTool
:
public
IndexRangeTool
{
25
26
public
:
27
28
using
Index
=
IndexRange::Index
;
29
using
IndexRangeMap
= std::map<Name, IndexRange>;
30
31
// Ctor.
32
FclIndexRangeTool
(
fhicl::ParameterSet
const
&
ps
);
33
34
// Dtor.
35
~FclIndexRangeTool
()
override
=
default
;
36
37
// Return a range.
38
IndexRange
get
(
Name
nam)
const
override
;
39
40
private
:
41
42
// Parameters.
43
Index
m_LogLevel
;
44
IndexRangeMap
m_Ranges
;
45
46
};
47
48
49
#endif
FclIndexRangeTool
Definition:
FclIndexRangeTool.h:24
IndexRangeTool.h
ParameterSet.h
ToolMacros.h
FclIndexRangeTool::FclIndexRangeTool
FclIndexRangeTool(fhicl::ParameterSet const &ps)
Definition:
FclIndexRangeTool_tool.cc:17
FclIndexRangeTool::m_LogLevel
Index m_LogLevel
Definition:
FclIndexRangeTool.h:43
FclIndexRangeTool::~FclIndexRangeTool
~FclIndexRangeTool() override=default
IndexRangeTool
Definition:
IndexRangeTool.h:13
IndexRangeTool::Name
IndexRange::Name Name
Definition:
IndexRangeTool.h:17
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
FclIndexRangeTool::m_Ranges
IndexRangeMap m_Ranges
Definition:
FclIndexRangeTool.h:44
FclIndexRangeTool::IndexRangeMap
std::map< Name, IndexRange > IndexRangeMap
Definition:
FclIndexRangeTool.h:29
IndexRange::Index
unsigned int Index
Definition:
IndexRange.h:27
IndexRange
Definition:
IndexRange.h:23
FclIndexRangeTool::Index
IndexRange::Index Index
Definition:
FclIndexRangeTool.h:28
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11