LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
IPeakFitter.h
Go to the documentation of this file.
1 
12 #ifndef IPeakFitter_H
13 #define IPeakFitter_H
14 
16 
17 #include <vector>
18 
19 namespace reco_tool {
20  class IPeakFitter {
21  public:
22  // Define standard art tool interface
23 
24  // Define a structure to contain hits
25  struct PeakFitParams_t {
26  float peakCenter;
28  float peakSigma;
32  };
33 
34  using PeakParamsVec = std::vector<PeakFitParams_t>;
35  virtual ~IPeakFitter() = default;
36  // Get parameters for input candidate peaks
37  virtual void findPeakParameters(const std::vector<float>&,
40  double&,
41  int&) const = 0;
42  };
43 }
44 
45 #endif
virtual void findPeakParameters(const std::vector< float > &, const ICandidateHitFinder::HitCandidateVec &, PeakParamsVec &, double &, int &) const =0
std::vector< PeakFitParams_t > PeakParamsVec
Definition: IPeakFitter.h:34
This provides an interface for tools which are tasked with finding candidate hits on input waveforms...
virtual ~IPeakFitter()=default
std::vector< HitCandidate > HitCandidateVec