3 #include <cp3_llbb/Framework/interface/Filter.h>
4 #include <DataFormats/Common/interface/TriggerResults.h>
8 METFilter(
const std::string& name,
const edm::ParameterSet& config):
11 m_flags = config.getUntrackedParameter<std::vector<std::string>>(
"flags");
16 virtual void doConsumes(
const edm::ParameterSet& config, edm::ConsumesCollector&& collector)
override {
17 m_met_filters_token = collector.consumes<edm::TriggerResults>(config.getUntrackedParameter<edm::InputTag>(
"filters", edm::InputTag(
"TriggerResults",
"",
"PAT")));
20 virtual bool filter(edm::Event& event,
const edm::EventSetup& eventSetup)
override;
25 edm::EDGetTokenT<edm::TriggerResults> m_met_filters_token;
27 std::vector<std::string> m_flags;
Definition: METFilter.h:6