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);
void calculate(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, const std::vector< double > &inputNoise, std::vector< double > &corrCharge, int soi, int nSample) const
double getCorrection(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, const std::vector< double > &inputNoise, int soi, int nSample) const