25 auto tpin = inlist.cbegin();
26 auto inend = inlist.cend();
27 for (; tpin != inend; ++tpin) {
31 if (
data.qualityCode != -1 &&
data.theta_quality != -1) {
32 outlist.push_back(*tpin);
33 auto toerase =
std::find(leftovers.begin(), leftovers.end(), *tpin);
34 if (toerase != leftovers.end()) {
35 leftovers.erase(toerase);
41 if (
data.qualityCode != -1 &&
data.theta_quality == -1) {
42 auto tp_bx = leftovers.cbegin();
43 auto tp_bx_end = leftovers.cend();
44 for (; tp_bx != tp_bx_end; ++tp_bx) {
63 for (
int i = 0;
i < 7; ++
i) {
76 outlist.push_back(newtp);
78 auto phierase =
std::find(leftovers.begin(), leftovers.end(), *tpin);
79 auto theerase =
std::find(leftovers.begin(), leftovers.end(), *tp_bx);
80 if (phierase != leftovers.end()) {
81 leftovers.erase(phierase);
83 if (theerase != leftovers.end()) {
84 leftovers.erase(theerase);
92 auto lo_tp = leftovers.cbegin();
93 auto lo_end = leftovers.cend();
94 for (; lo_tp != lo_end; ++lo_tp) {
95 outlist.push_back(*lo_tp);