PandaRoot
genfit::ConstField Class Reference

Constant Magnetic field. More...

#include <ConstField.h>

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

Public Member Functions

 ConstField (double b1, double b2, double b3)
 define the constant field in this ctor More...
 
 ConstField (const TVector3 &field)
 
TVector3 get (const TVector3 &pos) const
 return value at position More...
 
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...
 
- Public Member Functions inherited from genfit::AbsBField
 AbsBField ()
 
virtual ~AbsBField ()
 

Detailed Description

Constant Magnetic field.

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 ConstField.h.

Constructor & Destructor Documentation

◆ ConstField() [1/2]

genfit::ConstField::ConstField ( double  b1,
double  b2,
double  b3 
)
inline

define the constant field in this ctor

Definition at line 39 of file ConstField.h.

39 : field_(b1, b2, b3) { ; }

◆ ConstField() [2/2]

genfit::ConstField::ConstField ( const TVector3 &  field)
inline

Definition at line 41 of file ConstField.h.

41 : field_(field) { ; }

Member Function Documentation

◆ get() [1/2]

TVector3 genfit::ConstField::get ( const TVector3 &  pos) const
virtual

return value at position

Implements genfit::AbsBField.

◆ get() [2/2]

void genfit::ConstField::get ( const double &  posX,
const double &  posY,
const double &  posZ,
double &  Bx,
double &  By,
double &  Bz 
) const
virtual

Get the magneticField [kGauss] at position.

Override this in your concrete implementation.

Reimplemented from genfit::AbsBField.


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