Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
HitFinder
HitFinderTools
IPeakFitter.h
Go to the documentation of this file.
1
///////////////////////////////////////////////////////////////////////
2
///
3
/// \file IPeakFitter.h
4
///
5
/// \brief This provides an interface for tools which are tasked with
6
/// fitting peaks on input waveforms
7
///
8
/// \author T. Usher
9
///
10
////////////////////////////////////////////////////////////////////////
11
12
#ifndef IPeakFitter_H
13
#define IPeakFitter_H
14
15
#include "
fhiclcpp/ParameterSet.h
"
16
#include "
larreco/HitFinder/HitFinderTools/ICandidateHitFinder.h
"
17
18
namespace
reco_tool
19
{
20
class
IPeakFitter
21
{
22
public
:
23
// Define standard art tool interface
24
// virtual void configure(const fhicl::ParameterSet& pset) = 0;
25
26
// Define a structure to contain hits
27
struct
PeakFitParams_t
28
{
29
float
peakCenter
;
30
float
peakCenterError
;
31
float
peakSigma
;
32
float
peakSigmaError
;
33
float
peakAmplitude
;
34
float
peakAmplitudeError
;
35
};
36
37
using
PeakParamsVec
= std::vector<PeakFitParams_t>;
38
virtual
~IPeakFitter
() =
default
;
39
// Get parameters for input candidate peaks
40
virtual
void
findPeakParameters
(
const
std::vector<float>&,
41
const
ICandidateHitFinder::HitCandidateVec
&,
42
PeakParamsVec
&,
43
double
&,
44
int
&)
const
= 0;
45
};
46
}
47
48
#endif
reco_tool
Definition:
CandHitDerivative_tool.cc:20
reco_tool::IPeakFitter::PeakFitParams_t::peakCenter
float peakCenter
Definition:
IPeakFitter.h:29
ParameterSet.h
reco_tool::IPeakFitter::PeakFitParams_t::peakSigma
float peakSigma
Definition:
IPeakFitter.h:31
reco_tool::IPeakFitter::PeakFitParams_t::peakSigmaError
float peakSigmaError
Definition:
IPeakFitter.h:32
reco_tool::IPeakFitter::findPeakParameters
virtual void findPeakParameters(const std::vector< float > &, const ICandidateHitFinder::HitCandidateVec &, PeakParamsVec &, double &, int &) const =0
reco_tool::IPeakFitter::PeakFitParams_t::peakAmplitudeError
float peakAmplitudeError
Definition:
IPeakFitter.h:34
reco_tool::IPeakFitter::PeakParamsVec
std::vector< PeakFitParams_t > PeakParamsVec
Definition:
IPeakFitter.h:37
reco_tool::IPeakFitter::PeakFitParams_t::peakCenterError
float peakCenterError
Definition:
IPeakFitter.h:30
reco_tool::IPeakFitter
Definition:
IPeakFitter.h:20
ICandidateHitFinder.h
This provides an interface for tools which are tasked with finding candidate hits on input waveforms...
reco_tool::IPeakFitter::~IPeakFitter
virtual ~IPeakFitter()=default
reco_tool::IPeakFitter::PeakFitParams_t::peakAmplitude
float peakAmplitude
Definition:
IPeakFitter.h:33
reco_tool::IPeakFitter::PeakFitParams_t
Definition:
IPeakFitter.h:27
reco_tool::ICandidateHitFinder::HitCandidateVec
std::vector< HitCandidate > HitCandidateVec
Definition:
ICandidateHitFinder.h:36
Generated by
1.8.11