47 bool first_found =
false;
48 bool record_hit =
false;
54 threshold += pedestal;
56 pre_threshold += pedestal;
60 for (
short const &
value : wf) {
62 if (!fire && (
double(
value) >= pre_threshold)) {
72 if (fire && (
double(
value) < pre_threshold)) {
89 if (!record_hit && (
double(
value) >= threshold)) record_hit =
true;
102 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
std::string value(boost::any const &)
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)...