21 if (siblings.empty()){
26 for (
const auto&
s : siblings){
27 if (satisfiedBy.at(
s).empty()) {
33 std::vector<std::size_t> satisfying;
35 for (
const auto&
s :siblings){
36 satisfying.insert(satisfying.end(),
37 satisfiedBy.at(
s).cbegin(),
38 satisfiedBy.at(
s).cend()
46 auto end = satisfying.end();
47 if (siblings.size() > 1) {
48 std::sort(satisfying.begin(),
51 end = std::unique(satisfying.begin(),
55 std::vector<std::size_t> jet_indices;
56 for(
auto iter = satisfying.begin(); iter !=
end; ++iter) {
57 jet_indices.insert(jet_indices.end(),
58 jg2elemjgs.at(*iter).begin(),
59 jg2elemjgs.at(*iter).end());
62 std::sort(jet_indices.begin(),
65 auto final_end = std::unique(jet_indices.begin(),
69 jet_indices.resize(final_end-jet_indices.begin());
79 std::stringstream sstr;
81 <<
" done " << std::boolalpha <<
m_done;
82 collector->collect(
"JetGroupReducer::next()", sstr.str());
86 return std::vector<std::size_t>();