CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
defaultRKPropagator::TrivialFieldProvider Class Reference

#include <defaultRKPropagator.h>

Inheritance diagram for defaultRKPropagator::TrivialFieldProvider:
MagneticFieldProvider< float >

Public Member Functions

 TrivialFieldProvider (const MagneticField *field)
 
LocalVectorType valueInTesla (const LocalPointType &lp) const override
 
- Public Member Functions inherited from MagneticFieldProvider< float >
virtual LocalVectorType derivativeInTeslaPerMeter (const LocalPointType &p, int N) const
 
virtual int hasDerivatives () const
 
virtual ~MagneticFieldProvider ()
 

Private Attributes

const MagneticFieldtheField
 

Additional Inherited Members

- Public Types inherited from MagneticFieldProvider< float >
typedef Point3DBase< float,
GlobalTag
GlobalPointType
 
typedef Vector3DBase< float,
GlobalTag
GlobalVectorType
 
typedef Point3DBase< float,
LocalTag
LocalPointType
 
typedef Vector3DBase< float,
LocalTag
LocalVectorType
 

Detailed Description

Definition at line 14 of file defaultRKPropagator.h.

Constructor & Destructor Documentation

defaultRKPropagator::TrivialFieldProvider::TrivialFieldProvider ( const MagneticField field)
inline

Definition at line 17 of file defaultRKPropagator.h.

17 : theField(field) {}

Member Function Documentation

LocalVectorType defaultRKPropagator::TrivialFieldProvider::valueInTesla ( const LocalPointType p) const
inlineoverridevirtual

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

Implements MagneticFieldProvider< float >.

Definition at line 19 of file defaultRKPropagator.h.

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

19  {
20  // NOTE: the following transformation only works for the central volume
21  // where global and local coordinates are numerically equal !
22  GlobalPoint gp(lp.basicVector());
24  }
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
Vector3DBase< float, LocalTag > LocalVectorType
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:56

Member Data Documentation

const MagneticField* defaultRKPropagator::TrivialFieldProvider::theField
private

Definition at line 27 of file defaultRKPropagator.h.

Referenced by valueInTesla().