AdcKeepAllSignalFinder.h
Go to the documentation of this file.
1 // AdcKeepAllSignalFinder.h
2 
3 // David Adams
4 // October 2017
5 //
6 // Tool to find and flag signal regions in ADC data.
7 //
8 // For each tick with sample above Threshold and/or below -Threshold, the region
9 // [bin-BinsBefore, bin+binsAfter] is flagged as signal.
10 // An ROI is created for each range of contiguous signals.
11 //
12 // Configuration:
13 // LogLevel - 0=silent, 1=init, 2=each event, >2=more
14 // DataPath - Location of the data view ("" for top)
15 //
16 // The output results holds the status and
17 // nroi - # rois (always 1)
18 
19 #ifndef AdcKeepAllSignalFinder_H
20 #define AdcKeepAllSignalFinder_H
21 
23 #include "fhiclcpp/ParameterSet.h"
25 #include <string>
26 #include <vector>
27 
29 : public TpcDataTool {
30 
31 public:
32 
34 
35  DataMap view(const AdcChannelData& acd) const override;
36 
37  DataMap update(AdcChannelData& acd) const override;
38 
39 private:
40 
41  using Name = std::string;
42 
43  // Configuration data.
46 
47 };
48 
49 
50 #endif
std::string string
Definition: nybbler.cc:12
static constexpr double ps
Definition: Units.h:99
DataMap update(AdcChannelData &acd) const override
AdcKeepAllSignalFinder(fhicl::ParameterSet const &ps)
DataMap view(const AdcChannelData &acd) const override