src
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
&
params
);
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
{
negative
= -1,
any
= 0,
positive
= 1 };
27
28
static
sign
option
(
const
std::string
&election);
29
30
sign
m_sign
;
31
reco::SoftLeptonProperties::Quality::Generic
m_leptonId
;
32
float
m_qualityCut
;
33
};
34
35
}
// namespace btag
36
37
#endif // RecoBTag_SoftLepton_LeptonSelector_h
reco::SoftLeptonProperties::Quality::Generic
Generic
Definition:
TemplatedSoftLeptonTagInfo.h:53
btag::LeptonSelector::operator()
bool operator()(const reco::SoftLeptonProperties &properties, bool use3d=true) const
Definition:
LeptonSelector.cc:26
btag::LeptonSelector::m_qualityCut
float m_qualityCut
Definition:
LeptonSelector.h:32
btag::LeptonSelector::sign
sign
optionally select leptons based on their impact parameter sign
Definition:
LeptonSelector.h:26
btag::LeptonSelector::isAny
bool isAny() const
Definition:
LeptonSelector.h:19
SoftLeptonTagInfo.h
btag
Definition:
Matching.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
btag::LeptonSelector::m_sign
sign m_sign
Definition:
LeptonSelector.h:30
btag::LeptonSelector::LeptonSelector
LeptonSelector(const edm::ParameterSet ¶ms)
Definition:
LeptonSelector.cc:12
submitPVValidationJobs.params
def params
Definition:
submitPVValidationJobs.py:482
btag::LeptonSelector::positive
Definition:
LeptonSelector.h:26
HLT_2023v12_cff.use3d
use3d
Definition:
HLT_2023v12_cff.py:4392
btag::LeptonSelector::option
static sign option(const std::string &election)
Definition:
LeptonSelector.cc:39
btag::LeptonSelector::negative
Definition:
LeptonSelector.h:26
btag::LeptonSelector::any
Definition:
LeptonSelector.h:26
btag::LeptonSelector::isNegative
bool isNegative() const
Definition:
LeptonSelector.h:21
btag::LeptonSelector::m_leptonId
reco::SoftLeptonProperties::Quality::Generic m_leptonId
Definition:
LeptonSelector.h:31
btag::LeptonSelector
Definition:
LeptonSelector.h:12
btag::LeptonSelector::isPositive
bool isPositive() const
Definition:
LeptonSelector.h:20
btag::LeptonSelector::~LeptonSelector
~LeptonSelector()
Definition:
LeptonSelector.cc:24
edm::ParameterSet
Definition:
ParameterSet.h:47
reco::SoftLeptonProperties
Definition:
TemplatedSoftLeptonTagInfo.h:15
Generated for CMSSW Reference Manual by
1.8.14