30 std::unique_ptr<util::GaussianEliminationAlg>
fGEAlg;
39 fMax = pset.
get<
float>(
"Max", 0.5);
48 const std::vector<float>& roiSignalVec,
60 if (hitCandidateVec.empty())
return;
62 std::vector<float> meanVec;
63 std::vector<float> sigmaVec;
64 std::vector<float> heightVec;
66 for (
const auto& hitCandidate : hitCandidateVec) {
67 float candMean = hitCandidate.hitCenter;
68 float candSigma = hitCandidate.hitSigma;
69 size_t bin = std::floor(candMean);
71 bin = std::min(bin, roiSignalVec.size() - 1);
74 roiSignalVec[
bin] - (candMean - (float)bin) * (roiSignalVec[
bin] - roiSignalVec[bin + 1]);
76 meanVec.push_back(candMean);
77 sigmaVec.push_back(candSigma);
78 heightVec.push_back(candHeight);
T get(std::string const &key) const
This provides an interface for tools which are tasked with fitting peaks on input waveforms...