Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:51

0001 #include "DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h"
0002 
0003 AlgebraicVector RecHit2DLocalPos::parameters() const {
0004   AlgebraicVector result(2);
0005   LocalPoint lp = localPosition();
0006   result[0] = lp.x();
0007   result[1] = lp.y();
0008   return result;
0009 }
0010 
0011 /** local Error + AlignmentPositionError if this is set for the DetUnit */
0012 AlgebraicSymMatrix RecHit2DLocalPos::parametersError() const {
0013   AlgebraicSymMatrix m(2);
0014   LocalError le(localPositionError());
0015   m[0][0] = le.xx();
0016   m[0][1] = le.xy();
0017   m[1][1] = le.yy();
0018   return m;
0019 }
0020 
0021 std::vector<const TrackingRecHit*> RecHit2DLocalPos::recHits() const {
0022   std::vector<const TrackingRecHit*> nullvector;
0023   return nullvector;
0024 }
0025 std::vector<TrackingRecHit*> RecHit2DLocalPos::recHits() {
0026   std::vector<TrackingRecHit*> nullvector;
0027   return nullvector;
0028 }
0029 
0030 // static member definition
0031 static const AlgebraicMatrix initializeMatrix() {
0032   AlgebraicMatrix aMatrix(2, 5, 0);
0033   aMatrix[0][3] = 1;
0034   aMatrix[1][4] = 1;
0035   return aMatrix;
0036 }
0037 const AlgebraicMatrix RecHit2DLocalPos::theProjectionMatrix{initializeMatrix()};