7 #ifndef larana_OPTICALDETECTOR_PEDALGOUB_CXX 8 #define larana_OPTICALDETECTOR_PEDALGOUB_CXX 26 const std::string name)
49 double ped_mean = wf.front();
52 for(
auto &v : mean_v ) v = ped_mean;
53 for(
auto &v : sigma_v ) v = ped_sigma;
Class def header for exception classes in OpticalDetector package.
double Mean(size_t i) const
Getter of the pedestal mean value.
std::vector< double > PedestalSigma_t
PedAlgoRmsSlider _beamgatealgo
virtual ~PedAlgoUB()
Default destructor.
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