CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
defaultRKPropagator::TrivialFieldProvider Class Referencefinal

#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, GlobalTagGlobalPointType
 
typedef Vector3DBase< float, GlobalTagGlobalVectorType
 
typedef Point3DBase< float, LocalTagLocalPointType
 
typedef Vector3DBase< float, LocalTagLocalVectorType
 

Detailed Description

Definition at line 12 of file defaultRKPropagator.h.

Constructor & Destructor Documentation

◆ TrivialFieldProvider()

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

Definition at line 14 of file defaultRKPropagator.h.

14 : theField(field) {}

Member Function Documentation

◆ valueInTesla()

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 16 of file defaultRKPropagator.h.

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

16  {
17  // NOTE: the following transformation only works for the central volume
18  // where global and local coordinates are numerically equal !
19  GlobalPoint gp(lp.basicVector());
21  }
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:53

Member Data Documentation

◆ theField

const MagneticField* defaultRKPropagator::TrivialFieldProvider::theField
private

Definition at line 24 of file defaultRKPropagator.h.

Referenced by valueInTesla().