CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Macros | Functions
oldTkRotation.h File Reference
#include "DataFormats/GeometryVector/interface/Basic2DVector.h"
#include "DataFormats/GeometryVector/interface/Basic3DVector.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  TkRotation< T >
 
class  TkRotation< T >
 

Namespaces

 geometryDetails
 

Macros

#define Geom_oldTkRotation_H
 

Functions

template<class T , class U >
Basic3DVector< U > operator* (const TkRotation< T > &r, const Basic3DVector< U > &v)
 
template<class T , class U >
TkRotation< typename
PreciseFloatType< T, U >::Type > 
operator* (const TkRotation< T > &a, const TkRotation< U > &b)
 
template<class T >
std::ostream & operator<< (std::ostream &s, const TkRotation< T > &r)
 
template<>
std::ostream & operator<< < double > (std::ostream &s, const TkRotation< double > &r)
 
template<>
std::ostream & operator<< < float > (std::ostream &s, const TkRotation< float > &r)
 
void geometryDetails::TkRotationErr1 ()
 
void geometryDetails::TkRotationErr2 ()
 

Macro Definition Documentation

#define Geom_oldTkRotation_H

Function Documentation

template<class T , class U >
Basic3DVector<U> operator* ( const TkRotation< T > &  r,
const Basic3DVector< U > &  v 
)
inline

Definition at line 271 of file oldTkRotation.h.

References Basic3DVector< T >::x(), TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), Basic3DVector< T >::y(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), Basic3DVector< T >::z(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().

271  {
272  return Basic3DVector<U>( r.xx()*v.x() + r.xy()*v.y() + r.xz()*v.z(),
273  r.yx()*v.x() + r.yy()*v.y() + r.yz()*v.z(),
274  r.zx()*v.x() + r.zy()*v.y() + r.zz()*v.z());
275 }
T xx() const
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T yx() const
T zx() const
T xy() const
T zz() const
T z() const
Cartesian z coordinate.
T zy() const
T yy() const
T xz() const
T yz() const
template<class T , class U >
TkRotation<typename PreciseFloatType<T,U>::Type> operator* ( const TkRotation< T > &  a,
const TkRotation< U > &  b 
)
inline

Definition at line 279 of file oldTkRotation.h.

References TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().

279  {
281  return RT( a.xx()*b.xx() + a.xy()*b.yx() + a.xz()*b.zx(),
282  a.xx()*b.xy() + a.xy()*b.yy() + a.xz()*b.zy(),
283  a.xx()*b.xz() + a.xy()*b.yz() + a.xz()*b.zz(),
284  a.yx()*b.xx() + a.yy()*b.yx() + a.yz()*b.zx(),
285  a.yx()*b.xy() + a.yy()*b.yy() + a.yz()*b.zy(),
286  a.yx()*b.xz() + a.yy()*b.yz() + a.yz()*b.zz(),
287  a.zx()*b.xx() + a.zy()*b.yx() + a.zz()*b.zx(),
288  a.zx()*b.xy() + a.zy()*b.yy() + a.zz()*b.zy(),
289  a.zx()*b.xz() + a.zy()*b.yz() + a.zz()*b.zz());
290 }
T xx() const
T yx() const
T zx() const
T xy() const
T zz() const
T zy() const
T yy() const
T xz() const
T yz() const
template<class T >
std::ostream& operator<< ( std::ostream &  s,
const TkRotation< T > &  r 
)
template<>
std::ostream& operator<< < double > ( std::ostream &  s,
const TkRotation< double > &  r 
)

Definition at line 12 of file TkRotation.cc.

References alignCSCRings::s.

12  {
13  return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
14  << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
15  << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
16 }
template<>
std::ostream& operator<< < float > ( std::ostream &  s,
const TkRotation< float > &  r 
)

Definition at line 5 of file TkRotation.cc.

References alignCSCRings::s.

5  {
6  return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
7  << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
8  << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
9 }