reco_tool::PeakFitterGaussElimination::PeakFitterGaussElimination |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
Implements reco_tool::IPeakFitter.
Definition at line 49 of file PeakFitterGaussElimination_tool.cc.
61 if (hitCandidateVec.empty())
return;
63 std::vector<float> meanVec;
64 std::vector<float> sigmaVec;
65 std::vector<float> heightVec;
67 for(
const auto& hitCandidate : hitCandidateVec)
69 float candMean = hitCandidate.hitCenter;
70 float candSigma = hitCandidate.hitSigma;
71 size_t bin = std::floor(candMean);
73 bin =
std::min(bin, roiSignalVec.size() - 1);
75 float candHeight = roiSignalVec[
bin] - (candMean-(
float)bin)*(roiSignalVec[
bin]-roiSignalVec[bin+1]);
77 meanVec.push_back(candMean);
78 sigmaVec.push_back(candSigma);
79 heightVec.push_back(candHeight);
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
QTextStream & bin(QTextStream &s)
float reco_tool::PeakFitterGaussElimination::fMax |
|
private |
float reco_tool::PeakFitterGaussElimination::fStepSize |
|
private |
The documentation for this class was generated from the following file: