DuneAdcSignalFinder.h
Go to the documentation of this file.
1 // DuneAdcSignalFinder.h
2 
3 // David Adams
4 // May 2018
5 //
6 // Tool to find and flag signal regions in ADC data using the
7 // algorithm developed for the 35t prototype TPC. An unpadded
8 // ROI starts for any signal above NSigmaStart sigma above the noise
9 // and continues until the level falls below NSigmaEnd sigma.
10 // NSigmaEnd was fixed to 1.0 in the original code.
11 //
12 // Configuration:
13 // LogLevel - usual log level
14 // NoiseSigma - Assumed noise level (sample units).
15 // If <=0, AdcChannelData::sampleNoise is used.
16 // NSigmaStart - Level in sigma at which an unpadded signal starts.
17 // NSigmaEnd - Level in sigma at which an unpadded signal ends.
18 // TicksBefore - Number of ticks to retain before unpadded region.
19 // TicksAfter - Number of ticks to retain after unpadded region.
20 //
21 // The output results holds:
22 // nroi - # ROIs found
23 
24 #ifndef DuneAdcSignalFinder_H
25 #define DuneAdcSignalFinder_H
26 
28 #include "fhiclcpp/ParameterSet.h"
30 #include <string>
31 #include <vector>
32 
34 : public TpcDataTool {
35 
36 public:
37 
39 
40  DataMap view(const AdcChannelData& acd) const override;
41 
42  DataMap update(AdcChannelData& acd) const override;
43 
44 private:
45 
46  using Name = std::string;
47 
48  // Configuration data.
55 
56 };
57 
58 
59 #endif
std::string string
Definition: nybbler.cc:12
float AdcSignal
Definition: AdcTypes.h:21
DuneAdcSignalFinder(fhicl::ParameterSet const &ps)
static constexpr double ps
Definition: Units.h:99
unsigned int AdcIndex
Definition: AdcTypes.h:15
DataMap view(const AdcChannelData &acd) const override
DataMap update(AdcChannelData &acd) const override