Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoVertex
VertexTools
src
VertexDistance.cc
Go to the documentation of this file.
1
#include "
RecoVertex/VertexTools/interface/VertexDistance.h
"
2
#include "
RecoVertex/VertexPrimitives/interface/VertexState.h
"
3
#include "
FWCore/Utilities/interface/Exception.h
"
4
#include <cfloat>
5
6
7
using namespace
reco
;
8
9
Measurement1D
VertexDistance::distance
(
const
VertexState
& vtx1,
10
const
VertexState
& vtx2)
const
11
{
12
return
distance(vtx1.
position
(), vtx1.
error
(),
13
vtx2.
position
(), vtx2.
error
());
14
}
15
16
Measurement1D
VertexDistance::distance
(
const
Vertex
& vtx1,
17
const
VertexState
& vtx2)
const
18
{
19
return
distance(
GlobalPoint
(
Basic3DVector<float>
(vtx1.
position
())),
20
GlobalError
(vtx1.
covariance
()),
21
vtx2.
position
(), vtx2.
error
());
22
}
23
24
25
Measurement1D
VertexDistance::distance
(
const
VertexState
& vtx1,
26
const
Vertex
& vtx2)
const
27
{
28
return
distance(vtx1.
position
(), vtx1.
error
(),
29
GlobalPoint
(
Basic3DVector<float>
(vtx2.
position
())),
30
GlobalError
(vtx2.
covariance
()));
31
}
32
33
34
Measurement1D
35
VertexDistance::distance
(
const
Vertex
& vtx1,
const
Vertex
& vtx2)
const
36
{
37
return
distance(
GlobalPoint
(
Basic3DVector<float>
(vtx1.
position
())),
38
GlobalError
(vtx1.
covariance
()),
39
GlobalPoint
(
Basic3DVector<float>
(vtx2.
position
())),
40
GlobalError
(vtx2.
covariance
()));
41
}
42
43
44
float
VertexDistance::compatibility
(
const
VertexState
& vtx1,
45
const
VertexState
& vtx2)
const
46
{
47
return
compatibility(vtx1.
position
(), vtx1.
error
(),
48
vtx2.
position
(), vtx2.
error
());
49
}
50
51
float
VertexDistance::compatibility
(
const
Vertex
& vtx1,
52
const
VertexState
& vtx2)
const
53
{
54
return
compatibility(
GlobalPoint
(
Basic3DVector<float>
(vtx1.
position
())),
55
GlobalError
(vtx1.
covariance
()),
56
vtx2.
position
(), vtx2.
error
());
57
}
58
59
float
VertexDistance::compatibility
(
const
VertexState
& vtx1,
60
const
Vertex
& vtx2)
const
61
{
62
return
compatibility(vtx1.
position
(), vtx1.
error
(),
63
GlobalPoint
(
Basic3DVector<float>
(vtx2.
position
())),
64
GlobalError
(vtx2.
covariance
()));
65
}
66
67
68
float
VertexDistance::compatibility
(
const
Vertex
& vtx1,
69
const
Vertex
& vtx2)
const
70
{
71
return
compatibility(
GlobalPoint
(
Basic3DVector<float>
(vtx1.
position
())),
72
GlobalError
(vtx1.
covariance
()),
73
GlobalPoint
(
Basic3DVector<float>
(vtx2.
position
())),
74
GlobalError
(vtx2.
covariance
()));
75
}
GlobalPoint
Global3DPoint GlobalPoint
Definition:
GlobalPoint.h:10
reco::Vertex::covariance
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition:
Vertex.h:110
VertexState::position
GlobalPoint position() const
Definition:
VertexState.h:29
VertexDistance::compatibility
virtual float compatibility(const reco::Vertex &, const reco::Vertex &) const
Definition:
VertexDistance.cc:68
reco::Vertex::position
const Point & position() const
position
Definition:
Vertex.h:93
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition:
GlobalError.h:11
VertexDistance.h
reco::Vertex
Definition:
Vertex.h:35
dt_offlineAnalysis_common_cff.reco
tuple reco
Definition:
dt_offlineAnalysis_common_cff.py:54
Basic3DVector< float >
VertexState.h
Exception.h
VertexDistance::distance
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
Definition:
VertexDistance.cc:35
Measurement1D
Definition:
Measurement1D.h:11
VertexState::error
GlobalError error() const
Definition:
VertexState.h:34
VertexState
Definition:
VertexState.h:12
Generated for CMSSW Reference Manual by
1.8.5