AdcChannelDumper.h
Go to the documentation of this file.
1 // AdcChannelDumper.h
2 
3 // David Adams
4 // August 2017
5 //
6 // Tool to dump information about an ADC channel.
7 //
8 // Configuration:
9 // FileName: Name of the output file. Blank for std out.
10 // Prefix: Prefix for each line.
11 // NewFile: If true, a new file is created for each dump.
12 // MaxSample: Maximum # sample values to display. -1 for all.
13 
14 #ifndef AdcChannelDumper_H
15 #define AdcChannelDumper_H
16 
18 #include "fhiclcpp/ParameterSet.h"
20 #include <iostream>
21 
23 
24 public:
25 
27 
28  ~AdcChannelDumper() override;
29 
30  DataMap view(const AdcChannelData& acd) const override;
31  bool updateWithView() const override { return true; }
32 
33 private:
34 
35  // Configuration data.
38  bool m_NewFile;
40 
41  // Output stream.
42  std::ostream* m_pout;
43 
44 };
45 
46 
47 #endif
DataMap view(const AdcChannelData &acd) const override
std::string m_Prefix
std::string string
Definition: nybbler.cc:12
bool updateWithView() const override
std::string m_FileName
AdcChannelDumper(fhicl::ParameterSet const &ps)
static constexpr double ps
Definition: Units.h:99
std::ostream * m_pout