AdcSampleFiller.h
Go to the documentation of this file.
1 // AdcSampleFiller.h
2 
3 // David Adams
4 // October 2017
5 //
6 // Tool to convert raw ADC values into samples.
7 //
8 // Subtracts the pedestal and records the sample in ADC units.
9 //
10 // If AdcOverflow > AdcUnderflow, then
11 // Underflow flag is set for ADC value at or below AdcUnderflow
12 // Overflow flag is set for ADC value at or above AdcOverflow
13 //
14 // Configuration:
15 // LogLevel - 0=silent, 1=init, 2=each event, >2=more
16 // AdcUnderflow - value for underflow
17 // AdcOverflow - value for underflow
18 //
19 // The output results holds:
20 // int nUnderflow - # ticks at or below AdcUnderflow
21 // int nOverflow - # ticks at or below AdcUnderflow
22 // int nOutOfRange - # ticks below AdcUnderflow or above AdcOverflow
23 //
24 // Reads: raw
25 // Writes: samples, flags
26 
27 #ifndef AdcSampleFiller_H
28 #define AdcSampleFiller_H
29 
31 #include "fhiclcpp/ParameterSet.h"
33 #include <string>
34 #include <vector>
35 
36 class HistogramManager;
37 class TH1;
38 
40 : public TpcDataTool {
41 
42 public:
43 
45 
46  DataMap view(const AdcChannelData& acd) const override;
47 
48  DataMap update(AdcChannelData& acd) const override;
49 
50 private:
51 
52  // Configuration data.
56 
57 };
58 
59 
60 #endif
DataMap update(AdcChannelData &acd) const override
DataMap view(const AdcChannelData &acd) const override
AdcIndex m_AdcOverflow
AdcIndex m_AdcUnderflow
static constexpr double ps
Definition: Units.h:99
unsigned int AdcIndex
Definition: AdcTypes.h:15
AdcSampleFiller(fhicl::ParameterSet const &ps)