#include <AlgoCFD.h>
Public Member Functions | |
AlgoCFD (const std::string name="CFD") | |
Default constructor. More... | |
AlgoCFD (const fhicl::ParameterSet &pset, std::unique_ptr< pmtana::RiseTimeCalculatorBase > risetimecalculator=nullptr, const std::string name="CFD") | |
Alternative ctor. More... | |
void | Reset () |
Implementation of AlgoCFD::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 AlgoCFD::reco() method. More... | |
const std::map< unsigned, double > | LinearZeroPointX (const std::vector< double > &trace) |
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 |
Private Attributes | |
float | _F |
int | _D |
double | _peak_thresh |
double | _start_thresh |
double | _end_thresh |
Additional Inherited Members | |
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 AlgoCFD class.
pmtana::AlgoCFD::AlgoCFD | ( | const std::string | name = "CFD" | ) |
Default constructor.
Definition at line 17 of file AlgoCFD.cxx.
pmtana::AlgoCFD::AlgoCFD | ( | const fhicl::ParameterSet & | pset, |
std::unique_ptr< pmtana::RiseTimeCalculatorBase > | risetimecalculator = nullptr , |
||
const std::string | name = "CFD" |
||
) |
Alternative ctor.
Definition at line 23 of file AlgoCFD.cxx.
|
protected |
Definition at line 243 of file AlgoCFD.cxx.
|
protectedvirtual |
Implementation of AlgoCFD::reco() method.
Implements pmtana::PMTPulseRecoBase.
Definition at line 53 of file AlgoCFD.cxx.
|
virtual |
Implementation of AlgoCFD::reset() method.
Reimplemented from pmtana::PMTPulseRecoBase.
Definition at line 46 of file AlgoCFD.cxx.