#include <PedAlgoEdges.h>
Public Types | |
enum | PED_METHOD { kHEAD = 0, kTAIL, kBOTH } |
enum to define algorithm options More... | |
Public Member Functions | |
PedAlgoEdges (const std::string name="PedEdges") | |
Default constructor. More... | |
PedAlgoEdges (const fhicl::ParameterSet &pset, const std::string name="PedEdges") | |
Alternative ctor. More... | |
Public Member Functions inherited from pmtana::PMTPedestalBase | |
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 | |
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... | |
Protected Member Functions inherited from pmtana::PMTPedestalBase | |
virtual bool | ComputePedestal (const ::pmtana::Waveform_t &wf, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v)=0 |
Private Attributes | |
size_t | _nsample_front |
ADC sample in front to be usedMore... | |
size_t | _nsample_tail |
ADC sample in tail to be usedMore... | |
PED_METHOD | _method |
Methods. More... | |
A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
Definition at line 32 of file PedAlgoEdges.h.
enum to define algorithm options
Enumerator | |
---|---|
kHEAD |
Use first N samples. |
kTAIL |
Use last N samples. |
kBOTH |
Calculate both and use the one with smaller RMS. |
Definition at line 44 of file PedAlgoEdges.h.
pmtana::PedAlgoEdges::PedAlgoEdges | ( | const std::string | name = "PedEdges" | ) |
Default constructor.
Definition at line 16 of file PedAlgoEdges.cxx.
pmtana::PedAlgoEdges::PedAlgoEdges | ( | const fhicl::ParameterSet & | pset, |
const std::string | name = "PedEdges" |
||
) |
Alternative ctor.
Definition at line 26 of file PedAlgoEdges.cxx.
|
protected |
Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index.
Definition at line 44 of file PedAlgoEdges.cxx.
|
private |
Methods.
Definition at line 59 of file PedAlgoEdges.h.
|
private |
Definition at line 57 of file PedAlgoEdges.h.
|
private |
Definition at line 58 of file PedAlgoEdges.h.