#include <DataFormats/GeometryCommonDetAlgo/interface/CylindricalError3D.h>
Public Member Functions | |
T | cphiphi () const |
T | crphi () const |
T | crr () const |
CylindricalError3D (const AlgebraicSymMatrix33 &err) | |
CylindricalError3D (const AlgebraicSymMatrix &err) | |
CylindricalError3D (const CartesianError3D< T > &ge, const GlobalPoint &gp) | |
CylindricalError3D () | |
T | czphi () const |
T | czr () const |
T | czz () const |
AlgebraicSymMatrix | matrix () const |
AlgebraicSymMatrix33 | matrix_new () const |
~CylindricalError3D () | |
Private Attributes | |
DeepCopyPointer < AlgebraicSymMatrix > | theCylindricalError |
Definition at line 16 of file CylindricalError3D.h.
CylindricalError3D< T >::CylindricalError3D | ( | ) | [inline] |
Definition at line 20 of file CylindricalError3D.h.
00020 : theCylindricalError(new AlgebraicSymMatrix(3,0)) {}
CylindricalError3D< T >::CylindricalError3D | ( | const CartesianError3D< T > & | ge, | |
const GlobalPoint & | gp | |||
) | [inline] |
Definition at line 22 of file CylindricalError3D.h.
References CartesianError3D< T >::cxx(), CartesianError3D< T >::cyx(), CartesianError3D< T >::cyy(), CartesianError3D< T >::czx(), CartesianError3D< T >::czy(), CartesianError3D< T >::czz(), funct::pow(), r, PV3DBase< T, PVType, FrameType >::x(), x, PV3DBase< T, PVType, FrameType >::y(), and y.
00022 : 00023 theCylindricalError(new AlgebraicSymMatrix(3,0)) { 00024 T r=gp.r(); 00025 T x=gp.x(); 00026 T y=gp.y(); 00027 T cxx=ge.cxx(); 00028 T cxy=ge.cyx(); 00029 T cyy=ge.cyy(); 00030 T czx=ge.czx(); 00031 T czy=ge.czy(); 00032 (*theCylindricalError)(1,1)=(pow(x,2)*cxx+2*x*y*cxy+pow(y,2)*cyy)/pow(r,2); 00033 (*theCylindricalError)(2,1)=((cyy-cxx)*x*y+cxy*pow(r,2))/pow(r,3); 00034 (*theCylindricalError)(2,2)=(pow(x,2)*cyy-2*x*y*cxy+pow(y,2)*cxx)/pow(r,4); 00035 (*theCylindricalError)(3,1)=(x*czx+y*czy)/r; 00036 (*theCylindricalError)(3,2)=(x*czy-y*czx)/pow(r,2); 00037 (*theCylindricalError)(3,3)=ge.czz(); 00038 }
CylindricalError3D< T >::CylindricalError3D | ( | const AlgebraicSymMatrix & | err | ) | [inline] |
Definition at line 40 of file CylindricalError3D.h.
References Exception, and CylindricalError3D< T >::theCylindricalError.
00040 { 00041 if (err.num_row() == 3) 00042 theCylindricalError = new AlgebraicSymMatrix(err); 00043 else { 00044 theCylindricalError= 0; 00045 //throw DetLogicError("Not 3x3 Error Matrix: set pointer to 0"); 00046 throw cms::Exception("DetLogicError")<<"Not 3x3 Error Matrix: set pointer to 0\n"; 00047 } 00048 }
CylindricalError3D< T >::CylindricalError3D | ( | const AlgebraicSymMatrix33 & | err | ) | [inline] |
Definition at line 50 of file CylindricalError3D.h.
00050 : 00051 theCylindricalError(new AlgebraicSymMatrix(asHepMatrix(err))) { }
CylindricalError3D< T >::~CylindricalError3D | ( | ) | [inline] |
T CylindricalError3D< T >::cphiphi | ( | ) | const [inline] |
Definition at line 63 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00063 { 00064 return (*theCylindricalError)(2,2); 00065 }
T CylindricalError3D< T >::crphi | ( | ) | const [inline] |
Definition at line 59 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00059 { 00060 return (*theCylindricalError)(2,1); 00061 }
T CylindricalError3D< T >::crr | ( | ) | const [inline] |
Definition at line 55 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00055 { 00056 return (*theCylindricalError)(1,1); 00057 }
T CylindricalError3D< T >::czphi | ( | ) | const [inline] |
Definition at line 71 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00071 { 00072 return (*theCylindricalError)(3,2); 00073 }
T CylindricalError3D< T >::czr | ( | ) | const [inline] |
Definition at line 67 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00067 { 00068 return (*theCylindricalError)(3,1); 00069 }
T CylindricalError3D< T >::czz | ( | ) | const [inline] |
Definition at line 75 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00075 { 00076 return (*theCylindricalError)(3,3); 00077 }
AlgebraicSymMatrix CylindricalError3D< T >::matrix | ( | void | ) | const [inline] |
Definition at line 79 of file CylindricalError3D.h.
References CylindricalError3D< T >::theCylindricalError.
00079 { 00080 return *theCylindricalError; 00081 }
AlgebraicSymMatrix33 CylindricalError3D< T >::matrix_new | ( | ) | const [inline] |
DeepCopyPointer<AlgebraicSymMatrix> CylindricalError3D< T >::theCylindricalError [private] |
Definition at line 90 of file CylindricalError3D.h.
Referenced by CylindricalError3D< T >::cphiphi(), CylindricalError3D< T >::crphi(), CylindricalError3D< T >::crr(), CylindricalError3D< T >::CylindricalError3D(), CylindricalError3D< T >::czphi(), CylindricalError3D< T >::czr(), CylindricalError3D< T >::czz(), and CylindricalError3D< T >::matrix().