CMS 3D CMS Logo

Public Types | Public Member Functions

RKCurvilinearDistance< T, N > Class Template Reference

#include <RKCurvilinearDistance.h>

Inheritance diagram for RKCurvilinearDistance< T, N >:
RKDistance< T, N >

List of all members.

Public Types

typedef T Scalar
typedef RKSmallVector< T, N > Vector

Public Member Functions

Basic3DVector< Scalarmomentum (const Vector &v) const
virtual Scalar operator() (const Vector &a, const Vector &b, const Scalar &s) const
sqr (const T &t) const
virtual ~RKCurvilinearDistance ()

Detailed Description

template<typename T, int N>
class RKCurvilinearDistance< T, N >

Definition at line 8 of file RKCurvilinearDistance.h.


Member Typedef Documentation

template<typename T, int N>
typedef T RKCurvilinearDistance< T, N >::Scalar

Reimplemented from RKDistance< T, N >.

Definition at line 11 of file RKCurvilinearDistance.h.

template<typename T, int N>
typedef RKSmallVector<T,N> RKCurvilinearDistance< T, N >::Vector

Reimplemented from RKDistance< T, N >.

Definition at line 12 of file RKCurvilinearDistance.h.


Constructor & Destructor Documentation

template<typename T, int N>
virtual RKCurvilinearDistance< T, N >::~RKCurvilinearDistance ( ) [inline, virtual]

Definition at line 14 of file RKCurvilinearDistance.h.

{}

Member Function Documentation

template<typename T, int N>
Basic3DVector<Scalar> RKCurvilinearDistance< T, N >::momentum ( const Vector v) const [inline]

Definition at line 23 of file RKCurvilinearDistance.h.

References abs, gen::k, L1TEmulatorMonitor_cff::p, RKCurvilinearDistance< T, N >::sqr(), mathSSE::sqrt(), and v.

Referenced by RKCurvilinearDistance< T, N >::operator()().

                                                         {
      Scalar k = sqrt(1 + sqr(v(2)) + sqr(v(3)));
      Scalar p = std::abs(1 / v(4));
      Scalar pz = p/k;
      return Basic3DVector<Scalar>( v(2)*pz, v(3)*pz, pz);
  }
template<typename T, int N>
virtual Scalar RKCurvilinearDistance< T, N >::operator() ( const Vector a,
const Vector b,
const Scalar s 
) const [inline, virtual]
template<typename T, int N>
T RKCurvilinearDistance< T, N >::sqr ( const T &  t) const [inline]