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

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;}

◆ 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;}

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

56{0};

◆ mx0

double mx0 {0}

x0 coefficients to calculate Bx

Definition at line 59 of file BFieldComponentQuad.h.

59{0};

◆ mxx

double mxx {0}

xx coefficients to calculate Bx

Definition at line 57 of file BFieldComponentQuad.h.

57{0};

◆ mxy

double mxy {0}

xy coefficients to calculate Bx

Definition at line 58 of file BFieldComponentQuad.h.

58{0};

◆ my0

double my0 {0}

y0 coefficients to calculate By

Definition at line 62 of file BFieldComponentQuad.h.

62{0};

◆ myx

double myx {0}

yx coefficients to calculate By

Definition at line 60 of file BFieldComponentQuad.h.

60{0};

◆ myy

double myy {0}

yy coefficients to calculate By

Definition at line 61 of file BFieldComponentQuad.h.

61{0};

◆ s

double s {0}

s in [cm]

Definition at line 55 of file BFieldComponentQuad.h.

55{0};

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