CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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:
14  LeptonSelector(const edm::ParameterSet &params);
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 {
27  negative = -1,
28  any = 0,
30  };
31 
32  static sign option(const std::string & election);
33 
36  float m_qualityCut;
37 };
38 
39 } // namespace btag
40 
41 #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:15
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