CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/DataFormats/TrackerRecHit2D/src/GSSiTrackerRecHit2DLocalPos.cc

Go to the documentation of this file.
00001 #include "DataFormats/TrackerRecHit2D/interface/GSSiTrackerRecHit2DLocalPos.h"
00002 
00003 void 
00004 GSSiTrackerRecHit2DLocalPos::getKfComponents( KfComponentsHolder & holder ) const 
00005 {
00006    //std::cout << "Call to KfComponentsHolder::genericFill should be optimized here " << std::endl;
00007    AlgebraicVector2 & pars = holder.params<2>();
00008    pars[0] = pos_.x(); 
00009    pars[1] = pos_.y();
00010 
00011    AlgebraicSymMatrix22 & errs = holder.errors<2>();
00012    errs(0,0) = err_.xx();
00013    errs(0,1) = err_.xy();
00014    errs(1,1) = err_.yy();
00015 
00016    
00017    AlgebraicMatrix25 & proj = holder.projection<2>();
00018    proj(0,3) = 1;
00019    proj(1,4) = 1;
00020 
00021    holder.measuredParams<2>() = AlgebraicVector2( & holder.tsosLocalParameters().At(3), 2 );
00022    holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>( 3, 3 );
00023 
00024    //std::cout << "======== MYSELF ==========" << std::endl;
00025    //holder.dump<2>();
00026    //std::cout << "======== GENERIC ==========" << std::endl;
00027    //holder.genericFill(*this);
00028    //holder.dump<2>();
00029 }