#include <AlgoSSPLeadingEdge.h>
|
bool | RecoPulse (const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &) |
|
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 |
|
Definition at line 21 of file AlgoSSPLeadingEdge.h.
Definition at line 17 of file AlgoSSPLeadingEdge.cc.
void Reset()
A method to be called event-wise to reset parameters.
T get(std::string const &key) const
PMTPulseRecoBase(const std::string name="noname")
Default constructor with fhicl parameters.
pmtana::AlgoSSPLeadingEdge::~AlgoSSPLeadingEdge |
( |
| ) |
|
Implements pmtana::PMTPulseRecoBase.
Definition at line 58 of file AlgoSSPLeadingEdge.cc.
68 threshold += pedestal;
75 int readout_pretrigger =
_pretrg;
83 for (
short const &
value : wf) {
88 if (counter < (tamanho - d_window )) {
90 threshold_cmp = wf[counter+d_window]-wf[
counter];
93 if (threshold_cmp >= threshold2){
95 if(timer==0){
trg_wvf.emplace_back(counter+d_window);}
97 if(!fire && timer==0){
99 if(readout_pretrigger < (counter + d_window)){
105 }
else if(timer>0 && timer < d_window){
107 }
else if(timer == d_window){
112 if(timer>0 && timer < d_window){timer++;}
113 else if(timer==d_window || timer==0 ){timer=0;}
116 if (fire==
true && counter == (
_pulse.
t_start + readout_window)){
void Reset()
A method to be called event-wise to reset parameters.
pulse_param _pulse
A subject pulse_param object to be filled with the last reconstructed pulse parameters.
std::vector< int > trg_wvf
pulse_param_array _pulse_v
A container array of pulse_param struct objects to store (possibly multiple) reconstructed pulse(s)...
QTextStream & endl(QTextStream &s)
void pmtana::AlgoSSPLeadingEdge::Reset |
( |
| ) |
|
|
virtual |
double pmtana::AlgoSSPLeadingEdge::_adc_thres |
|
protected |
int pmtana::AlgoSSPLeadingEdge::_dwindow |
|
protected |
double pmtana::AlgoSSPLeadingEdge::_pedestal |
|
protected |
size_t pmtana::AlgoSSPLeadingEdge::_pretrg |
|
protected |
size_t pmtana::AlgoSSPLeadingEdge::_rdwindow |
|
protected |
The documentation for this class was generated from the following files: