reco_tool::PeakFitterGaussElimination::PeakFitterGaussElimination |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
reco_tool::PeakFitterGaussElimination::~PeakFitterGaussElimination |
( |
| ) |
|
Implements reco_tool::IPeakFitter.
Definition at line 66 of file PeakFitterGaussElimination_tool.cc.
References bin, DEFINE_ART_CLASS_TOOL, and min.
78 if (hitCandidateVec.empty())
return;
80 std::vector<float> meanVec;
81 std::vector<float> sigmaVec;
82 std::vector<float> heightVec;
84 for(
const auto& hitCandidate : hitCandidateVec)
86 float candMean = hitCandidate.hitCenter;
87 float candSigma = hitCandidate.hitSigma;
88 size_t bin = std::floor(candMean);
90 bin =
std::min(bin, roiSignalVec.size() - 1);
92 float candHeight = roiSignalVec[
bin] - (candMean-(float)bin)*(roiSignalVec[
bin]-roiSignalVec[bin+1]);
94 meanVec.push_back(candMean);
95 sigmaVec.push_back(candSigma);
96 heightVec.push_back(candHeight);
float reco_tool::PeakFitterGaussElimination::fMax |
|
private |
float reco_tool::PeakFitterGaussElimination::fStepSize |
|
private |
float reco_tool::IPeakFitter::peakAmplitude |
|
inherited |
float reco_tool::IPeakFitter::peakAmplitudeError |
|
inherited |
float reco_tool::IPeakFitter::peakCenterError |
|
inherited |
float reco_tool::IPeakFitter::peakSigma |
|
inherited |
float reco_tool::IPeakFitter::peakSigmaError |
|
inherited |
The documentation for this class was generated from the following file: