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 
20 #include "fhiclcpp/ParameterSet.h"
22 #include <map>
23 
25 
26 public:
27 
29  using IndexRangeMap = std::map<Name, IndexRange>;
30 
31  // Ctor.
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.
45 
46 };
47 
48 
49 #endif
FclIndexRangeTool(fhicl::ParameterSet const &ps)
~FclIndexRangeTool() override=default
IndexRange::Name Name
static constexpr double ps
Definition: Units.h:99
IndexRangeMap m_Ranges
std::map< Name, IndexRange > IndexRangeMap
unsigned int Index
Definition: IndexRange.h:27
IndexRange::Index Index