8 #include "art/Utilities/ToolMacros.h"
32 std::unique_ptr<util::GaussianEliminationAlg>
fGEAlg;
40 fStepSize = pset.get<
float>(
"StepSize", 0.1);
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);
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.