#include <LeptonSelector.h>
Public Member Functions | |
bool | isAny () const |
bool | isNegative () const |
bool | isPositive () const |
LeptonSelector (const edm::ParameterSet ¶ms) | |
bool | operator() (const reco::SoftLeptonProperties &properties, bool use3d=true) const |
~LeptonSelector () | |
Private Types | |
enum | sign { negative = -1, any = 0, positive = 1 } |
optionally select leptons based on their impact parameter sign More... | |
Static Private Member Functions | |
static sign | option (const std::string &election) |
Private Attributes | |
reco::SoftLeptonProperties::Quality::Generic | m_leptonId |
float | m_qualityCut |
sign | m_sign |
Definition at line 12 of file LeptonSelector.h.
|
private |
optionally select leptons based on their impact parameter sign
Enumerator | |
---|---|
negative | |
any | |
positive |
Definition at line 26 of file LeptonSelector.h.
LeptonSelector::LeptonSelector | ( | const edm::ParameterSet & | params | ) |
Definition at line 12 of file LeptonSelector.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), softMuonTagInfos_cfi::leptonId, m_leptonId, m_qualityCut, and AlCaHLTBitMon_QueryRunRegistry::string.
LeptonSelector::~LeptonSelector | ( | ) |
Definition at line 24 of file LeptonSelector.cc.
|
inline |
Definition at line 19 of file LeptonSelector.h.
|
inline |
Definition at line 21 of file LeptonSelector.h.
References m_sign, and negative.
Referenced by MuonTagger::discriminator(), ElectronTagger::discriminator(), LeptonTaggerByIP::discriminator(), and operator()().
|
inline |
Definition at line 20 of file LeptonSelector.h.
References m_sign, and positive.
Referenced by operator()().
bool LeptonSelector::operator() | ( | const reco::SoftLeptonProperties & | properties, |
bool | use3d = true |
||
) | const |
Definition at line 28 of file LeptonSelector.cc.
References reco::SoftLeptonProperties::Quality::btagLeptonCands, isNegative(), isPositive(), m_leptonId, m_qualityCut, jets_cff::quality, reco::SoftLeptonProperties::quality(), reco::SoftLeptonProperties::sip2dsig, reco::SoftLeptonProperties::sip3dsig, and reco::SoftLeptonProperties::Quality::undef.
|
staticprivate |
Definition at line 43 of file LeptonSelector.cc.
References any, edm::errors::Configuration, Exception, negative, and positive.
|
private |
Definition at line 35 of file LeptonSelector.h.
Referenced by LeptonSelector(), and operator()().
|
private |
Definition at line 36 of file LeptonSelector.h.
Referenced by LeptonSelector(), and operator()().
|
private |
Definition at line 34 of file LeptonSelector.h.
Referenced by isAny(), isNegative(), and isPositive().