#include <AlgoFixedWindow.h>
Public Member Functions | |
| AlgoFixedWindow (const std::string name="FixedWindow") | |
| Default ctor. More... | |
| AlgoFixedWindow (const fhicl::ParameterSet &pset, const std::string name="FixedWindow") | |
| Alternative ctor. More... | |
| void | Reset () |
| Implementation of AlgoFixedWindow::reset() method. More... | |
Public Member Functions inherited from pmtana::PMTPulseRecoBase | |
| PMTPulseRecoBase (const std::string name="noname") | |
| Default constructor with fhicl parameters. More... | |
| virtual | ~PMTPulseRecoBase ()=default |
| Default destructor. More... | |
| const std::string & | Name () const |
| Name getter. More... | |
| bool | Status () const |
| Status getter. More... | |
| bool | Reconstruct (const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &) |
| const pulse_param & | GetPulse (size_t index=0) const |
| const pulse_param_array & | GetPulses () const |
| A getter for the whole array of pulse_param struct object. More... | |
| size_t | GetNPulse () const |
| A getter for the number of reconstructed pulses from the input waveform. More... | |
Protected Member Functions | |
| bool | RecoPulse (const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &) |
| Implementation of AlgoFixedWindow::reco() method. More... | |
Protected Member Functions inherited from pmtana::PMTPulseRecoBase | |
| bool | Integral (const std::vector< short > &wf, double &result, size_t begin=0, size_t end=0) const |
| bool | Derivative (const std::vector< short > &wf, std::vector< int32_t > &diff, size_t begin=0, size_t end=0) const |
| size_t | Max (const std::vector< short > &wf, double &result, size_t begin=0, size_t end=0) const |
| size_t | Min (const std::vector< short > &wf, double &result, size_t begin=0, size_t end=0) const |
Protected Attributes | |
| size_t | _index_start |
| index marker for the beginning of the pulse time window More... | |
| size_t | _index_end |
| index marker for the end of pulse time window More... | |
Protected Attributes inherited from pmtana::PMTPulseRecoBase | |
| pulse_param_array | _pulse_v |
| A container array of pulse_param struct objects to store (possibly multiple) reconstructed pulse(s). More... | |
| pulse_param | _pulse |
| A subject pulse_param object to be filled with the last reconstructed pulse parameters. More... | |
This class implements fixed_window algorithm to AlgoFixedWindow class. The algorithm defines a pulse in user-specified time window. A typical usage is to set the beginning of the window to be 0 (= start of the waveform) and integrate over the time of interest. By default, the ending is set to index=0, in which case it uses the ending index of the input waveform (i.e. full integration).
Definition at line 35 of file AlgoFixedWindow.h.
| pmtana::AlgoFixedWindow::AlgoFixedWindow | ( | const std::string | name = "FixedWindow" | ) |
Default ctor.
Definition at line 14 of file AlgoFixedWindow.cxx.
| pmtana::AlgoFixedWindow::AlgoFixedWindow | ( | const fhicl::ParameterSet & | pset, |
| const std::string | name = "FixedWindow" |
||
| ) |
Alternative ctor.
Definition at line 25 of file AlgoFixedWindow.cxx.
|
protectedvirtual |
Implementation of AlgoFixedWindow::reco() method.
Implements pmtana::PMTPulseRecoBase.
Definition at line 51 of file AlgoFixedWindow.cxx.
|
virtual |
Implementation of AlgoFixedWindow::reset() method.
Reimplemented from pmtana::PMTPulseRecoBase.
Definition at line 39 of file AlgoFixedWindow.cxx.
|
protected |
index marker for the end of pulse time window
Definition at line 57 of file AlgoFixedWindow.h.
|
protected |
index marker for the beginning of the pulse time window
Definition at line 56 of file AlgoFixedWindow.h.
1.8.11