Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
Vertex.h
reco::btag::Vertices::RecoVertex
Definition:
VertexTypes.h:18
GlobalError.h
GlobalErrorBase::cxx
T cxx() const
Definition:
GlobalErrorBase.h:97
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::czx
T czx() const
Definition:
GlobalErrorBase.h:103
GlobalErrorBase::cyy
T cyy() const
Definition:
GlobalErrorBase.h:101
GlobalErrorBase::cyx
T cyx() const
Definition:
GlobalErrorBase.h:99
GlobalErrorBase< double, ErrorMatrixTag >
GlobalErrorBase::czz
T czz() const
Definition:
GlobalErrorBase.h:107
GlobalErrorBase::czy
T czy() const
Definition:
GlobalErrorBase.h:105
relativeConstraints.error
tuple error
Definition:
relativeConstraints.py:56
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.5