CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeptonSelector.h
Go to the documentation of this file.
1 #ifndef RecoBTag_SoftLepton_LeptonSelector_h
2 #define RecoBTag_SoftLepton_LeptonSelector_h
3 
4 #include <string>
5 
7 
9 
10 namespace btag {
11 
13  public:
16 
17  bool operator()(const reco::SoftLeptonProperties &properties, bool use3d = true) const;
18 
19  inline bool isAny() const { return m_sign == any; }
20  inline bool isPositive() const { return m_sign == positive; }
21  inline bool isNegative() const { return m_sign == negative; }
22 
23  private:
25 
26  enum sign { negative = -1, any = 0, positive = 1 };
27 
28  static sign option(const std::string &election);
29 
32  float m_qualityCut;
33  };
34 
35 } // namespace btag
36 
37 #endif // RecoBTag_SoftLepton_LeptonSelector_h
sign
optionally select leptons based on their impact parameter sign
bool isPositive() const
LeptonSelector(const edm::ParameterSet &params)
tuple btag
Definition: BTagSF.py:16
static sign option(const std::string &election)
bool isNegative() const
bool operator()(const reco::SoftLeptonProperties &properties, bool use3d=true) const
reco::SoftLeptonProperties::Quality::Generic m_leptonId
bool isAny() const