Definition at line 19 of file RiseTimeThreshold_tool.cc.
Implements pmtana::RiseTimeCalculatorBase.
Definition at line 44 of file RiseTimeThreshold_tool.cc.
References DEFINE_ART_CLASS_TOOL, and fPeakRatio.
50 std::vector<double> wf_aux(ped_pulse);
52 for (
size_t ix = 0; ix < wf_aux.size(); ix++) {
53 wf_aux[ix] = ((double)wf_pulse[ix]) - wf_aux[ix];
57 for (
size_t ix = 0; ix < wf_aux.size(); ix++) {
58 wf_aux[ix] = wf_aux[ix] - ((double)wf_pulse[ix]);
62 auto it_max = max_element(wf_aux.begin(), wf_aux.end());
63 size_t rise = std::lower_bound(wf_aux.begin(), it_max,
fPeakRatio * (*it_max)) - wf_aux.begin();
double pmtana::RiseTimeThreshold::fPeakRatio |
|
private |
The documentation for this class was generated from the following file: