80 std::vector<edm::ParameterSet> prescales_in(iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"Prescales"));
82 for (std::vector<edm::ParameterSet>::const_iterator cit = prescales_in.begin(); cit != prescales_in.end(); cit++) {
84 unsigned int factor(cit->getParameter<
unsigned int>(
"PrescaleFactor"));
89 prescale_counter[
name] = 0;
98 trigger_indices.clear();
100 for (std::map<std::string, unsigned int>::const_iterator cit =
prescales.begin(); cit !=
prescales.end(); cit++) {
103 trigger_indices[cit->first] =
index;
106 LogDebug(
"") <<
"requested HLT path does not exist: " << cit->first;
124 iEvent.getByToken(tok_trigger, trh);
127 LogDebug(
"") <<
"TriggerResults found, number of HLT paths: " << trh->
size();
129 LogDebug(
"") <<
"TriggerResults product not found - returning result=false!";
142 bool accept_event =
false;
143 for (std::map<std::string, unsigned int>::const_iterator cit = trigger_indices.begin(); cit != trigger_indices.end();
145 if (trh->
accept(cit->second)) {
146 prescale_counter[cit->first]++;
147 if (prescale_counter[cit->first] >=
prescales[cit->first]) {
149 prescale_counter[cit->first] = 0;