Quadrupole lense data structure.
More...
#include <BFieldComponentQuad.h>
|
double | getBx (double x, double y) const |
| Calculates the X component of the magnetic field vector at the specified space point from a quadrupole lense.
|
|
double | getBy (double x, double y) const |
| Calculates the Y component of the magnetic field vector at the specified space point from a quadrupole lense.
|
|
ParamPoint3 & | operator+= (const ParamPoint3 &t) |
| Sum up the matrix components of quadrupole lenses.
|
|
|
double | s {0} |
| s in [cm]
|
|
double | L {0} |
| element length in [cm]
|
|
double | mxx {0} |
| xx coefficients to calculate Bx
|
|
double | mxy {0} |
| xy coefficients to calculate Bx
|
|
double | mx0 {0} |
| x0 coefficients to calculate Bx
|
|
double | myx {0} |
| yx coefficients to calculate By
|
|
double | myy {0} |
| yy coefficients to calculate By
|
|
double | my0 {0} |
| y0 coefficients to calculate By
|
|
Quadrupole lense data structure.
This is a flat structure so magnetic field has only X and Y components
Definition at line 54 of file BFieldComponentQuad.h.
◆ getBx()
double getBx |
( |
double | x, |
|
|
double | y ) const |
|
inline |
Calculates the X component of the magnetic field vector at the specified space point from a quadrupole lense.
- Parameters
-
x | The X component of the space point in Cartesian coordinates (x,y) in [cm] |
y | The Y component of the space point in Cartesian coordinates (x,y) in [cm] |
- Returns
- The X component of magnetic field vector at the given space point in [T].
Definition at line 71 of file BFieldComponentQuad.h.
71{return x * mxx + y * mxy + mx0;}
◆ getBy()
double getBy |
( |
double | x, |
|
|
double | y ) const |
|
inline |
Calculates the Y component of the magnetic field vector at the specified space point from a quadrupole lense.
- Parameters
-
x | The X component of the space point in Cartesian coordinates (x,y) in [cm] |
y | The Y component of the space point in Cartesian coordinates (x,y) in [cm] |
- Returns
- The Y component of magnetic field vector at the given space point in [T].
Definition at line 80 of file BFieldComponentQuad.h.
80{return x * myx + y * myy + my0;}
◆ operator+=()
Sum up the matrix components of quadrupole lenses.
- Parameters
-
t | the lense structure to add |
- Returns
- reference to resulting lense structure
Definition at line 88 of file BFieldComponentQuad.h.
89 {
90 mxx += t.mxx;
91 mxy += t.mxy;
92 mx0 += t.mx0;
93 myx += t.myx;
94 myy += t.myy;
95 my0 += t.my0;
96 return *this;
97 }
◆ mx0
◆ mxx
◆ mxy
◆ my0
◆ myx
◆ myy
The documentation for this struct was generated from the following file: