CMS 3D CMS Logo

RKTestFieldProvider Class Reference

#include <TrackPropagation/RungeKutta/interface/RKTestPropagator.h>

Inheritance diagram for RKTestFieldProvider:

MagneticFieldProvider< float >

List of all members.

Public Member Functions

 RKTestFieldProvider (const MagneticField *field)
virtual LocalVectorType valueInTesla (const LocalPointType &lp) const
 Returns the field vector in the local frame, at local position p.

Private Attributes

const MagneticFieldtheField


Detailed Description

Definition at line 28 of file RKTestPropagator.h.


Constructor & Destructor Documentation

RKTestFieldProvider::RKTestFieldProvider ( const MagneticField field  )  [inline]

Definition at line 31 of file RKTestPropagator.h.

00031 : theField(field) {}


Member Function Documentation

virtual LocalVectorType RKTestFieldProvider::valueInTesla ( const LocalPointType p  )  const [inline, virtual]

Returns the field vector in the local frame, at local position p.

Implements MagneticFieldProvider< float >.

Definition at line 33 of file RKTestPropagator.h.

References MagneticField::inTesla(), theField, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

00033                                                                        {
00034    // NOTE: the following transformation only works for the central volume
00035    // where global and local coordinates are numerically equal !
00036    GlobalPoint gp(lp.x(), lp.y(), lp.z());
00037    GlobalVector gv =  theField->inTesla(gp);
00038    return LocalVectorType(gv.x(),gv.y(),gv.z());
00039  }


Member Data Documentation

const MagneticField* RKTestFieldProvider::theField [private]

Definition at line 43 of file RKTestPropagator.h.

Referenced by valueInTesla().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:30:48 2009 for CMSSW by  doxygen 1.5.4