FairRoot/PandaRoot
Public Member Functions | List of all members
genfit::AbsBField Class Referenceabstract

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

#include <AbsBField.h>

Inheritance diagram for genfit::AbsBField:
genfit::ConstField PndGenfitField2

Public Member Functions

 AbsBField ()
 
virtual ~AbsBField ()
 
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.

Constructor & Destructor Documentation

genfit::AbsBField::AbsBField ( )
inline

Definition at line 39 of file AbsBField.h.

39 {;}
virtual genfit::AbsBField::~AbsBField ( )
inlinevirtual

Definition at line 40 of file AbsBField.h.

40 {;}

Member Function Documentation

virtual TVector3 genfit::AbsBField::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 genfit::ConstField, and PndGenfitField2.

Referenced by genfit::FieldManager::getFieldVal().

virtual void genfit::AbsBField::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 genfit::ConstField, and PndGenfitField2.

Definition at line 56 of file AbsBField.h.

56 { const TVector3& B(this->get(TVector3(posX, posY, posZ))); Bx = B.X(); By = B.Y(); Bz = B.Z(); }

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