CMS 3D CMS Logo

Geom::Cylindrical2Cartesian< T > Class Template Reference

Converts cylindtical coordinates to cartesian coordinates. More...

#include <DataFormats/GeometryVector/interface/CoordinateSets.h>

List of all members.

Public Member Functions

 Cylindrical2Cartesian (const T &r, const T &phi, const T &z)
 Construct from radius, azimuthal angle, and z component.
const T & phi () const
const T & r () const
x () const
y () const
const T & z () const

Private Attributes

phi_
r_
z_


Detailed Description

template<typename T>
class Geom::Cylindrical2Cartesian< T >

Converts cylindtical coordinates to cartesian coordinates.

Definition at line 35 of file CoordinateSets.h.


Constructor & Destructor Documentation

template<typename T>
Geom::Cylindrical2Cartesian< T >::Cylindrical2Cartesian ( const T &  r,
const T &  phi,
const T &  z 
) [inline]

Construct from radius, azimuthal angle, and z component.

The radius in the cylindrical frame is the transverse component.

Definition at line 40 of file CoordinateSets.h.

00040                                                                      :
00041             r_(r), phi_(phi), z_(z) {}


Member Function Documentation

template<typename T>
const T& Geom::Cylindrical2Cartesian< T >::phi (  )  const [inline]

Definition at line 44 of file CoordinateSets.h.

References Geom::Cylindrical2Cartesian< T >::phi_.

00044 {return phi_;}

template<typename T>
const T& Geom::Cylindrical2Cartesian< T >::r (  )  const [inline]

Definition at line 43 of file CoordinateSets.h.

References Geom::Cylindrical2Cartesian< T >::r_.

00043 {return r_;}

template<typename T>
T Geom::Cylindrical2Cartesian< T >::x (  )  const [inline]

Definition at line 47 of file CoordinateSets.h.

References funct::cos(), Geom::Cylindrical2Cartesian< T >::phi_, and Geom::Cylindrical2Cartesian< T >::r_.

00047 {return r_ * cos(phi_);}

template<typename T>
T Geom::Cylindrical2Cartesian< T >::y (  )  const [inline]

Definition at line 48 of file CoordinateSets.h.

References Geom::Cylindrical2Cartesian< T >::phi_, Geom::Cylindrical2Cartesian< T >::r_, and funct::sin().

00048 {return r_ * sin(phi_);}

template<typename T>
const T& Geom::Cylindrical2Cartesian< T >::z (  )  const [inline]

Definition at line 45 of file CoordinateSets.h.

References Geom::Cylindrical2Cartesian< T >::z_.

00045 {return z_;}


Member Data Documentation

template<typename T>
T Geom::Cylindrical2Cartesian< T >::phi_ [private]

Definition at line 52 of file CoordinateSets.h.

Referenced by Geom::Cylindrical2Cartesian< T >::phi(), Geom::Cylindrical2Cartesian< T >::x(), and Geom::Cylindrical2Cartesian< T >::y().

template<typename T>
T Geom::Cylindrical2Cartesian< T >::r_ [private]

Definition at line 51 of file CoordinateSets.h.

Referenced by Geom::Cylindrical2Cartesian< T >::r(), Geom::Cylindrical2Cartesian< T >::x(), and Geom::Cylindrical2Cartesian< T >::y().

template<typename T>
T Geom::Cylindrical2Cartesian< T >::z_ [private]

Definition at line 53 of file CoordinateSets.h.

Referenced by Geom::Cylindrical2Cartesian< T >::z().


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