src
RecoHI
HiTracking
interface
BestVertexComparator.h
Go to the documentation of this file.
1
#ifndef RecoHI_HiTracking_BestVertexComparator_h
2
#define RecoHI_HiTracking_BestVertexComparator_h
3
4
template
<
typename
T>
5
struct
GreaterByTracksSize
{
6
typedef
T
first_argument_type
;
7
typedef
T
second_argument_type
;
8
bool
operator()
(
const
T
&
t1
,
const
T
&
t2
)
const
{
return
t1
.tracksSize() >
t2
.tracksSize(); }
9
};
10
11
template
<
typename
T>
12
struct
LessByNormalizedChi2
{
13
typedef
T
first_argument_type
;
14
typedef
T
second_argument_type
;
15
bool
operator()
(
const
T
&
t1
,
const
T
&
t2
)
const
{
return
t1
.normalizeChi2() <
t2
.normalizedChi2(); }
16
};
17
18
#endif
LessByNormalizedChi2
Definition:
BestVertexComparator.h:12
GreaterByTracksSize::first_argument_type
T first_argument_type
Definition:
BestVertexComparator.h:6
GreaterByTracksSize::second_argument_type
T second_argument_type
Definition:
BestVertexComparator.h:7
LessByNormalizedChi2::operator()
bool operator()(const T &t1, const T &t2) const
Definition:
BestVertexComparator.h:15
LessByNormalizedChi2::first_argument_type
T first_argument_type
Definition:
BestVertexComparator.h:13
RandomServiceHelper.t1
t1
Definition:
RandomServiceHelper.py:256
GreaterByTracksSize
Definition:
BestVertexComparator.h:5
GreaterByTracksSize::operator()
bool operator()(const T &t1, const T &t2) const
Definition:
BestVertexComparator.h:8
LessByNormalizedChi2::second_argument_type
T second_argument_type
Definition:
BestVertexComparator.h:14
T
long double T
Definition:
Basic3DVectorLD.h:48
RandomServiceHelper.t2
t2
Definition:
RandomServiceHelper.py:257
Generated for CMSSW Reference Manual by
1.8.14