Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
9
return
t1.tracksSize() > t2.tracksSize();
10
}
11
};
12
13
template
<
typename
T>
14
struct
LessByNormalizedChi2
{
15
typedef
T
first_argument_type
;
16
typedef
T
second_argument_type
;
17
bool
operator()
(
const
T
& t1,
const
T
&
t2
)
const
{
18
return
t1.normalizeChi2() < t2.normalizedChi2();
19
}
20
};
21
22
#endif
LessByNormalizedChi2
Definition:
BestVertexComparator.h:14
GreaterByTracksSize::first_argument_type
T first_argument_type
Definition:
BestVertexComparator.h:6
GreaterByTracksSize::operator()
bool operator()(const T &t1, const T &t2) const
Definition:
BestVertexComparator.h:8
GreaterByTracksSize::second_argument_type
T second_argument_type
Definition:
BestVertexComparator.h:7
LessByNormalizedChi2::first_argument_type
T first_argument_type
Definition:
BestVertexComparator.h:15
reco::t2
auto const T2 &decltype(t1.eta()) t2
Definition:
deltaR.h:18
GreaterByTracksSize
Definition:
BestVertexComparator.h:5
LessByNormalizedChi2::second_argument_type
T second_argument_type
Definition:
BestVertexComparator.h:16
LessByNormalizedChi2::operator()
bool operator()(const T &t1, const T &t2) const
Definition:
BestVertexComparator.h:17
T
long double T
Definition:
Basic3DVectorLD.h:57
Generated for CMSSW Reference Manual by
1.8.5