CP3-llbb Framework
METFilter.h
1 #pragma once
2 
3 #include <cp3_llbb/Framework/interface/Filter.h>
4 #include <DataFormats/Common/interface/TriggerResults.h>
5 
6 class METFilter: public Framework::Filter {
7  public:
8  METFilter(const std::string& name, const edm::ParameterSet& config):
9  Filter(name, config)
10  {
11  m_flags = config.getUntrackedParameter<std::vector<std::string>>("flags");
12  }
13 
14  virtual ~METFilter() {}
15 
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")));
18  }
19 
20  virtual bool filter(edm::Event& event, const edm::EventSetup& eventSetup) override;
21 
22  private:
23 
24  // Tokens
25  edm::EDGetTokenT<edm::TriggerResults> m_met_filters_token;
26 
27  std::vector<std::string> m_flags;
28 };
Definition: Filter.h:22
Definition: METFilter.h:6