54 void endJob()
override;
83 std::vector<edm::ParameterSet> prescales_in(iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"Prescales"));
85 for (std::vector<edm::ParameterSet>::const_iterator cit = prescales_in.begin(); cit != prescales_in.end(); cit++) {
87 unsigned int factor(cit->getParameter<
unsigned int>(
"PrescaleFactor"));
92 prescale_counter[
name] = 0;
106 trigger_indices.clear();
108 for (std::map<std::string, unsigned int>::const_iterator cit =
prescales.begin(); cit !=
prescales.end(); cit++) {
109 trigger_indices[cit->first] =
triggerNames.triggerIndex(cit->first);
111 if (trigger_indices[cit->first] >=
result.size()) {
113 LogDebug(
"") <<
"requested HLT path does not exist: " << cit->first;
114 trigger_indices.erase(cit->first);
132 iEvent.getByToken(tok_trigger, trh);
135 LogDebug(
"") <<
"TriggerResults found, number of HLT paths: " << trh->
size();
137 LogDebug(
"") <<
"TriggerResults product not found - returning result=false!";
150 bool accept_event =
false;
151 for (std::map<std::string, unsigned int>::const_iterator cit = trigger_indices.begin(); cit != trigger_indices.end();
153 if (trh->
accept(cit->second)) {
154 prescale_counter[cit->first]++;
155 if (prescale_counter[cit->first] >=
prescales[cit->first]) {
157 prescale_counter[cit->first] = 0;