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 
20 #include "fhiclcpp/ParameterSet.h"
22 #include <map>
23 
25 
26 public:
27 
29  using IndexVector = std::vector<Index>;
30  using IndexVectorVector = std::vector<IndexVector>;
31  using IndexVectorMap = std::map<Index, IndexVector>;
32 
33  // Ctor.
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.
48 
49 };
50 
51 
52 #endif
std::map< Index, IndexVector > IndexVectorMap
FclIndexVectorMapTool(fhicl::ParameterSet const &ps)
IndexVectorMapTool::Index Index
std::vector< Index > IndexVector
~FclIndexVectorMapTool() override=default
static constexpr double ps
Definition: Units.h:99
IndexVectorVector m_Entries
std::vector< IndexVector > IndexVectorVector