test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
i
int i
Definition:
DBlmapReader.cc:9
JetTagComputer::TagInfoHelper::get
const T & get(unsigned int index=0) const
Definition:
JetTagComputer.h:49
TemplatedTrackCountingComputer
Definition:
TemplatedTrackCountingComputer.h:12
JetTagComputer::TagInfoHelper
Definition:
JetTagComputer.h:16
TemplatedTrackCountingComputer.h
HLT_25ns10e33_v2_cff.parameters
tuple parameters
Definition:
HLT_25ns10e33_v2_cff.py:3864
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
CustomConfigs.Base
def Base
Definition:
CustomConfigs.py:18
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.5