Belle II Software development
BFieldComponentQuad::ParamPoint3 Struct Reference

Quadrupole lense data structure. More...

#include <BFieldComponentQuad.h>

Public Member Functions

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.
 
ParamPoint3operator+= (const ParamPoint3 &t)
 Sum up the matrix components of quadrupole lenses.
 

Public Attributes

double s {0}
 s in [cm]
 
double L {0}
 element length in [cm]
 
double mxx {0}
 xx coefficents to calculate Bx
 
double mxy {0}
 xy coefficents to calculate Bx
 
double mx0 {0}
 x0 coefficents to calculate Bx
 
double myx {0}
 yx coefficents to calculate By
 
double myy {0}
 yy coefficents to calculate By
 
double my0 {0}
 y0 coefficents to calculate By
 

Detailed Description

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.

Member Function Documentation

◆ 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
xThe X component of the space point in Cartesian coordinates (x,y) in [cm]
yThe 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;}
double mxx
xx coefficents to calculate Bx
double mx0
x0 coefficents to calculate Bx
double mxy
xy coefficents to calculate Bx

◆ 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
xThe X component of the space point in Cartesian coordinates (x,y) in [cm]
yThe 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;}
double myx
yx coefficents to calculate By
double my0
y0 coefficents to calculate By
double myy
yy coefficents to calculate By

◆ operator+=()

ParamPoint3 & operator+= ( const ParamPoint3 t)
inline

Sum up the matrix components of quadrupole lenses.

Parameters
tthe 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 }

Member Data Documentation

◆ L

double L {0}

element length in [cm]

Definition at line 56 of file BFieldComponentQuad.h.

◆ mx0

double mx0 {0}

x0 coefficents to calculate Bx

Definition at line 59 of file BFieldComponentQuad.h.

◆ mxx

double mxx {0}

xx coefficents to calculate Bx

Definition at line 57 of file BFieldComponentQuad.h.

◆ mxy

double mxy {0}

xy coefficents to calculate Bx

Definition at line 58 of file BFieldComponentQuad.h.

◆ my0

double my0 {0}

y0 coefficents to calculate By

Definition at line 62 of file BFieldComponentQuad.h.

◆ myx

double myx {0}

yx coefficents to calculate By

Definition at line 60 of file BFieldComponentQuad.h.

◆ myy

double myy {0}

yy coefficents to calculate By

Definition at line 61 of file BFieldComponentQuad.h.

◆ s

double s {0}

s in [cm]

Definition at line 55 of file BFieldComponentQuad.h.


The documentation for this struct was generated from the following file: