CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/DataFormats/TrackingRecHit/src/RecHit2DLocalPos.cc

Go to the documentation of this file.
00001 #include "DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h"
00002 
00003 void RecHit2DLocalPos::initialize() const
00004 {
00005   theProjectionMatrix = AlgebraicMatrix( 2, 5, 0);
00006   theProjectionMatrix[0][3] = 1;
00007   theProjectionMatrix[1][4] = 1;
00008 
00009   isInitialized = true;
00010 }
00011 
00012 AlgebraicVector RecHit2DLocalPos::parameters() const 
00013 {
00014   AlgebraicVector result(2);
00015   LocalPoint lp = localPosition();
00016   result[0] = lp.x();
00017   result[1] = lp.y();
00018   return result;
00019 }
00020 
00021 
00023 AlgebraicSymMatrix RecHit2DLocalPos::parametersError() const {
00024   AlgebraicSymMatrix m(2);
00025   LocalError le( localPositionError());
00026   m[0][0] = le.xx();
00027   m[0][1] = le.xy();
00028   m[1][1] = le.yy();
00029   return m;
00030 }
00031 
00032 std::vector<const TrackingRecHit*> RecHit2DLocalPos::recHits() const {
00033   std::vector<const TrackingRecHit*> nullvector;
00034   return nullvector; 
00035 }
00036 std::vector<TrackingRecHit*> RecHit2DLocalPos::recHits() {
00037   std::vector<TrackingRecHit*> nullvector;
00038   return nullvector; 
00039 }
00040 
00041 
00042 
00043 // static member definition
00044 
00045 bool RecHit2DLocalPos::isInitialized( false);
00046 AlgebraicMatrix RecHit2DLocalPos::theProjectionMatrix;