15 #ifndef PMTPULSERECOBASE_H
16 #define PMTPULSERECOBASE_H
81 const std::string&
Name()
const;
137 bool Integral (
const std::vector<short> &wf,
double &result,
size_t begin=0,
size_t end=0)
const;
143 bool Derivative (
const std::vector<short> &wf, std::vector<int32_t> &diff,
size_t begin=0,
size_t end=0)
const;
149 size_t Max(
const std::vector<short> &wf,
double &result,
size_t begin=0,
size_t end=0)
const;
155 size_t Min(
const std::vector<short> &wf,
double &result,
size_t begin=0,
size_t end=0)
const;
bool _status
Status after pulse reconstruction.
bool Integral(const std::vector< short > &wf, double &result, size_t begin=0, size_t end=0) const
bool Status() const
Status getter.
std::vector< double > PedestalSigma_t
virtual void Reset()
A method to be called event-wise to reset parameters.
Interfacce class for a tool to calculate the pulse rise time.
std::string _name
Unique name.
virtual ~PMTPulseRecoBase()=default
Default destructor.
size_t Min(const std::vector< short > &wf, double &result, size_t begin=0, size_t end=0) const
const std::string & Name() const
Name getter.
size_t GetNPulse() const
A getter for the number of reconstructed pulses from the input waveform.
pulse_param _pulse
A subject pulse_param object to be filled with the last reconstructed pulse parameters.
size_t Max(const std::vector< short > &wf, double &result, size_t begin=0, size_t end=0) const
const pulse_param_array & GetPulses() const
A getter for the whole array of pulse_param struct object.
auto end(FixedBins< T, C > const &) noexcept
std::vector< short > Waveform_t
virtual bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)=0
auto begin(FixedBins< T, C > const &) noexcept
std::unique_ptr< pmtana::RiseTimeCalculatorBase > _risetime_calc_ptr
Tool for rise time calculation.
bool Reconstruct(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
std::vector< pmtana::pulse_param > pulse_param_array
std::vector< double > PedestalMean_t
const pulse_param & GetPulse(size_t index=0) const
pulse_param_array _pulse_v
A container array of pulse_param struct objects to store (possibly multiple) reconstructed pulse(s)...
bool Derivative(const std::vector< short > &wf, std::vector< int32_t > &diff, size_t begin=0, size_t end=0) const
PMTPulseRecoBase(const std::string name="noname")
Default constructor with fhicl parameters.