All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RegionAboveThresholdFinder.h
Go to the documentation of this file.
1 #ifndef REGIONABOVETHRESHOLDFINDER_H
2 #define REGIONABOVETHRESHOLDFINDER_H
3 
4 /*!
5  * Title: RegionAboveThresholdFinder Class
6  * Author: Wes Ketchum (wketchum@lanl.gov)
7  *
8  * Description: Class that finds a region above threshold in which to do
9  * hit-finding.
10  *
11  * Input: Vector of floats (like a recob::Wire vector)
12  * Output: Vector of begin times, and vector of end times.
13 */
14 
15 #include <vector>
16 
17 namespace hit{
18 
20 
21  public:
22  RegionAboveThresholdFinder(float threshold) { fThreshold = threshold; }
23 
24  void FillStartAndEndTicks(const std::vector<float>& signal,
25  std::vector<unsigned int>& start_ticks,
26  std::vector<unsigned int>& end_ticks);
27 
28  private:
29 
30  float fThreshold;
31 
32  };
33 
34 }
35 
36 #endif
process_name hit
Definition: cheaterreco.fcl:51
void FillStartAndEndTicks(const std::vector< float > &signal, std::vector< unsigned int > &start_ticks, std::vector< unsigned int > &end_ticks)