RunningSumTPFinderPass2.h
Go to the documentation of this file.
1 #ifndef RUNNINGSUMTPFINDERPASS2_H
2 #define RUNNINGSUMTPFINDERPASS2_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  void hitFinding(const std::vector<short>& waveform, std::vector<RunningSumTPFinderTool::Hit>& hits, int channel);
26 
27  unsigned int m_threshold;
34  unsigned int m_downsampleFactor;
35  std::vector<short> m_filterTaps;
37 };
38 
39 #endif
std::vector< short > filter(const std::vector< short > &orig)
struct vector vector
RunningSumTPFinderPass2(fhicl::ParameterSet const &p)
void hitFinding(const std::vector< short > &waveform, std::vector< RunningSumTPFinderTool::Hit > &hits, int channel)
uint8_t channel
Definition: CRTFragment.hh:201
std::vector< short > downSample(const std::vector< short > &orig)
p
Definition: test.py:223
std::vector< short > findPedestal(const std::vector< short > &orig)
virtual std::vector< RunningSumTPFinderTool::Hit > findHits(const std::vector< unsigned int > &channel_numbers, const std::vector< std::vector< short >> &collection_samples)
std::vector< short > m_filterTaps