RMSHitFinderAlg.h
Go to the documentation of this file.
1 #ifndef RMSHITFINDERALG_H
2 #define RMSHITFINDERALG_H
3 
5 
6 #include "TMath.h"
7 
9 
10 #include <memory>
11 #include <algorithm>
12 #include <map>
13 
14 namespace dune {
16 public:
18 
19  void reconfigure(fhicl::ParameterSet const& p);
20 
22 
23  void SetSearchTicks(int s, int e) { fSearchTickStart = s; fSearchTickEnd = e; }
24 
25  void FilterWaveform(std::vector<float> wf, std::vector<float> & fwf);
26  void RobustRMSBase(std::vector<float> wf, float & bl, float & r);
27 
28 private:
29  void FindPulses(std::vector<float> wf, float bl, float r, std::vector<std::pair<int,int> > & pulse_ends);
30  void MergeHits(std::vector<std::pair<int,int> > & pulse_ends);
31 
33  float fFilterWidth;
38  };
39 
40 }
41 
42 #endif
void reconfigure(fhicl::ParameterSet const &p)
void FilterWaveform(std::vector< float > wf, std::vector< float > &fwf)
RMSHitFinderAlg(fhicl::ParameterSet const &p)
void RobustRMSBase(std::vector< float > wf, float &bl, float &r)
struct vector vector
void FindPulses(std::vector< float > wf, float bl, float r, std::vector< std::pair< int, int > > &pulse_ends)
const double e
void FindHits(dune::ChannelInformation &chan)
p
Definition: test.py:223
void MergeHits(std::vector< std::pair< int, int > > &pulse_ends)
void SetSearchTicks(int s, int e)
static QCString * s
Definition: config.cpp:1042