CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
RKCylindricalDistance< T, N > Class Template Reference

#include <RKCylindricalDistance.h>

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

Public Types

typedef T Scalar
 
typedef RKSmallVector< T, NVector
 
- Public Types inherited from RKDistance< T, N >
typedef T Scalar
 
typedef RKSmallVector< T, NVector
 

Public Member Functions

virtual Scalar operator() (const Vector &a, const Vector &b, const Scalar &rho) const
 
virtual ~RKCylindricalDistance ()
 
- Public Member Functions inherited from RKDistance< T, N >
virtual ~RKDistance ()
 

Detailed Description

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

Definition at line 10 of file RKCylindricalDistance.h.

Member Typedef Documentation

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

Definition at line 13 of file RKCylindricalDistance.h.

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

Definition at line 14 of file RKCylindricalDistance.h.

Constructor & Destructor Documentation

template<typename T, int N>
virtual RKCylindricalDistance< T, N >::~RKCylindricalDistance ( )
inlinevirtual

Definition at line 16 of file RKCylindricalDistance.h.

16 {}

Member Function Documentation

template<typename T, int N>
virtual Scalar RKCylindricalDistance< T, N >::operator() ( const Vector a,
const Vector b,
const Scalar rho 
) const
inlinevirtual

Implements RKDistance< T, N >.

Definition at line 18 of file RKCylindricalDistance.h.

References PV3DBase< T, PVType, FrameType >::mag(), mag(), CylindricalState::momentum(), and CylindricalState::position().

18  {
19  CylindricalState astate(rho,a,1.);
20  CylindricalState bstate(rho,b,1.);
21  return (astate.position()-bstate.position()).mag() +
22  (astate.momentum()-bstate.momentum()).mag() / bstate.momentum().mag();
23  }
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition: DDAxes.h:10
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121