Belle II Software  release-08-01-10
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. More...
 
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. More...
 
ParamPoint3operator+= (const ParamPoint3 &t)
 Sum up the matrix components of quadrupole lenses. More...
 

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.

◆ 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.

◆ 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.


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