Roi2dToAdc.h
Go to the documentation of this file.
1 // Roi2dToAdc.h
2 //
3 // David Adams
4 // February 2021
5 //
6 // Tool to copy 2D ROIs to maps of ADC channel data.
7 //
8 // The samples in the ADC channel data are zeroed and then replaced
9 // with ROI data where present.Updated samples are flagges as signal.
10 //
11 // Configuration:
12 // LogLevel - Logging level: 0=none, 1=init, 2=call, ...
13 //
14 // Returned data map:
15 // r2a_nroi - # ROIS copied
16 // r2a_nchaZeroed - # channels zeroed in ADC data
17 // r2a_nchaFilled - # channels filled in ADC data
18 // r2a_nsamZeroed - # samples zeroed in ADC data
19 // r2a_nsamFilled - # samples filled in ADC data
20 // r2a_nsig - # samples flags as signal
21 
22 #ifndef Roi2dToAdc_H
23 #define Roi2dToAdc_H
24 
26 #include "fhiclcpp/ParameterSet.h"
31 #include <iostream>
32 
34 
35 public:
36 
37  using Index = unsigned int;
38 
40 
41  ~Roi2dToAdc() override;
42 
43  // TpcDataTool methods.
44  DataMap updateTpcData(TpcData& tpd) const override;
45 
46 private:
47 
48  // Configuration data.
50 
51 };
52 
53 
54 #endif
unsigned int Index
Roi2dToAdc(fhicl::ParameterSet const &ps)
static constexpr double ps
Definition: Units.h:99
DataMap updateTpcData(TpcData &tpd) const override
int m_LogLevel
Definition: Roi2dToAdc.h:49
~Roi2dToAdc() override