GENFIT  Rev:NoNumberAvailable
Public Member Functions | Private Attributes | List of all members
genfit::ConstField Class Reference

Constant Magnetic field. More...

#include <ConstField.h>

Inheritance diagram for genfit::ConstField:
Inheritance graph
Collaboration diagram for genfit::ConstField:
Collaboration graph

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 ()
 

Private Attributes

TVector3 field_
 

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 37 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 40 of file ConstField.h.

◆ ConstField() [2/2]

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

Definition at line 44 of file ConstField.h.

Member Function Documentation

◆ get() [1/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.

Definition at line 27 of file ConstField.cc.

References field_.

◆ get() [2/2]

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

return value at position

Implements genfit::AbsBField.

Definition at line 23 of file ConstField.cc.

References field_.

Member Data Documentation

◆ field_

TVector3 genfit::ConstField::field_
private

Definition at line 53 of file ConstField.h.

Referenced by get().


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