10#include <tracking/trackingUtilities/numerics/ERotation.h>
11#include <tracking/trackingUtilities/numerics/ESign.h>
13#include <Math/Vector3D.h>
14#include <Math/Vector2D.h>
21 namespace TrackingUtilities {
36 static double getBFieldZ(
const ROOT::Math::XYVector& pos2D);
39 static double getBFieldZ(
const ROOT::Math::XYZVector& pos3D);
45 static double getAlphaZ(
const ROOT::Math::XYVector& pos2D);
48 static double getAlphaZ(
const ROOT::Math::XYZVector& pos3D);
76 const ROOT::Math::XYVector& pos2D);
80 const ROOT::Math::XYZVector& pos3D);
90 const ROOT::Math::XYVector& pos2D);
95 const ROOT::Math::XYZVector& pos3D);
103 const ROOT::Math::XYVector& pos2D);
107 const ROOT::Math::XYZVector& pos3D);
Helper functions to interact with the magnetic field.
static double curvatureToAbsMom2D(double curvature, double bZ)
Conversion helper for two dimensional curvature to momenta.
static double getAlphaZ(const ROOT::Math::XYVector &pos2D)
Getter for the signed alpha of the magnetic field in z direction.
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 ESign ccwInfoToChargeSign(ERotation ccwInfo)
Conversion helper from clockwise or counterclockwise travel to the charge sign.
static double getBFieldZ()
Getter for the signed magnetic field strength in z direction at the origin ( in Tesla )
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 absMom2DToCurvature(double absMom2D, double charge, double bZ)
Conversion helper for momenta to two dimensional curvature.
static double getAlphaFromBField(double bField)
Translator from magnetic field strength in Tesla to the alpha value.
static double absMom2DToBendRadius(double absMom2D, double bZ)
Conversion helper for momenta to two dimensional (absolute) bend radius.
Abstract base class for different kinds of events.