VMC Examples Version 6.6
|
Definition of a uniform magnetic field. More...
#include <Ex02MagField.h>
Public Member Functions | |
Ex02MagField (Double_t Bx, Double_t By, Double_t Bz) | |
Ex02MagField () | |
virtual | ~Ex02MagField () |
virtual void | Field (const Double_t *x, Double_t *B) |
Private Member Functions | |
Ex02MagField (const Ex02MagField &) | |
Ex02MagField & | operator= (const Ex02MagField &) |
Private Attributes | |
Double_t | fB [3] |
Magnetic field vector. | |
Definition of a uniform magnetic field.
This class demonstrates definition of a user magnetic field via the TVirtualMagField interface. In case of a uniform magnetic field, it is also possible to use directly the TGeoUniformMagField class in the VMC application.
Definition at line 34 of file Ex02MagField.h.
Ex02MagField::Ex02MagField | ( | Double_t | Bx, |
Double_t | By, | ||
Double_t | Bz ) |
Standard constructor
Bx | The x component of the field value (in kiloGauss) |
By | The y component of the field value (in kiloGauss) |
Bz | The z component of the field value (in kiloGauss) |
Definition at line 24 of file Ex02MagField.cxx.
Ex02MagField::Ex02MagField | ( | ) |
Default constructor
Definition at line 38 of file Ex02MagField.cxx.
|
virtual |
|
private |
|
virtual |
Fill in the field value B in the given position at x. (In case of a uniform magnetic field the value B does not depend on the position x )
x | The position |
B | he field value (in kiloGauss) |
Definition at line 53 of file Ex02MagField.cxx.
|
private |
|
private |
Magnetic field vector.
Definition at line 47 of file Ex02MagField.h.