AdcSampleScaler.h
Go to the documentation of this file.
1 // AdcSampleScaler.h
2 //
3 // Tool to scale the samples in AdcSampleData.
4 //
5 // Configuration:
6 // LogLevel: 0=silent, 1=init, 2=each event, >2=more
7 // ScaleFactor: Factor by which samples are scaled.
8 // OutputUnit: Value assigned for sampleUnit. If balnk, old value is retained.
9 // InputUnit: If non-blank, then this is compared with sampleUnit and a warning
10 // broadcast if they differ.
11 
12 #ifndef AdcSampleScaler_H
13 #define AdcSampleScaler_H
14 
16 #include "fhiclcpp/ParameterSet.h"
18 
20 
21 public:
22 
24 
25  ~AdcSampleScaler() override =default;
26 
27  DataMap update(AdcChannelData& acd) const override;
28 
29 private:
30 
31  // Configuration data.
36 
37 };
38 
39 
40 #endif
AdcSampleScaler(fhicl::ParameterSet const &ps)
std::string string
Definition: nybbler.cc:12
DataMap update(AdcChannelData &acd) const override
static constexpr double ps
Definition: Units.h:99
std::string m_OutputUnit
~AdcSampleScaler() override=default
std::string m_InputUnit