00001 #ifndef GETLINECOVMATRIX_H 00002 #define GETLINECOVMATRIX_H 00003 00004 #include "DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h" 00005 #include "CLHEP/Matrix/Matrix.h" 00006 00007 // Class that calculates the Covariance Matrix of a Globalpoint 00008 // The GlobalPoint is on a straight line, that is defined by two 00009 // GlobalPoints( plus their Covariance Matrices) 00010 00011 00012 class GetLineCovMatrix { 00013 00014 public: 00015 00016 GetLineCovMatrix(GlobalPoint, GlobalPoint, GlobalError, GlobalError); 00017 00018 ~GetLineCovMatrix() {} 00019 00020 GlobalError GetMatrix(GlobalPoint); 00021 00022 private: 00023 00024 GlobalPoint PointOne; 00025 GlobalPoint PointTwo; 00026 CLHEP::HepMatrix CombinedErrorMatrix; // CombinedErrorMatrix of the two points that define the straight line 00027 CLHEP::HepMatrix B; // derivatives of the linear equation 00028 00029 }; 00030 00031 #endif