AdcResultDumper.h
Go to the documentation of this file.
1 // AdcResultDumper.h
2 
3 // David Adams
4 // May 2018
5 //
6 // ADC channel tool that calls another ADC channel tool and dumps its result to
7 // the log and then returns that same result.
8 //
9 // Configuration:
10 // LogLevel - 0=silent, 1=init, 2=each event, >2=more
11 // Tool - Name of the called tool.
12 
13 #ifndef AdcResultDumper_H
14 #define AdcResultDumper_H
15 
17 #include "fhiclcpp/ParameterSet.h"
19 #include <memory>
20 
21 class AdcResultDumper : public TpcDataTool {
22 
23 public:
24 
26 
27  ~AdcResultDumper() override =default;
28 
29  // TpcDataTool interface.
30  DataMap view(const AdcChannelData& acd) const override;
31  DataMap update(AdcChannelData& acd) const override;
32  DataMap viewMap(const AdcChannelDataMap& acds) const override;
33  DataMap updateMap(AdcChannelDataMap& acds) const override;
34 
35 private:
36 
37  // Configuration data.
40 
41  std::unique_ptr<TpcDataTool> m_ptool;
42 
43 };
44 
45 
46 #endif
DataMap updateMap(AdcChannelDataMap &acds) const override
std::string string
Definition: nybbler.cc:12
std::string m_Tool
~AdcResultDumper() override=default
DataMap view(const AdcChannelData &acd) const override
std::unique_ptr< TpcDataTool > m_ptool
DataMap update(AdcChannelData &acd) const override
DataMap viewMap(const AdcChannelDataMap &acds) const override
static constexpr double ps
Definition: Units.h:99
AdcResultDumper(fhicl::ParameterSet const &ps)
std::map< AdcChannel, AdcChannelData > AdcChannelDataMap