#include <PedestalSub.h>
|
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 |
|
| PedestalSub () |
|
| ~PedestalSub () |
|
Definition at line 7 of file PedestalSub.h.
◆ PedestalSub()
PedestalSub::PedestalSub |
( |
| ) |
|
◆ ~PedestalSub()
PedestalSub::~PedestalSub |
( |
| ) |
|
◆ calculate()
void PedestalSub::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 |
◆ getCorrection()
double PedestalSub::getCorrection |
( |
const std::vector< double > & |
inputCharge, |
|
|
const std::vector< double > & |
inputPedestal, |
|
|
const std::vector< double > & |
inputNoise, |
|
|
int |
soi, |
|
|
int |
nSample |
|
) |
| const |
Definition at line 24 of file PedestalSub.cc.
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);
References mps_fire::i.
Referenced by calculate().
double getCorrection(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, const std::vector< double > &inputNoise, int soi, int nSample) const