DataFormats
TrackingRecHit
src
RecHit1D.cc
Go to the documentation of this file.
1
2
/*
3
* See header file for a description of this class.
4
*
5
* \author S. Lacaprara, G. Cerminara
6
*/
7
8
#include "
DataFormats/TrackingRecHit/interface/RecHit1D.h
"
9
10
// #include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"
11
12
// Just the x
13
AlgebraicVector
RecHit1D::parameters
()
const
{
14
AlgebraicVector
result
(1);
15
result
[0] =
localPosition
().
x
();
16
return
result
;
17
}
18
19
// local Error + AlignmentPositionError if this is set for the DetUnit
20
AlgebraicSymMatrix
RecHit1D::parametersError
()
const
{
21
LocalError
le =
localPositionError
();
22
AlgebraicSymMatrix
m
(1);
23
// FIXME: Remove this dependence from Geometry
24
// if ( det().alignmentPositionError()) {
25
// LocalError lape =
26
// ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(),
27
// det().surface());
28
// m[0][0] = le.xx()+lape.xx();
29
// } else {
30
m
[0][0] = le.
xx
();
31
// }
32
return
m
;
33
}
34
35
// Return an initialized matrix.
36
static
const
AlgebraicMatrix
initializeMatrix
() {
37
AlgebraicMatrix
matrix
(1, 5, 0);
38
matrix
[0][3] = 1;
39
return
matrix
;
40
}
41
42
const
AlgebraicMatrix
RecHit1D::theProjectionMatrix
(
initializeMatrix
());
makeMuonMisalignmentScenario.matrix
list matrix
Definition:
makeMuonMisalignmentScenario.py:141
PV3DBase::x
T x() const
Definition:
PV3DBase.h:59
initializeMatrix
static const AlgebraicMatrix initializeMatrix()
Definition:
RecHit1D.cc:36
RecHit1D.h
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition:
AlgebraicObjects.h:13
LocalError::xx
float xx() const
Definition:
LocalError.h:22
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:72
RecHit1D::parametersError
AlgebraicSymMatrix parametersError() const override
Return just "(sigma_x)^2".
Definition:
RecHit1D.cc:20
RecHit1D::localPositionError
LocalError localPositionError() const override=0
Error on the local position.
LocalError
Definition:
LocalError.h:12
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition:
AlgebraicObjects.h:15
RecHit1D::parameters
AlgebraicVector parameters() const override
Return just the x.
Definition:
RecHit1D.cc:13
RecHit1D::localPosition
LocalPoint localPosition() const override=0
Local position.
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition:
AlgebraicObjects.h:14
RecHit1D::theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition:
RecHit1D.h:46
mps_fire.result
result
Definition:
mps_fire.py:303
Generated for CMSSW Reference Manual by
1.8.16