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