ChannelStatusConfigTool.h
Go to the documentation of this file.
1 // ChannelStatusConfigTool.h
2 //
3 // David Adams
4 // April 2020
5 //
6 // Tool to return channel status from fcl configuration that
7 // is eaily copied from that used in the channel status service.
8 // Example configuration:
9 //
10 // cstool.IndexVectors: [
11 // [],
12 // @local::services.ChannelStatusService.BadChannels,
13 // @local::services.ChannelStatusService.NoisyChannels,
14 // myListOfOtherBadChannels
15 // ]
16 //
17 // Parameters:
18 // LogLevel - Message logging level:
19 // 0: none
20 // 1: show config
21 // 2: check for duplicates
22 // DefaultIndex - Index for values that appear in none of the index vector lists.
23 // IndexVectors - Vector of index vectors. Values for the ith entry
24 // are mapped to index i.
25 //
26 // A channel appearing in multiple lists is assigned to the first in which
27 // it appears.
28 
29 #ifndef ChannelStatusConfigTool_H
30 #define ChannelStatusConfigTool_H
31 
33 #include "fhiclcpp/ParameterSet.h"
35 #include <vector>
36 
38 
39 public:
40 
42  using IndexVector = std::vector<Index>;
43  using IndexVectorVector = std::vector<IndexVector>;
44 
45  // Ctor.
47 
48  // Dtor.
49  ~ChannelStatusConfigTool() override =default;
50 
51  // Return the channel status.
52  Index get(Index icha) const override;
53 
54 private:
55 
56  // Parameters.
60 
61  // Derived from configuration.
63 
64 };
65 
66 
67 #endif
std::vector< IndexVector > IndexVectorVector
ChannelStatusConfigTool(fhicl::ParameterSet const &ps)
~ChannelStatusConfigTool() override=default
static constexpr double ps
Definition: Units.h:99
unsigned int Index
Definition: IndexMapTool.h:16
std::vector< Index > IndexVector