RunningSumTPFinderPass4.h
Go to the documentation of this file.
1 #ifndef RUNNINGSUMTPFINDERPASS4_H
2 #define RUNNINGSUMTPFINDERPASS4_H
3 
7 
9 
11  public:
13  // The compiler-generated destructor is fine for non-base
14  // classes without bare pointers or other resource use.
15 
16  virtual std::vector<RunningSumTPFinderTool::Hit>
17  findHits(const std::vector<unsigned int>& channel_numbers,
18  const std::vector<std::vector<short>>& collection_samples);
19 
20 
21  protected:
22  std::vector<short> downSample (const std::vector<short>& orig);
23  std::vector<short> findPedestal(const std::vector<short>& orig);
24  std::vector<short> filter (const std::vector<short>& orig);
25  std::vector<short> runSum (const std::vector<short>& orig);
26  void hitFinding(const std::vector<short>& waveform,
27  const std::vector<short>& iqr,
28  std::vector<RunningSumTPFinderTool::Hit>& hits,
29  int channel);
30 
37  unsigned int m_downsampleFactor;
38  std::vector<short> m_filterTaps;
41 };
42 
43 #endif
struct vector vector
virtual std::vector< RunningSumTPFinderTool::Hit > findHits(const std::vector< unsigned int > &channel_numbers, const std::vector< std::vector< short >> &collection_samples)
uint8_t channel
Definition: CRTFragment.hh:201
std::vector< short > findPedestal(const std::vector< short > &orig)
std::vector< short > downSample(const std::vector< short > &orig)
std::vector< short > m_filterTaps
void hitFinding(const std::vector< short > &waveform, const std::vector< short > &iqr, std::vector< RunningSumTPFinderTool::Hit > &hits, int channel)
p
Definition: test.py:223
RunningSumTPFinderPass4(fhicl::ParameterSet const &p)
std::vector< short > runSum(const std::vector< short > &orig)
std::vector< short > filter(const std::vector< short > &orig)