Main Page
Namespaces
Classes
Package Documentation
RecoBTag
SoftLepton
src
LeptonTaggerByIP.cc
Go to the documentation of this file.
1
#include <limits>
2
3
#include "
DataFormats/BTauReco/interface/CandSoftLeptonTagInfo.h
"
4
#include "
RecoBTag/SoftLepton/interface/LeptonTaggerByIP.h
"
5
#include "
RecoBTag/SoftLepton/interface/LeptonSelector.h
"
6
8
float
LeptonTaggerByIP::discriminator
(
const
TagInfoHelper
& tagInfo)
const
{
9
// default value, used if there are no leptons associated to this jet
10
float
bestTag = -
std::numeric_limits<float>::infinity
();
11
const
reco::CandSoftLeptonTagInfo
&
info
= tagInfo.
get
<
reco::CandSoftLeptonTagInfo
>();
12
// if there are multiple leptons, look for the one with the highest pT_rel
13
for
(
unsigned
int
i
= 0;
i
< info.
leptons
();
i
++) {
14
const
reco::SoftLeptonProperties
& properties = info.
properties
(
i
);
15
float
sipsig =
m_use3d
? properties.
sip3dsig
: properties.
sip2dsig
;
16
if
(
m_selector
.
isNegative
())
17
sipsig = -sipsig;
18
if
(
m_selector
(properties,
m_use3d
)) {
19
float
tag
= sipsig;
20
if
(tag > bestTag)
21
bestTag =
tag
;
22
}
23
}
24
return
bestTag;
25
}
reco::TemplatedSoftLeptonTagInfo
Definition:
TemplatedSoftLeptonTagInfo.h:117
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition:
FWCollectionSummaryWidget.cc:170
JetTagComputer::TagInfoHelper::get
const T & get(unsigned int index=0) const
Definition:
JetTagComputer.h:49
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition:
GlobalPosition_Frontier_DevDB_cff.py:11
mps_fire.i
i
Definition:
mps_fire.py:338
JetTagComputer::TagInfoHelper
Definition:
JetTagComputer.h:16
reco::TemplatedSoftLeptonTagInfo::properties
const SoftLeptonProperties & properties(size_t i) const
Definition:
TemplatedSoftLeptonTagInfo.h:135
LeptonSelector.h
LeptonTaggerByIP.h
infinity
const double infinity
Definition:
CSCChamberFitter.cc:10
reco::SoftLeptonProperties::sip3dsig
float sip3dsig
Definition:
TemplatedSoftLeptonTagInfo.h:33
LeptonTaggerByIP::m_selector
btag::LeptonSelector m_selector
Definition:
LeptonTaggerByIP.h:37
btag::LeptonSelector::isNegative
bool isNegative() const
Definition:
LeptonSelector.h:21
reco::SoftLeptonProperties::sip2dsig
float sip2dsig
Definition:
TemplatedSoftLeptonTagInfo.h:32
LeptonTaggerByIP::discriminator
float discriminator(const TagInfoHelper &tagInfo) const override
b-tag a jet based on track-to-jet parameters in the extened info collection
Definition:
LeptonTaggerByIP.cc:8
reco::SoftLeptonProperties
Definition:
TemplatedSoftLeptonTagInfo.h:15
LeptonTaggerByIP::m_use3d
bool m_use3d
Definition:
LeptonTaggerByIP.h:35
reco::TemplatedSoftLeptonTagInfo::leptons
unsigned int leptons(void) const
Definition:
TemplatedSoftLeptonTagInfo.h:127
CandSoftLeptonTagInfo.h
Generated for CMSSW Reference Manual by
1.8.11