LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "PMTPedestalBase.h"
Public Member Functions | |
PMTPedestalBase (std::string name="noname") | |
Default constructor. More... | |
virtual | ~PMTPedestalBase () |
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... | |
double | Sigma (size_t i) const |
Getter of the pedestal standard deviation. More... | |
const pmtana::PedestalMean_t & | Mean () const |
Getter of the pedestal mean value. More... | |
const pmtana::PedestalSigma_t & | Sigma () const |
Getter of the pedestal standard deviation. More... | |
Protected Member Functions | |
virtual bool | ComputePedestal (const ::pmtana::Waveform_t &wf, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v)=0 |
Private Attributes | |
std::string | _name |
Name. More... | |
pmtana::PedestalMean_t | _mean_v |
A variable holder for pedestal mean value. More... | |
pmtana::PedestalSigma_t | _sigma_v |
A variable holder for pedestal standard deviation. More... | |
A base class for pedestal calculation
Definition at line 27 of file PMTPedestalBase.h.
pmtana::PMTPedestalBase::PMTPedestalBase | ( | std::string | name = "noname" | ) |
Default constructor.
Definition at line 13 of file PMTPedestalBase.cxx.
|
virtual |
|
protectedpure virtual |
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 Evaluate().
bool pmtana::PMTPedestalBase::Evaluate | ( | const pmtana::Waveform_t & | wf | ) |
Method to compute a pedestal.
Definition at line 30 of file PMTPedestalBase.cxx.
References _mean_v, _sigma_v, and ComputePedestal().
Referenced by pmtana::PedAlgoUB::ComputePedestal(), and pmtana::PulseRecoManager::Reconstruct().
double pmtana::PMTPedestalBase::Mean | ( | size_t | i | ) | const |
Getter of the pedestal mean value.
Definition at line 50 of file PMTPedestalBase.cxx.
References _mean_v.
Referenced by pmtana::PedAlgoUB::ComputePedestal(), and pmtana::PulseRecoManager::Reconstruct().
const PedestalMean_t & pmtana::PMTPedestalBase::Mean | ( | ) | const |
Getter of the pedestal mean value.
Definition at line 74 of file PMTPedestalBase.cxx.
References _mean_v.
const std::string & pmtana::PMTPedestalBase::Name | ( | ) | const |
double pmtana::PMTPedestalBase::Sigma | ( | size_t | i | ) | const |
Getter of the pedestal standard deviation.
Definition at line 62 of file PMTPedestalBase.cxx.
References _sigma_v.
Referenced by pmtana::PedAlgoUB::ComputePedestal(), and pmtana::PulseRecoManager::Reconstruct().
const PedestalSigma_t & pmtana::PMTPedestalBase::Sigma | ( | ) | const |
Getter of the pedestal standard deviation.
Definition at line 81 of file PMTPedestalBase.cxx.
References _sigma_v.
|
private |
A variable holder for pedestal mean value.
Definition at line 68 of file PMTPedestalBase.h.
Referenced by Evaluate(), and Mean().
|
private |
|
private |
A variable holder for pedestal standard deviation.
Definition at line 71 of file PMTPedestalBase.h.
Referenced by Evaluate(), and Sigma().