13 const std::vector<double>& inputPedestal,
14 const std::vector<double>& inputNoise,
15 std::vector<double>& corrCharge,
19 for (
auto i = 0;
i < nTS;
i++) {
20 corrCharge.push_back(inputCharge[
i] - inputPedestal[
i] - bseCorr);
25 const std::vector<double>& inputPedestal,
26 const std::vector<double>& inputNoise,
31 for (
auto i = 0;
i < nTS;
i++) {
32 if (
i == soi ||
i == (soi + 1))
34 if ((inputCharge[
i] - inputPedestal[
i]) < 3 * inputNoise[
i]) {
35 baseline += (inputCharge[
i] - inputPedestal[
i]);
37 baseline += 3 * inputNoise[
i];
40 baseline /= (nTS - 2);