20 void PedestalSub::calculate(
const std::vector<double> & inputCharge,
const std::vector<double> & inputPedestal, std::vector<double> & corrCharge)
const {
23 for (
auto i=0;
i<10;
i++) {
24 corrCharge.push_back(inputCharge[
i]-inputPedestal[
i]-bseCorr);
32 for (
auto i=0;
i<10;
i++) {
33 if (
i==4||
i==5)
continue;
35 baseline+=(inputCharge[
i]-inputPedestal[
i]);
double getCorrection(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal) const
void init(int runCond, float threshold, float quantile)
void calculate(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, std::vector< double > &corrCharge) const