#include <ProductSelectorRules.h>
Definition at line 24 of file ProductSelectorRules.h.
edm::ProductSelectorRules::ProductSelectorRules |
( |
ParameterSet const & |
pset, |
|
|
std::string const & |
parameterName, |
|
|
std::string const & |
parameterOwnerName |
|
) |
| |
Definition at line 210 of file ProductSelectorRules.cc.
References TrackerTrackHitFilter_cff::commands, end, edm::ParameterSet::getUntrackedParameter(), keepAll_, rules_, AlCaHLTBitMon_QueryRunRegistry::string, and mitigatedMETSequence_cff::U.
217 std::vector<std::string> defaultCommands(1
U,
std::string(
"keep *"));
220 pset.getUntrackedParameter<std::vector<std::string> >(parameterName, defaultCommands);
221 if (commands.empty()) {
222 commands.push_back(defaultCommands[0]);
224 rules_.reserve(commands.size());
225 for (std::vector<std::string>::const_iterator it = commands.begin(),
end = commands.end(); it !=
end; ++it) {
226 rules_.push_back(Rule(*it, parameterName, parameterOwnerName));
228 keepAll_ = commands.size() == 1 && commands[0] == defaultCommands[0];
std::vector< Rule > rules_
commands
min number of hits for refit layers to remove
std::string parameterName_
std::string parameterOwnerName_
void edm::ProductSelectorRules::applyToAll |
( |
std::vector< BranchSelectState > & |
branchstates | ) |
const |
const std::vector< std::string > & edm::ProductSelectorRules::defaultSelectionStrings |
( |
| ) |
|
|
static |
bool edm::ProductSelectorRules::keepAll |
( |
| ) |
const |
|
inline |
bool edm::ProductSelectorRules::keepAll_ |
|
private |
std::string edm::ProductSelectorRules::parameterName_ |
|
private |
std::string edm::ProductSelectorRules::parameterOwnerName_ |
|
private |
std::vector<Rule> edm::ProductSelectorRules::rules_ |
|
private |