98 std::vector<std::pair<quint32, std::size_t>> temp_vector;
101 temp_vector.push_back({tof_index,
readIntensity(tof_index)});
106 for(
auto &pair_tof_intensity : temp_vector)
109 quint32 mzkey = (pair_tof_intensity.first / mzindex_merge_window);
110 mzkey = (mzkey * mzindex_merge_window) + (mzindex_merge_window / 2);
119 qDebug() <<
"tofIndexList.size()=" <<
tofIndexList.size();
123 std::sort(tof_index_list_tmp.begin(), tof_index_list_tmp.end());
127 quint32 previous_tof_index = tof_index_list_tmp[0];
128 std::size_t previous_intensity =
readIntensity(previous_tof_index);
129 for(std::size_t i = 1; i < tof_index_list_tmp.size(); i++)
131 quint32 tof_index = tof_index_list_tmp[i];
132 if(previous_tof_index == tof_index - 1)
135 if(previous_intensity > intensity)
139 previous_intensity = 0;
140 previous_tof_index = tof_index;
145 previous_intensity += intensity;
146 previous_tof_index = tof_index;
152 if(previous_intensity > 0)
157 previous_tof_index = tof_index;
163 if(previous_intensity > 0)
170 qDebug() <<
"tofIndexList.size()=" <<
tofIndexList.size();