RecoVertex
VertexPrimitives
interface
ConvertError.h
Go to the documentation of this file.
1
#ifndef RecoVertex_ConvertError_h
2
#define RecoVertex_ConvertError_h
3
#include "
DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h
"
4
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
5
#include "
DataFormats/VertexReco/interface/Vertex.h
"
6
7
namespace
RecoVertex
{
8
inline
reco::Vertex::Error
convertError
(
const
GlobalError
& ge) {
9
reco::Vertex::Error
error
;
10
error
(0, 0) = ge.
cxx
();
11
error
(0, 1) = ge.
cyx
();
12
error
(0, 2) = ge.
czx
();
13
error
(1, 1) = ge.
cyy
();
14
error
(1, 2) = ge.
czy
();
15
error
(2, 2) = ge.
czz
();
16
return
error
;
17
}
18
19
inline
GlobalError
convertError
(
const
reco::Vertex::Error
&
error
) {
20
return
GlobalError
(
error
(0, 0),
error
(0, 1),
error
(1, 1),
error
(0, 2),
error
(1, 2),
error
(2, 2));
21
}
22
}
// namespace RecoVertex
23
24
#endif
GlobalErrorBase::czy
T czy() const
Definition:
GlobalErrorBase.h:105
Vertex.h
RecoVertex
Definition:
ConvertError.h:7
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
GlobalError.h
RecoVertex::convertError
reco::Vertex::Error convertError(const GlobalError &ge)
Definition:
ConvertError.h:8
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition:
GlobalError.h:13
reco::Vertex::Error
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition:
Vertex.h:44
GlobalErrorBase::cyx
T cyx() const
Definition:
GlobalErrorBase.h:99
GlobalErrorBase::cxx
T cxx() const
Definition:
GlobalErrorBase.h:97
GlobalErrorBase::cyy
T cyy() const
Definition:
GlobalErrorBase.h:101
GlobalErrorBase::czx
T czx() const
Definition:
GlobalErrorBase.h:103
GlobalErrorBase< double, ErrorMatrixTag >
GlobalErrorBase::czz
T czz() const
Definition:
GlobalErrorBase.h:107
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.14