#include <TrackPropagation/RungeKutta/interface/RKTestPropagator.h>
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 MagneticField * | theField |
Definition at line 28 of file RKTestPropagator.h.
RKTestFieldProvider::RKTestFieldProvider | ( | const MagneticField * | field | ) | [inline] |
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 }
const MagneticField* RKTestFieldProvider::theField [private] |