48 bool ped_status =
true;
52 bool pulse_reco_status = ped_status;
56 auto& pulse_algo = algo_pair.first;
57 auto& ped_algo = algo_pair.second;
61 ped_status = ped_status && ped_algo->Evaluate(wf);
63 pulse_reco_status = (ped_status && pulse_reco_status &&
64 pulse_algo->Reconstruct(wf, ped_algo->Mean(), ped_algo->Sigma()));
70 ss <<
"No pedestal algorithm available for pulse algo " << pulse_algo->Name();
79 return pulse_reco_status;
Class def header for exception classes in OpticalDetector package.
double Mean(size_t i) const
Getter of the pedestal mean value.
void AddRecoAlgo(pmtana::PMTPulseRecoBase *algo, PMTPedestalBase *ped_algo=nullptr)
A method to set pulse reconstruction algorithm.
Class definition file of PMTPedestalBase.
bool Evaluate(const pmtana::Waveform_t &wf)
Method to compute a pedestal.
double Sigma(size_t i) const
Getter of the pedestal standard deviation.
bool Reconstruct(const pmtana::Waveform_t &) const
Implementation of ana_base::analyze method.
std::vector< short > Waveform_t
std::vector< std::pair< pmtana::PMTPulseRecoBase *, pmtana::PMTPedestalBase * > > _reco_algo_v
pulse reconstruction algorithm pointer
PMTPedestalBase * _ped_algo
ped_estimator object
void SetDefaultPedAlgo(pmtana::PMTPedestalBase *algo)
A method to set a choice of pedestal estimation method.
PulseRecoManager()
Default constructor.
Class definition file of PMTPulseRecoBase.
Class definition file of PulseRecoManager.