CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/DataFormats/TrackReco/src/fillCovariance.cc

Go to the documentation of this file.
00001 #include "DataFormats/TrackReco/interface/fillCovariance.h"
00002 
00003 namespace reco {
00004   PerigeeCovarianceMatrix & fillCovariance( PerigeeCovarianceMatrix & v, const float * data ) {
00005     typedef unsigned int index;
00006     index idx = 0;
00007     for( index i = 0; i < 5; ++ i ) 
00008       for( index j = 0; j <= i; ++ j )
00009         v( i, j ) = data[ idx ++ ];
00010     return v;
00011   }
00012 }