Main Page
Namespaces
Classes
Package Documentation
RecoBTag
ImpactParameter
interface
TemplatedNegativeTrackCountingComputer.h
Go to the documentation of this file.
1
#ifndef ImpactParameter_TemplatedNegativeTrackCountingComputer_h
2
#define ImpactParameter_TemplatedNegativeTrackCountingComputer_h
3
4
#include "
RecoBTag/ImpactParameter/interface/TemplatedTrackCountingComputer.h
"
5
6
template
<
class
Container,
class
Base>
7
class
TemplatedNegativeTrackCountingComputer
:
public
TemplatedTrackCountingComputer
<Container,Base>
8
{
9
public
:
10
TemplatedNegativeTrackCountingComputer
(
const
edm::ParameterSet
&
parameters
) :
TemplatedTrackCountingComputer
<
Container
,
Base
>(parameters)
11
{
12
}
13
14
float
discriminator
(
const
JetTagComputer::TagInfoHelper
& ti)
const
15
{
16
const
typename
TemplatedTrackCountingComputer<Container,Base>::TagInfo
& tkip = ti.
get
<
typename
TemplatedTrackCountingComputer<Container,Base>::TagInfo
>();
17
std::multiset<float> significances = this->
orderedSignificances
(tkip);
18
std::multiset<float>::iterator nth=significances.begin();
19
for
(
int
i
=0;
i
<this->
m_nthTrack
-1 && nth!=significances.end();
i
++) nth++;
20
if
(nth!=significances.end())
return
-(*nth);
else
return
-100.;
21
}
22
23
};
24
25
#endif // ImpactParameter_TemplatedNegativeTrackCountingComputer_h
JetTagComputer::TagInfoHelper::get
const T & get(unsigned int index=0) const
Definition:
JetTagComputer.h:49
mps_fire.i
i
Definition:
mps_fire.py:269
metProducer_cfi.parameters
parameters
Definition:
metProducer_cfi.py:60
TemplatedTrackCountingComputer
Definition:
TemplatedTrackCountingComputer.h:12
JetTagComputer::TagInfoHelper
Definition:
JetTagComputer.h:16
CustomConfigs.Base
def Base(process)
Definition:
CustomConfigs.py:17
TemplatedTrackCountingComputer.h
TemplatedNegativeTrackCountingComputer
Definition:
TemplatedNegativeTrackCountingComputer.h:7
TemplatedTrackCountingComputer::m_nthTrack
int m_nthTrack
Definition:
TemplatedTrackCountingComputer.h:107
TemplatedTrackCountingComputer::orderedSignificances
std::multiset< float > orderedSignificances(const TagInfo &tkip) const
Definition:
TemplatedTrackCountingComputer.h:66
TemplatedNegativeTrackCountingComputer::TemplatedNegativeTrackCountingComputer
TemplatedNegativeTrackCountingComputer(const edm::ParameterSet ¶meters)
Definition:
TemplatedNegativeTrackCountingComputer.h:10
edm::ParameterSet
Definition:
ParameterSet.h:36
reco::IPTagInfo
Definition:
IPTagInfo.h:51
reco::JetExtendedAssociation::Container
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
Definition:
JetExtendedAssociation.h:29
TemplatedNegativeTrackCountingComputer::discriminator
float discriminator(const JetTagComputer::TagInfoHelper &ti) const
Definition:
TemplatedNegativeTrackCountingComputer.h:14
Generated for CMSSW Reference Manual by
1.8.11