173 std::vector<short> wf(20,0);
174 std::vector<double> ped_mean(20,0);
175 std::vector<double> ped_sigma(20,0.1);
178 wf[4] = 5; wf[5] = 10; wf[6] = 5;
179 wf[14] = 5; wf[15] = 10; wf[16] = 5;
182 myAlgoThreshold.Reconstruct(wf,ped_mean,ped_sigma);
183 BOOST_CHECK_EQUAL(myAlgoThreshold.GetNPulse(),2ul);
185 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(0).t_start,3,
tolerance);
186 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(0).t_end,7,
tolerance);
187 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(0).t_max,5,
tolerance);
188 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(0).area,area,
tolerance);
189 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(0).peak,10.0,
tolerance);
191 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(1).t_start,13,
tolerance);
192 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(1).t_end,17,
tolerance);
193 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(1).t_max,15,
tolerance);
194 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(1).area,area,
tolerance);
195 BOOST_CHECK_CLOSE(myAlgoThreshold.GetPulse(1).peak,10.0,
tolerance);