CMS 3D CMS Logo

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 
9 
10 // #include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"
11 
12 // Just the x
15  result[0] = localPosition().x();
16  return result;
17 }
18 
19 // local Error + AlignmentPositionError if this is set for the DetUnit
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.
37  AlgebraicMatrix matrix(1, 5, 0);
38  matrix[0][3] = 1;
39  return matrix;
40 }
41 
T x() const
Definition: PV3DBase.h:59
LocalError localPositionError() const override=0
Error on the local position.
CLHEP::HepMatrix AlgebraicMatrix
LocalPoint localPosition() const override=0
Local position.
AlgebraicVector parameters() const override
Return just the x.
Definition: RecHit1D.cc:13
CLHEP::HepVector AlgebraicVector
static const AlgebraicMatrix initializeMatrix()
Definition: RecHit1D.cc:36
CLHEP::HepSymMatrix AlgebraicSymMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:46
float xx() const
Definition: LocalError.h:22
AlgebraicSymMatrix parametersError() const override
Return just "(sigma_x)^2".
Definition: RecHit1D.cc:20