4 #include "boost/algorithm/string.hpp" 7 #include "cetlib/container_algorithms.h" 24 vector<BranchSelectState> branchstates;
25 branchstates.reserve(branchDescriptions.size());
26 for (
auto const& pr : branchDescriptions) {
27 branchstates.push_back(BranchSelectState{&pr.second});
37 for (
auto const& state : branchstates) {
39 groupsToSelect_.push_back(state.desc);
42 sort_all(groupsToSelect_);
48 return binary_search_all(groupsToSelect_, &desc);
54 os <<
"GroupSelector at: " <<
static_cast<void const*
>(
this) <<
" has " 55 << groupsToSelect_.size() <<
" groups to select:\n";
56 for (
auto const& bd_ptr : groupsToSelect_) {
57 os << bd_ptr->branchName() <<
'\n';
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
std::map< BranchKey, BranchDescription > ProductList
bool selected(BranchDescription const &desc) const
void print(std::ostream &os) const
void applyToAll(std::vector< BranchSelectState > &branchstates) const
GroupSelector(GroupSelectorRules const &rules, ProductList const &branchDescriptions)