#include <TrackPropagation/RungeKutta/interface/RKCylindricalDistance.h>
Public Types | |
typedef T | Scalar |
typedef RKSmallVector< T, N > | Vector |
Public Member Functions | |
virtual Scalar | operator() (const Vector &a, const Vector &b, const Scalar &rho) const |
virtual | ~RKCylindricalDistance () |
Definition at line 9 of file RKCylindricalDistance.h.
typedef T RKCylindricalDistance< T, N >::Scalar |
typedef RKSmallVector<T,N> RKCylindricalDistance< T, N >::Vector |
virtual RKCylindricalDistance< T, N >::~RKCylindricalDistance | ( | ) | [inline, virtual] |
virtual Scalar RKCylindricalDistance< T, N >::operator() | ( | const Vector & | a, | |
const Vector & | b, | |||
const Scalar & | rho | |||
) | const [inline, virtual] |
Implements RKDistance< T, N >.
Definition at line 17 of file RKCylindricalDistance.h.
References PV3DBase< T, PVType, FrameType >::mag(), muonGeometry::mag(), CylindricalState::momentum(), and CylindricalState::position().
00017 { 00018 CylindricalState astate(rho,a,1.); 00019 CylindricalState bstate(rho,b,1.); 00020 return (astate.position()-bstate.position()).mag() + 00021 (astate.momentum()-bstate.momentum()).mag() / bstate.momentum().mag(); 00022 }