Pedestal "algorithm" reading the pedestals from somewhere else. More...
#include <PedAlgoFixed.h>
Classes | |
struct | Config |
struct | InputSet_t |
Input information. More... | |
Public Types | |
using | Parameters = fhicl::Table< Config > |
Public Member Functions | |
PedAlgoFixed (Parameters const ¶ms, std::string const &name="PedFixed") | |
std::string const & | waveformSourceName () const |
Returns the name of the configured waveform source. More... | |
std::string const & | pedestalSourceName () const |
Returns the name of the configured pedestal source. More... | |
std::string const & | pedestalRMSName () const |
Returns the name of the configured RMS source. More... | |
void | setParameters (InputSet_t inputSet) |
Records the current pedestals and RMS per channel. More... | |
void | clearParameters () |
Removes the pedestal and RMS records. 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 | |
virtual bool | ComputePedestal (pmtana::Waveform_t const &waveform, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v) override |
Computes the pedestal of the specified waveform . More... | |
std::pair< InputSet_t const *, std::size_t > | findWaveform (pmtana::Waveform_t const &waveform) const |
Returns the input set and index of the specified waveform . 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 |
Protected Attributes | |
std::string | fWaveformTag |
Name of the data source for waveforms. More... | |
std::string | fPedestalTag |
Name of the data source for pedestals. More... | |
std::string | fRMSTag |
Name of the data source for RMS. More... | |
InputSet_t | fInput |
The set of input waveforms currently registered. More... | |
Pedestal "algorithm" reading the pedestals from somewhere else.
Definition at line 64 of file PedAlgoFixed.h.
using pmtana::PedAlgoFixed::Parameters = fhicl::Table<Config> |
Definition at line 105 of file PedAlgoFixed.h.
pmtana::PedAlgoFixed::PedAlgoFixed | ( | Parameters const & | params, |
std::string const & | name = "PedFixed" |
||
) |
Definition at line 29 of file PedAlgoFixed.cxx.
void pmtana::PedAlgoFixed::clearParameters | ( | ) |
Removes the pedestal and RMS records.
Definition at line 69 of file PedAlgoFixed.cxx.
|
overrideprotectedvirtual |
Computes the pedestal of the specified waveform
.
[in] | waveform | the waveform to be processed |
[out] | mean_v | the mean value of the pedestal, tick by tick |
[out] | sigma_v | the RMS of the pedestal, tick by tick |
The algorithm is quite simple, since it picks the baseline that was provided in the configuration.
Definition at line 75 of file PedAlgoFixed.cxx.
|
protected |
Returns the input set and index of the specified waveform
.
Definition at line 107 of file PedAlgoFixed.cxx.
|
inline |
Returns the name of the configured RMS source.
Definition at line 122 of file PedAlgoFixed.h.
|
inline |
Returns the name of the configured pedestal source.
Definition at line 119 of file PedAlgoFixed.h.
void pmtana::PedAlgoFixed::setParameters | ( | InputSet_t | inputSet | ) |
Records the current pedestals and RMS per channel.
Definition at line 50 of file PedAlgoFixed.cxx.
|
inline |
Returns the name of the configured waveform source.
Definition at line 116 of file PedAlgoFixed.h.
|
protected |
The set of input waveforms currently registered.
Definition at line 142 of file PedAlgoFixed.h.
|
protected |
Name of the data source for pedestals.
Definition at line 138 of file PedAlgoFixed.h.
|
protected |
Name of the data source for RMS.
Definition at line 139 of file PedAlgoFixed.h.
|
protected |
Name of the data source for waveforms.
Definition at line 137 of file PedAlgoFixed.h.