Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoBTag
SoftLepton
interface
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
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
8
#include "
DataFormats/BTauReco/interface/SoftLeptonTagInfo.h
"
9
10
namespace
btag
{
11
12
class
LeptonSelector
{
13
public
:
14
LeptonSelector
(
const
edm::ParameterSet
¶ms);
15
~LeptonSelector
();
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,
29
positive
= 1
30
};
31
32
static
sign
option
(
const
std::string
& election);
33
34
sign
m_sign
;
35
reco::SoftLeptonProperties::Quality::Generic
m_leptonId
;
36
float
m_qualityCut
;
37
};
38
39
}
// namespace btag
40
41
#endif // RecoBTag_SoftLepton_LeptonSelector_h
reco::SoftLeptonProperties::Quality::Generic
Generic
Definition:
TemplatedSoftLeptonTagInfo.h:47
btag::LeptonSelector::m_qualityCut
float m_qualityCut
Definition:
LeptonSelector.h:36
btag::LeptonSelector::sign
sign
optionally select leptons based on their impact parameter sign
Definition:
LeptonSelector.h:26
SoftLeptonTagInfo.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
btag::LeptonSelector::m_sign
sign m_sign
Definition:
LeptonSelector.h:34
btag::LeptonSelector::isPositive
bool isPositive() const
Definition:
LeptonSelector.h:20
btag::LeptonSelector::LeptonSelector
LeptonSelector(const edm::ParameterSet ¶ms)
Definition:
LeptonSelector.cc:12
BTagSF.btag
tuple btag
Definition:
BTagSF.py:17
btag::LeptonSelector::positive
Definition:
LeptonSelector.h:29
btag::LeptonSelector::option
static sign option(const std::string &election)
Definition:
LeptonSelector.cc:43
btag::LeptonSelector::negative
Definition:
LeptonSelector.h:27
btag::LeptonSelector::isNegative
bool isNegative() const
Definition:
LeptonSelector.h:21
btag::LeptonSelector::any
Definition:
LeptonSelector.h:28
btag::LeptonSelector::operator()
bool operator()(const reco::SoftLeptonProperties &properties, bool use3d=true) const
Definition:
LeptonSelector.cc:28
btag::LeptonSelector::m_leptonId
reco::SoftLeptonProperties::Quality::Generic m_leptonId
Definition:
LeptonSelector.h:35
btag::LeptonSelector
Definition:
LeptonSelector.h:12
btag::LeptonSelector::~LeptonSelector
~LeptonSelector()
Definition:
LeptonSelector.cc:24
edm::ParameterSet
Definition:
ParameterSet.h:35
reco::SoftLeptonProperties
Definition:
TemplatedSoftLeptonTagInfo.h:15
btag::LeptonSelector::isAny
bool isAny() const
Definition:
LeptonSelector.h:19
Generated for CMSSW Reference Manual by
1.8.5