Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:21

0001 
0002 /*
0003  *  See header file for a description of this class.
0004  *
0005  *  \author S. Lacaprara, G. Cerminara
0006  */
0007 
0008 #include "DataFormats/TrackingRecHit/interface/RecHit1D.h"
0009 
0010 // #include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"
0011 
0012 // Just the x
0013 AlgebraicVector RecHit1D::parameters() const {
0014   AlgebraicVector result(1);
0015   result[0] = localPosition().x();
0016   return result;
0017 }
0018 
0019 // local Error + AlignmentPositionError if this is set for the DetUnit
0020 AlgebraicSymMatrix RecHit1D::parametersError() const {
0021   LocalError le = localPositionError();
0022   AlgebraicSymMatrix m(1);
0023   // FIXME: Remove this dependence from Geometry
0024   //   if ( det().alignmentPositionError()) {
0025   //     LocalError lape =
0026   //       ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(),
0027   //                     det().surface());
0028   //     m[0][0] = le.xx()+lape.xx();
0029   //   } else {
0030   m[0][0] = le.xx();
0031   //   }
0032   return m;
0033 }
0034 
0035 // Return an initialized matrix.
0036 static const AlgebraicMatrix initializeMatrix() {
0037   AlgebraicMatrix matrix(1, 5, 0);
0038   matrix[0][3] = 1;
0039   return matrix;
0040 }
0041 
0042 const AlgebraicMatrix RecHit1D::theProjectionMatrix(initializeMatrix());