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 
13 
14 // Just the x
17  result[0] = localPosition().x();
18  return result;
19 }
20 
21 
22 
23 // local Error + AlignmentPositionError if this is set for the DetUnit
27  // FIXME: Remove this dependence from Geometry
28 // if ( det().alignmentPositionError()) {
29 // LocalError lape =
30 // ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(),
31 // det().surface());
32 // m[0][0] = le.xx()+lape.xx();
33 // } else {
34  m[0][0] = le.xx();
35 // }
36  return m;
37 }
38 
39 // Return an initialized matrix.
41  AlgebraicMatrix matrix( 1, 5, 0);
42  matrix[0][3] = 1;
43  return matrix;
44 }
45 
float xx() const
Definition: LocalError.h:24
virtual LocalPoint localPosition() const =0
Local position.
CLHEP::HepMatrix AlgebraicMatrix
virtual AlgebraicSymMatrix parametersError() const
Return just "(sigma_x)^2".
Definition: RecHit1D.cc:24
CLHEP::HepVector AlgebraicVector
static const AlgebraicMatrix initializeMatrix()
Definition: RecHit1D.cc:40
virtual LocalError localPositionError() const =0
Error on the local position.
CLHEP::HepSymMatrix AlgebraicSymMatrix
T x() const
Definition: PV3DBase.h:62
static const AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:58
virtual AlgebraicVector parameters() const
Return just the x.
Definition: RecHit1D.cc:15