![]() |
Project
|
#include <MagFieldFast.h>
Classes | |
| struct | SolParam |
Public Types | |
| enum | { kNSolRRanges = 5 , kNSolZRanges = 22 , kNQuadrants = 4 , kNPolCoefs = 20 } |
| enum | EDim { kX , kY , kZ , kNDim } |
Public Member Functions | |
| MagFieldFast (const std::string inpFName="") | |
| MagFieldFast (float factor, int nomField=5, const std::string inpFmt="$(O2_ROOT)/share/Common/maps/sol%dk.txt") | |
| MagFieldFast (const MagFieldFast &src)=default | |
| ~MagFieldFast ()=default | |
| bool | LoadData (const std::string inpFName) |
| bool | Field (const double xyz[3], double bxyz[3]) const |
| bool | Field (const float xyz[3], float bxyz[3]) const |
| bool | Field (const math_utils::Point3D< float > xyz, float bxyz[3]) const |
| bool | Field (const math_utils::Point3D< double > xyz, double bxyz[3]) const |
| bool | GetBcomp (EDim comp, const double xyz[3], double &b) const |
| bool | GetBcomp (EDim comp, const float xyz[3], float &b) const |
| bool | GetBcomp (EDim comp, const math_utils::Point3D< double > xyz, double &b) const |
| bool | GetBcomp (EDim comp, const math_utils::Point3D< float > xyz, float &b) const |
| bool | GetBx (const double xyz[3], double &bx) const |
| bool | GetBx (const float xyz[3], float &bx) const |
| bool | GetBy (const double xyz[3], double &by) const |
| bool | GetBy (const float xyz[3], float &by) const |
| bool | GetBz (const double xyz[3], double &bz) const |
| bool | GetBz (const float xyz[3], float &bz) const |
| bool | GetBz (const math_utils::Point3D< double > xyz, double &bz) const |
| bool | GetBz (const math_utils::Point3D< float > xyz, float &bz) const |
| void | setFactorSol (float v=1.f) |
| float | getFactorSol () const |
Protected Member Functions | |
| bool | GetSegment (float x, float y, float z, int &zSeg, int &rSeg, int &quadrant) const |
| int | GetQuadrant (float x, float y) const |
| float | CalcPol (const float *cf, float x, float y, float z) const |
Static Protected Attributes | |
| static const float | kSolR2Max [kNSolRRanges] |
| static const float | kSolZMax = 550.0f |
Definition at line 32 of file MagFieldFast.h.
| anonymous enum |
| Enumerator | |
|---|---|
| kNSolRRanges | |
| kNSolZRanges | |
| kNQuadrants | |
| kNPolCoefs | |
Definition at line 35 of file MagFieldFast.h.
| Enumerator | |
|---|---|
| kX | |
| kY | |
| kZ | |
| kNDim | |
Definition at line 39 of file MagFieldFast.h.
| MagFieldFast::MagFieldFast | ( | const std::string | inpFName = "" | ) |
Definition at line 38 of file MagFieldFast.cxx.
| MagFieldFast::MagFieldFast | ( | float | factor, |
| int | nomField = 5, |
||
| const std::string | inpFmt = "$(O2_ROOT)/share/Common/maps/sol%dk.txt" |
||
| ) |
Definition at line 47 of file MagFieldFast.cxx.
|
default |
|
default |
|
inlineprotected |
calculate polynomial cf[0] + cf[1]*x + cf[2]*y + cf[3]*z + cf[4]*xx + cf[5]*xy + cf[6]*xz + cf[7]*yy + cf[8]*yz + cf[9]*zz + cf[10]*xxx + cf[11]*xxy + cf[12]*xxz + cf[13]*xyy + cf[14]*xyz + cf[15]*xzz + cf[16]*yyy + cf[17]*yyz + cf[18]*yzz + cf[19]*zzz
Definition at line 94 of file MagFieldFast.h.
| bool MagFieldFast::Field | ( | const double | xyz[3], |
| double | bxyz[3] | ||
| ) | const |
Definition at line 119 of file MagFieldFast.cxx.
| bool MagFieldFast::Field | ( | const float | xyz[3], |
| float | bxyz[3] | ||
| ) | const |
Definition at line 191 of file MagFieldFast.cxx.
| bool MagFieldFast::Field | ( | const math_utils::Point3D< double > | xyz, |
| double | bxyz[3] | ||
| ) | const |
Definition at line 223 of file MagFieldFast.cxx.
| bool MagFieldFast::Field | ( | const math_utils::Point3D< float > | xyz, |
| float | bxyz[3] | ||
| ) | const |
Definition at line 207 of file MagFieldFast.cxx.
| bool MagFieldFast::GetBcomp | ( | EDim | comp, |
| const double | xyz[3], | ||
| double & | b | ||
| ) | const |
Definition at line 135 of file MagFieldFast.cxx.
| bool MagFieldFast::GetBcomp | ( | EDim | comp, |
| const float | xyz[3], | ||
| float & | b | ||
| ) | const |
Definition at line 177 of file MagFieldFast.cxx.
| bool MagFieldFast::GetBcomp | ( | EDim | comp, |
| const math_utils::Point3D< double > | xyz, | ||
| double & | b | ||
| ) | const |
Definition at line 149 of file MagFieldFast.cxx.
| bool MagFieldFast::GetBcomp | ( | EDim | comp, |
| const math_utils::Point3D< float > | xyz, | ||
| float & | b | ||
| ) | const |
Definition at line 163 of file MagFieldFast.cxx.
|
inline |
Definition at line 63 of file MagFieldFast.h.
|
inline |
Definition at line 64 of file MagFieldFast.h.
|
inline |
Definition at line 65 of file MagFieldFast.h.
|
inline |
Definition at line 66 of file MagFieldFast.h.
|
inline |
Definition at line 67 of file MagFieldFast.h.
|
inline |
Definition at line 68 of file MagFieldFast.h.
|
inline |
Definition at line 69 of file MagFieldFast.h.
|
inline |
Definition at line 70 of file MagFieldFast.h.
|
inline |
Definition at line 72 of file MagFieldFast.h.
|
inlineprotected |
get point quadrant
Definition at line 79 of file MagFieldFast.h.
|
protected |
Definition at line 239 of file MagFieldFast.cxx.
| bool MagFieldFast::LoadData | ( | const std::string | inpFName | ) |
Definition at line 61 of file MagFieldFast.cxx.
Definition at line 71 of file MagFieldFast.h.
|
staticprotected |
Definition at line 76 of file MagFieldFast.h.
|
staticprotected |
Definition at line 77 of file MagFieldFast.h.