Belle II Software  release-08-01-10
AbsBField Class Referenceabstract

Abstract Interface to magnetic fields in GENFIT. More...

#include <AbsBField.h>

Inheritance diagram for AbsBField:

Public Member Functions

virtual TVector3 get (const TVector3 &position) const =0
 Get the magneticField [kGauss] at position. More...
 
virtual void get (const double &posX, const double &posY, const double &posZ, double &Bx, double &By, double &Bz) const
 Get the magneticField [kGauss] at position. More...
 

Detailed Description

Abstract Interface to magnetic fields in GENFIT.

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)

Definition at line 36 of file AbsBField.h.

Member Function Documentation

◆ get() [1/2]

virtual void get ( const double &  posX,
const double &  posY,
const double &  posZ,
double &  Bx,
double &  By,
double &  Bz 
) const
inlinevirtual

Get the magneticField [kGauss] at position.

Override this in your concrete implementation.

Reimplemented in ConstField.

Definition at line 56 of file AbsBField.h.

◆ get() [2/2]

virtual TVector3 get ( const TVector3 &  position) const
pure virtual

Get the magneticField [kGauss] at position.

Override this in your concrete implementation. Provided for compatibility with old genfit. Use the other interface to avoid unnecessary TVector3 instantiations.

Implemented in GFGeant4Field, and ConstField.


The documentation for this class was generated from the following file: