CMS 3D CMS Logo

CylindricalError3D< T > Class Template Reference

Obsolete. More...

#include <DataFormats/GeometryCommonDetAlgo/interface/CylindricalError3D.h>

List of all members.

Public Member Functions

cphiphi () const
crphi () const
crr () const
 CylindricalError3D (const AlgebraicSymMatrix33 &err)
 CylindricalError3D (const AlgebraicSymMatrix &err)
 CylindricalError3D (const CartesianError3D< T > &ge, const GlobalPoint &gp)
 CylindricalError3D ()
czphi () const
czr () const
czz () const
AlgebraicSymMatrix matrix () const
AlgebraicSymMatrix33 matrix_new () const
 ~CylindricalError3D ()

Private Attributes

DeepCopyPointer
< AlgebraicSymMatrix
theCylindricalError


Detailed Description

template<class T>
class CylindricalError3D< T >

Obsolete.

Definition at line 16 of file CylindricalError3D.h.


Constructor & Destructor Documentation

template<class T>
CylindricalError3D< T >::CylindricalError3D (  )  [inline]

Definition at line 20 of file CylindricalError3D.h.

template<class T>
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   }

template<class T>
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   }

template<class T>
CylindricalError3D< T >::CylindricalError3D ( const AlgebraicSymMatrix33 err  )  [inline]

Definition at line 50 of file CylindricalError3D.h.

template<class T>
CylindricalError3D< T >::~CylindricalError3D (  )  [inline]

Definition at line 53 of file CylindricalError3D.h.

00053 {}


Member Function Documentation

template<class T>
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   }

template<class T>
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   }

template<class T>
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   }

template<class T>
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   }

template<class T>
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   }

template<class T>
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   }

template<class T>
AlgebraicSymMatrix CylindricalError3D< T >::matrix ( void   )  const [inline]

Definition at line 79 of file CylindricalError3D.h.

References CylindricalError3D< T >::theCylindricalError.

00079                                     {  
00080     return *theCylindricalError;
00081   }

template<class T>
AlgebraicSymMatrix33 CylindricalError3D< T >::matrix_new (  )  const [inline]

Definition at line 83 of file CylindricalError3D.h.

00083                                           {
00084     return asSMatrix<3>(*theCartesianError);
00085   }


Member Data Documentation

template<class T>
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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:17:37 2009 for CMSSW by  doxygen 1.5.4