Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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
public
:
9
TemplatedNegativeTrackCountingComputer
(
const
edm::ParameterSet
&
parameters
)
10
:
TemplatedTrackCountingComputer
<
Container
,
Base
>(parameters) {}
11
12
float
discriminator
(
const
JetTagComputer::TagInfoHelper
& ti)
const override
{
13
const
typename
TemplatedTrackCountingComputer<Container, Base>::TagInfo
& tkip =
14
ti.
get
<
typename
TemplatedTrackCountingComputer<Container, Base>::TagInfo
>();
15
std::multiset<float> significances = this->
orderedSignificances
(tkip);
16
std::multiset<float>::iterator nth = significances.begin();
17
for
(
int
i
= 0;
i
< this->
m_nthTrack
- 1 && nth != significances.end();
i
++)
18
nth++;
19
if
(nth != significances.end())
20
return
-(*nth);
21
else
22
return
-100.;
23
}
24
};
25
26
#endif // ImpactParameter_TemplatedNegativeTrackCountingComputer_h
JetTagComputer::TagInfoHelper::get
const T & get(unsigned int index=0) const
Definition:
JetTagComputer.h:42
mps_fire.i
i
Definition:
mps_fire.py:428
TemplatedNegativeTrackCountingComputer::discriminator
float discriminator(const JetTagComputer::TagInfoHelper &ti) const override
Definition:
TemplatedNegativeTrackCountingComputer.h:12
TemplatedTrackCountingComputer
Definition:
TemplatedTrackCountingComputer.h:12
JetTagComputer::TagInfoHelper
Definition:
JetTagComputer.h:16
BeamSpotPI::parameters
parameters
Definition:
BeamSpotPayloadInspectorHelper.h:33
TemplatedTrackCountingComputer.h
TemplatedNegativeTrackCountingComputer
Definition:
TemplatedNegativeTrackCountingComputer.h:7
TemplatedTrackCountingComputer::m_nthTrack
int m_nthTrack
Definition:
TemplatedTrackCountingComputer.h:115
TemplatedTrackCountingComputer::orderedSignificances
std::multiset< float > orderedSignificances(const TagInfo &tkip) const
Definition:
TemplatedTrackCountingComputer.h:69
TemplatedNegativeTrackCountingComputer::TemplatedNegativeTrackCountingComputer
TemplatedNegativeTrackCountingComputer(const edm::ParameterSet ¶meters)
Definition:
TemplatedNegativeTrackCountingComputer.h:9
CustomConfigs.Base
def Base
Definition:
CustomConfigs.py:17
edm::ParameterSet
Definition:
ParameterSet.h:47
reco::IPTagInfo
Definition:
IPTagInfo.h:48
reco::JetExtendedAssociation::Container
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
Definition:
JetExtendedAssociation.h:29
Generated for CMSSW Reference Manual by
1.8.5