#include <AlgoThreshold.h>
Public Member Functions | |
| AlgoThreshold (const std::string name="AlgoThreshold") | |
| Default constructor. More... | |
| AlgoThreshold (const fhicl::ParameterSet &pset, std::unique_ptr< pmtana::RiseTimeCalculatorBase > risetimecalculator=nullptr, const std::string name="AlgoThreshold") | |
| Alternative constructor. More... | |
| void | Reset () |
| Implementation of AlgoThreshold::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 &wf, const pmtana::PedestalMean_t &mean_v, const pmtana::PedestalSigma_t &sigma_v) |
| Implementation of AlgoThreshold::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 | |
| double | _start_adc_thres |
| A variable holder for a user-defined absolute ADC threshold value. More... | |
| double | _end_adc_thres |
| double | _nsigma_start |
| A variable holder for a multiplicative factor for the pedestal standard deviation to define the threshold. More... | |
| double | _nsigma_end |
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... | |
| std::unique_ptr < pmtana::RiseTimeCalculatorBase > | _risetime_calc_ptr = nullptr |
| Tool for rise time calculation. More... | |
This class implements threshold algorithm to AlgoThreshold 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 AlgoThreshold.h.
| pmtana::AlgoThreshold::AlgoThreshold | ( | const std::string | name = "AlgoThreshold" | ) |
Default constructor.
Definition at line 14 of file AlgoThreshold.cxx.
| pmtana::AlgoThreshold::AlgoThreshold | ( | const fhicl::ParameterSet & | pset, |
| std::unique_ptr< pmtana::RiseTimeCalculatorBase > | risetimecalculator = nullptr, |
||
| const std::string | name = "AlgoThreshold" |
||
| ) |
Alternative constructor.
Definition at line 23 of file AlgoThreshold.cxx.
|
protectedvirtual |
Implementation of AlgoThreshold::reco() method.
Implements pmtana::PMTPulseRecoBase.
Definition at line 53 of file AlgoThreshold.cxx.
|
virtual |
Implementation of AlgoThreshold::reset() method.
Reimplemented from pmtana::PMTPulseRecoBase.
Definition at line 46 of file AlgoThreshold.cxx.
|
protected |
Definition at line 61 of file AlgoThreshold.h.
|
protected |
Definition at line 66 of file AlgoThreshold.h.
|
protected |
A variable holder for a multiplicative factor for the pedestal standard deviation to define the threshold.
Definition at line 65 of file AlgoThreshold.h.
|
protected |
A variable holder for a user-defined absolute ADC threshold value.
Definition at line 60 of file AlgoThreshold.h.
1.8.5