32 std::unique_ptr<util::GaussianEliminationAlg>
fGEAlg;
41 fMax = pset.
get<
float>(
"Max", 0.5);
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 get(std::string const &key) const
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
This provides an interface for tools which are tasked with fitting peaks on input waveforms...
QTextStream & bin(QTextStream &s)