Belle II Software
release-08-01-10
|
Helper functions to interact with the magnetic field. More...
#include <CDCBFieldUtil.h>
Static Public Member Functions | |
static bool | isOff () |
Indicator if the magnetic field is off in the current geometry. | |
static ESign | getBFieldZSign () |
Getter for the sign of the magnetic field in z direction. | |
static double | getBFieldZ () |
Getter for the signed magnetic field stength in z direction at the origin ( in Tesla ) | |
static double | getBFieldZ (const Vector2D &pos2D) |
Getter for the signed magnetic field stength in z direction ( in Tesla ) | |
static double | getBFieldZ (const Vector3D &pos3D) |
Getter for the signed magnetic field stength in z direction ( in Tesla ) | |
static double | getAlphaFromBField (double bField) |
Translater from magnetic field strength in Tesla to the alpha value. | |
static double | getAlphaZ (const Vector2D &pos2D) |
Getter for the signed alpha of the magnetic field in z direction. | |
static double | getAlphaZ (const Vector3D &pos3D) |
Getter for the signed alpha of the magnetic field in z direction. | |
static ESign | ccwInfoToChargeSign (ERotation ccwInfo) |
Conversion helper from clockwise or counterclockwise travel to the charge sign. More... | |
static ERotation | chargeSignToERotation (ESign chargeSign) |
Conversion helper from the charge sign to clockwise or counterclockwise travel. | |
static ERotation | chargeToERotation (double charge) |
Conversion help for charges to clockwise or counterclockwise travel. | |
static double | absMom2DToBendRadius (double absMom2D, double bZ) |
Conversion helper for momenta to two dimensional (absolute) bend radius. | |
static double | absMom2DToBendRadius (double absMom2D, const Vector2D &pos2D) |
Conversion helper for momenta to two dimensional (absolute) bend radius. | |
static double | absMom2DToBendRadius (double absMom2D, const Vector3D &pos3D) |
Conversion helper for momenta to two dimensional (absolute) bend radius. | |
static double | absMom2DToCurvature (double absMom2D, double charge, double bZ) |
Conversion helper for momenta to two dimensional curvature. | |
static double | absMom2DToCurvature (double absMom2D, double charge, const Vector2D &pos2D) |
Conversion helper for momenta to two dimensional curvature. | |
static double | absMom2DToCurvature (double absMom2D, double charge, const Vector3D &pos3D) |
Conversion helper for momenta to two dimensional curvature. | |
static double | curvatureToAbsMom2D (double curvature, double bZ) |
Conversion helper for two dimensional curvature to momenta. | |
static double | curvatureToAbsMom2D (double curvature, const Vector2D &pos2D) |
Conversion helper for two dimensional curvature to momenta. | |
static double | curvatureToAbsMom2D (double curvature, const Vector3D &pos3D) |
Conversion helper for two dimensional curvature to momenta. | |
Helper functions to interact with the magnetic field.
Definition at line 23 of file CDCBFieldUtil.h.
Conversion helper from clockwise or counterclockwise travel to the charge sign.
Return the charge sign based on the travel direction on the fitted circle. With the Lorentz force F = q * v x B. For positively charged particles we have:
Definition at line 74 of file CDCBFieldUtil.cc.