CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Geom::Cylindrical2Cartesian< T > Class Template Reference

#include <CoordinateSets.h>

Public Member Functions

 Cylindrical2Cartesian (const T &r, const T &phi, const T &z)
 
const Tphi () const
 
const Tr () const
 
T x () const
 
T y () const
 
const Tz () const
 

Private Attributes

T phi_
 
T r_
 
T z_
 

Detailed Description

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

Converts cylindtical coordinates to cartesian coordinates.

Definition at line 34 of file CoordinateSets.h.

Constructor & Destructor Documentation

◆ Cylindrical2Cartesian()

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 39 of file CoordinateSets.h.

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

Member Function Documentation

◆ phi()

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

Definition at line 42 of file CoordinateSets.h.

42 { return phi_; }

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

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ r()

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

Definition at line 41 of file CoordinateSets.h.

41 { return r_; }

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

◆ x()

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

◆ y()

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

◆ z()

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

Definition at line 43 of file CoordinateSets.h.

43 { return z_; }

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

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

Member Data Documentation

◆ phi_

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

◆ r_

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

◆ z_

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

Definition at line 51 of file CoordinateSets.h.

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

funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Geom::Cylindrical2Cartesian::phi
const T & phi() const
Definition: CoordinateSets.h:42
Geom::Cylindrical2Cartesian::r_
T r_
Definition: CoordinateSets.h:49
Geom::Cylindrical2Cartesian::z_
T z_
Definition: CoordinateSets.h:51
Geom::Cylindrical2Cartesian::z
const T & z() const
Definition: CoordinateSets.h:43
Geom::Cylindrical2Cartesian::r
const T & r() const
Definition: CoordinateSets.h:41
Geom::Cylindrical2Cartesian::phi_
T phi_
Definition: CoordinateSets.h:50