Belle II Software  release-08-01-10
ConstField Class Reference

Constant Magnetic field. More...

#include <ConstField.h>

Inheritance diagram for ConstField:
Collaboration diagram for ConstField:

Public Member Functions

 ConstField (double b1, double b2, double b3)
 define the constant field in this ctor
 
 ConstField (const TVector3 &field)
 
TVector3 get (const TVector3 &pos) const
 return value at position
 
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...
 

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.

Member Function Documentation

◆ get()

void 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 AbsBField.

Definition at line 27 of file ConstField.cc.

27  {
28  Bx = field_.X();
29  By = field_.Y();
30  Bz = field_.Z();
31 }

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