55 virtual void endJob() ;
83 : triggerTag(iConfig.getParameter<edm::
InputTag>(
"TriggerResultsTag"))
86 std::vector<edm::ParameterSet> prescales_in(iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"Prescales"));
88 for (std::vector<edm::ParameterSet>::const_iterator cit = prescales_in.begin();
89 cit != prescales_in.end(); cit++) {
91 std::string
name(cit->getParameter<std::string>(
"HLTName"));
92 unsigned int factor(cit->getParameter<
unsigned int>(
"PrescaleFactor"));
121 for (std::map<std::string, unsigned int>::const_iterator cit =
prescales.begin();
128 LogDebug(
"") <<
"requested HLT path does not exist: " << cit->first;
153 LogDebug(
"") <<
"TriggerResults found, number of HLT paths: " << trh->size();
155 LogDebug(
"") <<
"TriggerResults product not found - returning result=false!";
162 init(*trh, triggerNames);
168 bool accept_event =
false;
169 for (std::map<std::string, unsigned int>::const_iterator cit =
trigger_indices.begin();
171 if (trh->accept(cit->second)) {
T getParameter(std::string const &) const
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
#define DEFINE_FWK_MODULE(type)
edm::ParameterSetID triggerNamesID_
void init(const edm::TriggerResults &, const edm::TriggerNames &triggerNames)
std::map< std::string, unsigned int > prescales
unsigned int triggerIndex(std::string const &name) const
std::map< std::string, unsigned int > prescale_counter
unsigned int size() const
Get number of paths stored.
std::map< std::string, unsigned int > trigger_indices
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
PrescalerFHN(const edm::ParameterSet &)
virtual bool filter(edm::Event &, const edm::EventSetup &)