HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ZBosonVetoFilter.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 
5 #include <boost/algorithm/string.hpp>
6 #include <boost/algorithm/string/trim.hpp>
7 #include <boost/regex.hpp>
8 
9 #include "Kappa/DataFormats/interface/Kappa.h"
10 
11 #include "Artus/Core/interface/FilterBase.h"
12 
13 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
14 
15 
18 class ZBosonVetoFilter: public FilterBase<HttTypes> {
19 public:
20 
21  virtual std::string GetFilterId() const override {
22  return "ZBosonVetoFilter";
23  }
24 
25  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
26 
27  virtual bool DoesEventPass(event_type const& event, product_type const& product,
28  setting_type const& settings, metadata_type const& metadata) const override;
29 
30 private:
31 
32  enum class ZBosonVetoType : int
33  {
34  NONE = -1,
35  HF = 0,
36  LF = 1
37  };
38 
39  static ZBosonVetoType ToZBosonVetoType(std::string const& vetoType)
40  {
41  if (vetoType == "heavyflavor") return ZBosonVetoType::HF;
42  else if (vetoType == "lightflavor") return ZBosonVetoType::LF;
43  else return ZBosonVetoType::NONE;
44  }
45 
46  ZBosonVetoType vetoType;
47 };
48 
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: ZBosonVetoFilter.cc:5
virtual bool DoesEventPass(event_type const &event, product_type const &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: ZBosonVetoFilter.cc:12
Definition: ZBosonVetoFilter.h:18
virtual std::string GetFilterId() const override
Definition: ZBosonVetoFilter.h:21