Definition of a uniform magnetic field within a given region.
More...
#include <A01MagField.h>
|
Double_t | fB [3] |
| Magnetic field vector.
|
|
Definition of a uniform magnetic field within a given region.
- Date
- Author
- I. Hrivnacova; IPN, Orsay
Definition at line 29 of file A01MagField.h.
◆ A01MagField() [1/3]
A01MagField::A01MagField |
( |
Double_t | Bx, |
|
|
Double_t | By, |
|
|
Double_t | Bz ) |
Standard constructor
- Parameters
-
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 26 of file A01MagField.cxx.
28{
29
30
31
32
33
37}
Double_t fB[3]
Magnetic field vector.
◆ A01MagField() [2/3]
A01MagField::A01MagField |
( |
| ) |
|
◆ ~A01MagField()
A01MagField::~A01MagField |
( |
| ) |
|
|
virtual |
◆ A01MagField() [3/3]
◆ Field()
void A01MagField::Field |
( |
const Double_t * | x, |
|
|
Double_t * | B ) |
|
virtual |
Fill in the field value B in the given position at x.
- Parameters
-
x | The position |
B | The field value (in kiloGauss) |
Definition at line 55 of file A01MagField.cxx.
56{
57
58
59
60
61
62
63
64
65
66
67
68 if (TMath::Sqrt(x[0] * x[0] + x[2] * x[2]) <= 100.00 &&
69 TMath::Abs(x[1]) <= 100.00) {
73 }
74 else {
75 B[0] = 0.;
76 B[1] = 0.;
77 B[2] = 0.;
78 }
79}
◆ operator=()
◆ fB
Double_t A01MagField::fB[3] |
|
private |
The documentation for this class was generated from the following files: