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
reco::Vertex::Error
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition:
Vertex.h:44
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
GlobalErrorBase::czy
T czy() const
Definition:
GlobalErrorBase.h:105
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition:
GlobalError.h:13
GlobalErrorBase::cyy
T cyy() const
Definition:
GlobalErrorBase.h:101
GlobalErrorBase::cxx
T cxx() const
Definition:
GlobalErrorBase.h:97
RecoVertex
Definition:
ConvertError.h:7
RecoVertex::convertError
reco::Vertex::Error convertError(const GlobalError &ge)
Definition:
ConvertError.h:8
GlobalErrorBase::cyx
T cyx() const
Definition:
GlobalErrorBase.h:99
GlobalError.h
GlobalErrorBase< double, ErrorMatrixTag >
Vertex.h
GlobalErrorBase::czz
T czz() const
Definition:
GlobalErrorBase.h:107
GlobalPoint.h
GlobalErrorBase::czx
T czx() const
Definition:
GlobalErrorBase.h:103
Generated for CMSSW Reference Manual by
1.8.16