86 std::vector<std::pair<quint32, std::size_t>> temp_vector;
94 for(
auto &pair_tof_intensity : temp_vector)
97 quint32 mzkey = (pair_tof_intensity.first / mzindex_merge_window);
98 mzkey = (mzkey * mzindex_merge_window) + (mzindex_merge_window / 2);
107 qDebug() <<
"tofIndexList.size()=" <<
tofIndexList.size();
111 std::sort(tof_index_list_tmp.begin(), tof_index_list_tmp.end());
115 quint32 previous_tof_index = tof_index_list_tmp[0];
116 std::size_t previous_intensity =
readIntensity(previous_tof_index);
117 for(std::size_t i = 1; i < tof_index_list_tmp.size(); i++)
119 quint32 tof_index = tof_index_list_tmp[i];
120 if(previous_tof_index == tof_index - 1)
123 if(previous_intensity > intensity)
127 previous_intensity + intensity);
128 previous_intensity = 0;
129 previous_tof_index = tof_index;
134 previous_intensity += intensity;
135 previous_tof_index = tof_index;
141 if(previous_intensity > 0)
146 previous_tof_index = tof_index;
152 if(previous_intensity > 0)
159 qDebug() <<
"tofIndexList.size()=" <<
tofIndexList.size();