CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/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 }