LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PedAlgoRollingMean.h"
Public Member Functions | |
PedAlgoRollingMean (const std::string name="PedRollingMean") | |
Default constructor. More... | |
PedAlgoRollingMean (const fhicl::ParameterSet &pset, const std::string name="PedRollingMean") | |
Alternative ctor. More... | |
virtual | ~PedAlgoRollingMean () |
Default destructor. More... | |
const std::string & | Name () const |
Name getter. More... | |
bool | Evaluate (const pmtana::Waveform_t &wf) |
Method to compute a pedestal. More... | |
double | Mean (size_t i) const |
Getter of the pedestal mean value. More... | |
const pmtana::PedestalMean_t & | Mean () const |
Getter of the pedestal mean value. More... | |
double | Sigma (size_t i) const |
Getter of the pedestal standard deviation. More... | |
const pmtana::PedestalSigma_t & | Sigma () const |
Getter of the pedestal standard deviation. More... | |
Protected Member Functions | |
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. More... | |
virtual bool | ComputePedestal (const ::pmtana::Waveform_t &wf, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v)=0 |
Private Attributes | |
size_t | _sample_size |
float | _max_sigma |
float | _ped_range_max |
float | _ped_range_min |
double | _threshold |
double | _diff_threshold |
double | _diff_adc_count |
int | _n_presamples |
A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
Definition at line 30 of file PedAlgoRollingMean.h.
pmtana::PedAlgoRollingMean::PedAlgoRollingMean | ( | const std::string | name = "PedRollingMean" | ) |
Default constructor.
Definition at line 18 of file PedAlgoRollingMean.cxx.
pmtana::PedAlgoRollingMean::PedAlgoRollingMean | ( | const fhicl::ParameterSet & | pset, |
const std::string | name = "PedRollingMean" |
||
) |
Alternative ctor.
Definition at line 26 of file PedAlgoRollingMean.cxx.
References _diff_adc_count, _diff_threshold, _max_sigma, _n_presamples, _ped_range_max, _ped_range_min, _sample_size, _threshold, and fhicl::ParameterSet::get().
|
virtual |
|
protected |
Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index.
Definition at line 57 of file PedAlgoRollingMean.cxx.
References _diff_adc_count, _diff_threshold, _max_sigma, _n_presamples, _ped_range_max, _sample_size, _threshold, pmtana::BinnedMaxOccurrence(), pmtana::edge_aware_mean(), pmtana::mean(), and pmtana::std().
|
protectedpure virtualinherited |
Method to compute pedestal: mean and sigma array should be filled per ADC. The length of each array is guaranteed to be same.
Referenced by pmtana::PMTPedestalBase::Evaluate().
|
inherited |
Method to compute a pedestal.
Definition at line 33 of file PMTPedestalBase.cxx.
References pmtana::PMTPedestalBase::_mean_v, pmtana::PMTPedestalBase::_sigma_v, and pmtana::PMTPedestalBase::ComputePedestal().
Referenced by pmtana::PedAlgoUB::ComputePedestal(), and pmtana::PulseRecoManager::Reconstruct().
|
inherited |
Getter of the pedestal mean value.
Definition at line 53 of file PMTPedestalBase.cxx.
References pmtana::PMTPedestalBase::_mean_v, and ss.
Referenced by pmtana::PedAlgoUB::ComputePedestal(), and pmtana::PulseRecoManager::Reconstruct().
|
inherited |
Getter of the pedestal mean value.
Definition at line 77 of file PMTPedestalBase.cxx.
References pmtana::PMTPedestalBase::_mean_v.
|
inherited |
Name getter.
Definition at line 28 of file PMTPedestalBase.cxx.
References pmtana::PMTPedestalBase::_name.
|
inherited |
Getter of the pedestal standard deviation.
Definition at line 65 of file PMTPedestalBase.cxx.
References pmtana::PMTPedestalBase::_sigma_v, and ss.
Referenced by pmtana::PedAlgoUB::ComputePedestal(), and pmtana::PulseRecoManager::Reconstruct().
|
inherited |
Getter of the pedestal standard deviation.
Definition at line 82 of file PMTPedestalBase.cxx.
References pmtana::PMTPedestalBase::_sigma_v.
|
private |
Definition at line 62 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().
|
private |
Definition at line 61 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().
|
private |
Definition at line 54 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().
|
private |
Definition at line 64 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().
|
private |
Definition at line 55 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().
|
private |
Definition at line 56 of file PedAlgoRollingMean.h.
Referenced by PedAlgoRollingMean().
|
private |
Definition at line 53 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().
|
private |
Definition at line 60 of file PedAlgoRollingMean.h.
Referenced by ComputePedestal(), and PedAlgoRollingMean().