Main Page
Namespaces
Classes
Package Documentation
RecoBTag
SoftLepton
src
LeptonTaggerDistance.cc
Go to the documentation of this file.
1
#include <limits>
2
3
#include "
DataFormats/BTauReco/interface/SoftLeptonTagInfo.h
"
4
#include "
RecoBTag/SoftLepton/interface/LeptonTaggerDistance.h
"
5
7
float
LeptonTaggerDistance::discriminator
(
const
TagInfoHelper
& tagInfo)
const
{
8
const
reco::SoftLeptonTagInfo
&
info
= tagInfo.
get
<
reco::SoftLeptonTagInfo
>();
9
// if there are any leptons, look for any one within the requested deltaR
10
for
(
unsigned
int
i
= 0;
i
< info.
leptons
();
i
++) {
11
if
(info.
properties
(
i
).
deltaR
<=
m_maxDistance
)
12
return
1.0;
13
}
14
// default value, used if there are no leptons associated to this jet
15
return
-
std::numeric_limits<float>::infinity
();
16
}
reco::SoftLeptonProperties::deltaR
float deltaR
Definition:
TemplatedSoftLeptonTagInfo.h:40
reco::TemplatedSoftLeptonTagInfo
Definition:
TemplatedSoftLeptonTagInfo.h:117
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition:
FWCollectionSummaryWidget.cc:170
LeptonTaggerDistance.h
JetTagComputer::TagInfoHelper::get
const T & get(unsigned int index=0) const
Definition:
JetTagComputer.h:49
mps_fire.i
i
Definition:
mps_fire.py:338
JetTagComputer::TagInfoHelper
Definition:
JetTagComputer.h:16
SoftLeptonTagInfo.h
reco::TemplatedSoftLeptonTagInfo::properties
const SoftLeptonProperties & properties(size_t i) const
Definition:
TemplatedSoftLeptonTagInfo.h:135
infinity
const double infinity
Definition:
CSCChamberFitter.cc:10
LeptonTaggerDistance::discriminator
float discriminator(const TagInfoHelper &tagInfo) const override
b-tag a jet based on track-to-jet pseudo-angular distance
Definition:
LeptonTaggerDistance.cc:7
LeptonTaggerDistance::m_maxDistance
float m_maxDistance
Definition:
LeptonTaggerDistance.h:34
reco::TemplatedSoftLeptonTagInfo::leptons
unsigned int leptons(void) const
Definition:
TemplatedSoftLeptonTagInfo.h:127
Generated for CMSSW Reference Manual by
1.8.11