1 #define BOOST_TEST_MODULE ( AlgoThreshold_test ) 22 std::vector<short> wf(20,0);
23 std::vector<double> ped_mean(20,0);
24 std::vector<double> ped_sigma(20,0.1);
35 std::vector<short> wf(20,0);
36 std::vector<double> ped_mean(20,0);
37 std::vector<double> ped_sigma(20,0.1);
49 std::vector<short> wf(20,0);
50 std::vector<double> ped_mean(20,0);
51 std::vector<double> ped_sigma(20,0.1);
55 for(
size_t iter=0; iter<wf.size(); iter++){
56 if(iter>5 && iter<15) {
75 std::vector<short> wf(20,0);
76 std::vector<double> ped_mean(20,0);
77 std::vector<double> ped_sigma(20,0.1);
81 for(
size_t iter=0; iter<wf.size(); iter++){
105 std::vector<short> wf(20,(
short)ped);
106 std::vector<double> ped_mean(20,ped);
107 std::vector<double> ped_sigma(20,0.1);
110 for(
size_t iter=0; iter<wf.size(); iter++){
117 area += wf[iter] - ped;
133 std::vector<short> wf(20,0);
134 std::vector<double> ped_mean(20,0);
135 std::vector<double> ped_sigma(20,0.1);
138 wf[18] = 5; wf[19] = 10;
153 std::vector<short> wf(20,0);
154 std::vector<double> ped_mean(20,0);
155 std::vector<double> ped_sigma(20,0.1);
158 wf[0] = 10; wf[1] = 5;
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;
199 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(checkZeroVector)
size_t GetNPulse() const
A getter for the number of reconstructed pulses from the input waveform.
Class definition file of AlgoThreshold.
bool Reconstruct(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
pmtana::AlgoThreshold myAlgoThreshold
const pulse_param & GetPulse(size_t index=0) const