11 #include "cetlib_except/exception.h" 40 std::unique_ptr<util::GaussianEliminationAlg>
fGEAlg;
58 fMax = pset.
get<
float>(
"Max", 0.5);
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);
T get(std::string const &key) const
This provides an interface for tools which are tasked with fitting peaks on input waveforms...