21 void PedestalSub::calculate(
const std::vector<double> & inputCharge,
const std::vector<double> & inputPedestal, std::vector<double> & corrCharge)
const {
24 for (
auto i=0;
i<10;
i++) {
26 corrCharge.push_back(inputCharge[
i]-inputPedestal[
i]-bseCorr);
29 corrCharge.push_back(inputCharge[
i]-bseCorr);
42 for (
auto i=0;
i<10;
i++) {
43 if (
i==4||
i==5)
continue;
45 baseline+=(inputCharge[
i]-inputPedestal[
i]);
54 for (
auto i=0;
i<10;
i++) {
55 if (
i==4||
i==5)
continue;
56 baseline+=(inputCharge[
i]-inputPedestal[
i]);
61 for (
auto i=0;
i<10;
i++) {
62 if (
i==4||
i==5)
continue;
64 baseline+=(inputCharge[
i]);
double getCorrection(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal) const
void calculate(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, std::vector< double > &corrCharge) const
void init(Method method, int runCond, float threshold, float quantile)