Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef TrackReco_Error_h
0002 #define TrackReco_Error_h
0003 //

0004 // Symmetric matrix

0005 //

0006 #include "Rtypes.h"
0007 
0008 #define SMATRIX_USE_CONSTEXPR
0009 
0010 #include "Math/SMatrix.h"
0011 #include "Math/BinaryOperators.h"
0012 
0013 #include <vector>
0014 
0015 namespace math {
0016 
0017   /// fixed size error matrix with double components

0018   template <unsigned int N>
0019   struct ErrorD {
0020     typedef ROOT::Math::SMatrix<double, N, N, ROOT::Math::MatRepSym<double, N> > type;
0021   };
0022 
0023   /// fixed size error matrix with double components

0024   template <unsigned int N>
0025   struct ErrorF {
0026     typedef ROOT::Math::SMatrix<float, N, N, ROOT::Math::MatRepSym<float, N> > type;
0027   };
0028 
0029   /// fixed size error matrix

0030   template <unsigned int N>
0031   struct Error {
0032     typedef typename ErrorD<N>::type type;
0033   };
0034 
0035 }  // namespace math

0036 
0037 #endif