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
btag::LeptonSelector::isNegative
bool isNegative() const
Definition: LeptonSelector.h:21
reco::SoftLeptonProperties
Definition: TemplatedSoftLeptonTagInfo.h:15
btag::LeptonSelector
Definition: LeptonSelector.h:12
SoftLeptonTagInfo.h
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
btag::LeptonSelector::~LeptonSelector
~LeptonSelector()
Definition: LeptonSelector.cc:24
btag::LeptonSelector::m_leptonId
reco::SoftLeptonProperties::Quality::Generic m_leptonId
Definition: LeptonSelector.h:31
btag::LeptonSelector::option
static sign option(const std::string &election)
Definition: LeptonSelector.cc:39
btag::LeptonSelector::isPositive
bool isPositive() const
Definition: LeptonSelector.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLT_2018_cff.use3d
use3d
Definition: HLT_2018_cff.py:5240
edm::ParameterSet
Definition: ParameterSet.h:36
btag::LeptonSelector::m_qualityCut
float m_qualityCut
Definition: LeptonSelector.h:32
btag::LeptonSelector::isAny
bool isAny() const
Definition: LeptonSelector.h:19
btag::LeptonSelector::sign
sign
optionally select leptons based on their impact parameter sign
Definition: LeptonSelector.h:26
btag::LeptonSelector::negative
Definition: LeptonSelector.h:26
btag::LeptonSelector::positive
Definition: LeptonSelector.h:26
btag::LeptonSelector::m_sign
sign m_sign
Definition: LeptonSelector.h:30
btag::LeptonSelector::operator()
bool operator()(const reco::SoftLeptonProperties &properties, bool use3d=true) const
Definition: LeptonSelector.cc:26
ParameterSet.h
reco::SoftLeptonProperties::Quality::Generic
Generic
Definition: TemplatedSoftLeptonTagInfo.h:53
btag::LeptonSelector::LeptonSelector
LeptonSelector(const edm::ParameterSet &params)
Definition: LeptonSelector.cc:12
btag
Definition: Matching.h:10
btag::LeptonSelector::any
Definition: LeptonSelector.h:26