16 #include <boost/algorithm/string.hpp> 20 #include "FWCore/Framework/interface/Frameworkfwd.h" 21 #include "FWCore/Framework/interface/EDProducer.h" 22 #include "FWCore/Framework/interface/Event.h" 23 #include "FWCore/ParameterSet/interface/ParameterSet.h" 42 TriggerAccepts::TriggerAccepts(
const edm::InputTag& tag, TTree* tree,
const std::vector<std::string>& paths,
const std::vector<std::string>& seeds,
const std::shared_ptr<HLTPrescaleProvider> hltPrescale)
80 for (
size_t i = 0; i <
paths_.size() ; ++i )
85 std::map<std::string, bool> l1done;
86 for (
size_t i = 0; i <
seeds_.size() ; ++i )
93 Handle<TriggerResults> handler;
100 for (
size_t i = 0; i <
paths_.size() ; ++i )
105 accept_[i] = triggers.accept(j);
110 const std::pair<std::vector<std::pair<std::string,int> >,
int> ps =
hlt_prescale_->prescaleValuesInDetail(event,setup,
hlt_config_.triggerName(j));
114 for (
size_t k = 0; k < ps.first.size(); ++k )
116 for (
size_t l = 0; l <
seeds_.size(); ++l )
118 if ( ! l1done[
seeds_[l]] && ps.first[k].first ==
seeds_[l] )
120 psl1_[l] = ps.first[k].second;
131 for (
size_t l = 0; l <
seeds_.size(); ++l )
133 for (
auto & l1 : l1seeds )
156 for (
size_t i = 0; i <
paths_.size() ; ++i )
160 for (
size_t i = 0; i <
seeds_.size() ; ++i )
164 for (
size_t i = 0; i <
paths_.size() ; ++i )
168 for (
size_t i = 0; i <
seeds_.size() ; ++i )
HLTConfigProvider hlt_config_
void Run(edm::Run const &, edm::EventSetup const &)
std::vector< std::string > paths_
std::shared_ptr< HLTPrescaleProvider > hlt_prescale_
void Fill(const edm::Event &event, const edm::EventSetup &setup)
edm::InputTag input_collection_
std::vector< std::string > seeds_