LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
IPeakFitter.h
Go to the documentation of this file.
1 
12 #ifndef IPeakFitter_H
13 #define IPeakFitter_H
14 
15 #include "fhiclcpp/ParameterSet.h"
17 
18 namespace reco_tool
19 {
21  {
22  public:
23  virtual ~IPeakFitter() noexcept = default;
24 
25  // Define standard art tool interface
26  virtual void configure(const fhicl::ParameterSet& pset) = 0;
27 
28  // Define a structure to contain hits
29  using PeakFitParams_t = struct PeakFitParams
30  {
31  float peakCenter;
33  float peakSigma;
37  };
38 
39  using PeakParamsVec = std::vector<PeakFitParams_t>;
40 
41  // Get parameters for input candidate peaks
42  virtual void findPeakParameters(const std::vector<float>&,
45  double&,
46  int&) const = 0;
47  };
48 }
49 
50 #endif
std::vector< HitCandidate_t > HitCandidateVec
struct PeakFitParams{float peakCenter PeakFitParams_t
Definition: IPeakFitter.h:31
virtual void findPeakParameters(const std::vector< float > &, const ICandidateHitFinder::HitCandidateVec &, PeakParamsVec &, double &, int &) const =0
std::vector< PeakFitParams_t > PeakParamsVec
Definition: IPeakFitter.h:39
This provides an interface for tools which are tasked with finding candidate hits on input waveforms...
virtual void configure(const fhicl::ParameterSet &pset)=0
virtual ~IPeakFitter() noexcept=default