#include <GroupSelectorRules.h>
Definition at line 24 of file GroupSelectorRules.h.
edm::GroupSelectorRules::GroupSelectorRules |
( |
ParameterSet const & |
pset, |
|
|
std::string const & |
parameterName, |
|
|
std::string const & |
parameterOwnerName |
|
) |
| |
Definition at line 232 of file GroupSelectorRules.cc.
References end, edm::ParameterSet::getUntrackedParameter(), keepAll_, and rules_.
242 std::vector<std::string> defaultCommands(1U, std::string(
"keep *"));
244 std::vector<std::string> commands =
245 pset.getUntrackedParameter<std::vector<std::string> >(parameterName,
247 if (commands.empty()) {
248 commands.push_back(defaultCommands[0]);
250 rules_.reserve(commands.size());
251 for(std::vector<std::string>::const_iterator it = commands.begin(),
end = commands.end();
253 rules_.push_back(Rule(*it, parameterName, parameterOwnerName));
255 keepAll_ = commands.size() == 1 && commands[0] == defaultCommands[0];
std::string parameterName_
std::string parameterOwnerName_
std::vector< Rule > rules_
void edm::GroupSelectorRules::applyToAll |
( |
std::vector< BranchSelectState > & |
branchstates | ) |
const |
bool edm::GroupSelectorRules::keepAll |
( |
| ) |
const |
|
inline |
bool edm::GroupSelectorRules::keepAll_ |
|
private |
std::string edm::GroupSelectorRules::parameterName_ |
|
private |
std::string edm::GroupSelectorRules::parameterOwnerName_ |
|
private |
std::vector<Rule> edm::GroupSelectorRules::rules_ |
|
private |