41 double ped_mean = wf.front();
44 for(
auto &v : mean_v ) v = ped_mean;
45 for(
auto &v : sigma_v ) v = ped_sigma;
double Mean(size_t i) const
Getter of the pedestal mean value.
std::vector< double > PedestalSigma_t
PedAlgoRmsSlider _beamgatealgo
unsigned int _beam_gate_samples
bool Evaluate(const pmtana::Waveform_t &wf)
Method to compute a pedestal.
double Sigma(size_t i) const
Getter of the pedestal standard deviation.
T get(std::string const &key) const
std::vector< short > Waveform_t
Class definition file of PedAlgoUB.
bool ComputePedestal(const pmtana::Waveform_t &wf, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v)
Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index...
PedAlgoUB(const std::string name="PedCD")
Default constructor.
std::vector< double > PedestalMean_t