CMS 3D CMS Logo

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
bool operator()(const reco::SoftLeptonProperties &properties, bool use3d=true) const
sign
optionally select leptons based on their impact parameter sign
Definition: Matching.h:10
LeptonSelector(const edm::ParameterSet &params)
static sign option(const std::string &election)
bool isNegative() const
reco::SoftLeptonProperties::Quality::Generic m_leptonId
bool isPositive() const