Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Tool
FclIndexVectorMapTool.h
Go to the documentation of this file.
1
// FclIndexVectorMapTool.h
2
//
3
// David Adams
4
// July 2018
5
//
6
// Fcl-based tool to return Index vectors indexed by an index, e.g.
7
// event lists indexed by run.
8
//
9
// Parameters:
10
// LogLevel - Message logging level (0=none, 1=ctor, 2=each call, ...)
11
// Entries - vectors of indices in format [RRR, EE1, EE2, ...]
12
// RRR is the map index
13
// [EE1, EE2, ...] is the mapped vector
14
// If a map index appeared ealier, the new entries are appended.
15
16
#ifndef FclIndexVectorMapTool_H
17
#define FclIndexVectorMapTool_H
18
19
#include "
art/Utilities/ToolMacros.h
"
20
#include "
fhiclcpp/ParameterSet.h
"
21
#include "
dunecore/DuneInterface/Tool/IndexVectorMapTool.h
"
22
#include <map>
23
24
class
FclIndexVectorMapTool
:
public
IndexVectorMapTool
{
25
26
public
:
27
28
using
Index
=
IndexVectorMapTool::Index
;
29
using
IndexVector
= std::vector<Index>;
30
using
IndexVectorVector
= std::vector<IndexVector>;
31
using
IndexVectorMap
= std::map<Index, IndexVector>;
32
33
// Ctor.
34
FclIndexVectorMapTool
(
fhicl::ParameterSet
const
&
ps
);
35
36
// Dtor.
37
~FclIndexVectorMapTool
()
override
=
default
;
38
39
// Return the vector for an index.
40
IndexVector
get
(
Index
ient)
const
override
;
41
42
private
:
43
44
// Parameters.
45
Index
m_LogLevel
;
46
IndexVectorVector
m_Entries
;
47
IndexVectorMap
m_entryMap
;
48
49
};
50
51
52
#endif
FclIndexVectorMapTool::IndexVectorMap
std::map< Index, IndexVector > IndexVectorMap
Definition:
FclIndexVectorMapTool.h:31
FclIndexVectorMapTool
Definition:
FclIndexVectorMapTool.h:24
FclIndexVectorMapTool::FclIndexVectorMapTool
FclIndexVectorMapTool(fhicl::ParameterSet const &ps)
Definition:
FclIndexVectorMapTool_tool.cc:17
IndexVectorMapTool::Index
unsigned int Index
Definition:
IndexVectorMapTool.h:19
ParameterSet.h
FclIndexVectorMapTool::Index
IndexVectorMapTool::Index Index
Definition:
FclIndexVectorMapTool.h:28
FclIndexVectorMapTool::m_entryMap
IndexVectorMap m_entryMap
Definition:
FclIndexVectorMapTool.h:47
ToolMacros.h
FclIndexVectorMapTool::IndexVector
std::vector< Index > IndexVector
Definition:
FclIndexVectorMapTool.h:29
IndexVectorMapTool.h
FclIndexVectorMapTool::~FclIndexVectorMapTool
~FclIndexVectorMapTool() override=default
IndexVectorMapTool
Definition:
IndexVectorMapTool.h:15
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
FclIndexVectorMapTool::m_LogLevel
Index m_LogLevel
Definition:
FclIndexVectorMapTool.h:45
FclIndexVectorMapTool::m_Entries
IndexVectorVector m_Entries
Definition:
FclIndexVectorMapTool.h:46
FclIndexVectorMapTool::IndexVectorVector
std::vector< IndexVector > IndexVectorVector
Definition:
FclIndexVectorMapTool.h:30
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11