42 bool first_found =
false;
43 bool record_hit =
false;
48 double pedestal = ped_mean.front();
51 threshold += pedestal;
53 pre_threshold += pedestal;
57 for (
short const &
value : wf) {
59 if (!fire && (
double(
value) >= pre_threshold)) {
69 if (fire && (
double(
value) < pre_threshold)) {
86 if (!record_hit && (
double(
value) >= threshold)) record_hit =
true;
99 else if (!first_found)
std::vector< double > PedestalSigma_t
virtual 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.
T get(std::string const &key) const
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
std::vector< short > Waveform_t
AlgoSiPM(const fhicl::ParameterSet &pset, const std::string name="AlgoSiPM")
void Reset()
A method to be called event-wise to reset parameters.
std::vector< double > PedestalMean_t
pulse_param_array _pulse_v
A container array of pulse_param struct objects to store (possibly multiple) reconstructed pulse(s)...