DataFormats
GeometryCommonDetAlgo
interface
AlignmentPositionError.h
Go to the documentation of this file.
1
#ifndef ALIGNMENT_POSITION_ERROR_H
2
#define ALIGNMENT_POSITION_ERROR_H
3
4
#include "
DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h
"
5
10
class
AlignmentPositionError
{
11
public
:
12
AlignmentPositionError
(){};
13
14
AlignmentPositionError
(
float
xx
,
float
yy
,
float
zz
,
float
phixphix = 0,
float
phiyphiy = 0,
float
phizphiz = 0);
15
16
AlignmentPositionError
(
const
GlobalErrorExtended
& ge) :
theGlobalError
(ge){};
17
18
AlignmentPositionError
(
const
GlobalError
& ge);
19
20
~AlignmentPositionError
(){};
21
22
bool
valid
()
const
{
return
(
theGlobalError
.
cxx
() > 0 ||
theGlobalError
.
cyy
() > 0 ||
theGlobalError
.
czz
() > 0); }
23
24
const
GlobalErrorExtended
&
globalError
()
const
{
return
theGlobalError
; };
25
26
AlignmentPositionError
operator+
(
const
AlignmentPositionError
& ape)
const
{
27
return
AlignmentPositionError
(this->
globalError
() + ape.
globalError
());
28
};
29
30
AlignmentPositionError
operator-
(
const
AlignmentPositionError
& ape)
const
{
31
return
AlignmentPositionError
(this->
globalError
() - ape.
globalError
());
32
};
33
34
AlignmentPositionError
&
operator+=
(
const
AlignmentPositionError
& ape) {
35
theGlobalError
=
GlobalErrorExtended
(this->
globalError
() + ape.
globalError
());
36
return
*
this
;
37
};
38
39
AlignmentPositionError
&
operator-=
(
const
AlignmentPositionError
& ape) {
40
theGlobalError
=
GlobalErrorExtended
(this->
globalError
() - ape.
globalError
());
41
return
*
this
;
42
};
43
44
private
:
45
GlobalErrorExtended
theGlobalError
;
46
};
47
48
#endif // ALIGNMENT_POSITION_ERROR_H
AlignmentPositionError::AlignmentPositionError
AlignmentPositionError(const GlobalErrorExtended &ge)
Definition:
AlignmentPositionError.h:16
geometryCSVtoXML.zz
zz
Definition:
geometryCSVtoXML.py:19
AlignmentPositionError::~AlignmentPositionError
~AlignmentPositionError()
Definition:
AlignmentPositionError.h:20
AlignmentPositionError::operator+
AlignmentPositionError operator+(const AlignmentPositionError &ape) const
Definition:
AlignmentPositionError.h:26
AlignmentPositionError::valid
bool valid() const
Definition:
AlignmentPositionError.h:22
GlobalErrorExtended
GlobalErrorBaseExtended< double, ErrorMatrixTag > GlobalErrorExtended
Definition:
GlobalError.h:14
AlignmentPositionError::AlignmentPositionError
AlignmentPositionError()
Definition:
AlignmentPositionError.h:12
AlignmentPositionError::globalError
const GlobalErrorExtended & globalError() const
Definition:
AlignmentPositionError.h:24
AlignmentPositionError::theGlobalError
GlobalErrorExtended theGlobalError
Definition:
AlignmentPositionError.h:42
geometryCSVtoXML.yy
yy
Definition:
geometryCSVtoXML.py:19
GlobalErrorBaseExtended::cxx
T cxx() const
Definition:
GlobalErrorBaseExtended.h:107
GlobalError.h
GlobalErrorBase< double, ErrorMatrixTag >
GlobalErrorBaseExtended::cyy
T cyy() const
Definition:
GlobalErrorBaseExtended.h:119
AlignmentPositionError::operator-=
AlignmentPositionError & operator-=(const AlignmentPositionError &ape)
Definition:
AlignmentPositionError.h:39
AlignmentPositionError::operator+=
AlignmentPositionError & operator+=(const AlignmentPositionError &ape)
Definition:
AlignmentPositionError.h:34
GlobalErrorBaseExtended< double, ErrorMatrixTag >
GlobalErrorBaseExtended::czz
T czz() const
Definition:
GlobalErrorBaseExtended.h:129
AlignmentPositionError
Definition:
AlignmentPositionError.h:10
geometryCSVtoXML.xx
xx
Definition:
geometryCSVtoXML.py:19
AlignmentPositionError::operator-
AlignmentPositionError operator-(const AlignmentPositionError &ape) const
Definition:
AlignmentPositionError.h:30
Generated for CMSSW Reference Manual by
1.8.16