Definition at line 19 of file RiseTimeThreshold_tool.cc.
pmtana::RiseTimeThreshold::RiseTimeThreshold |
( |
art::ToolConfigTable< Config > const & |
config | ) |
|
|
explicit |
Implements pmtana::RiseTimeCalculatorBase.
Definition at line 52 of file RiseTimeThreshold_tool.cc.
57 std::vector<double> wf_aux (ped_pulse);
59 for(
size_t ix=0; ix<wf_aux.size(); ix++){
60 wf_aux[ix]=((double)wf_pulse[ix])-wf_aux[ix];
64 for(
size_t ix=0; ix<wf_aux.size(); ix++){
65 wf_aux[ix]=wf_aux[ix]-((double)wf_pulse[ix]);
69 auto it_max = max_element(wf_aux.begin(), wf_aux.end());
70 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: