CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkBfield.h
Go to the documentation of this file.
1 #ifndef ParametrizedEngine_TkBfield_h
2 #define ParametrizedEngine_TkBfield_h
3 
20 #include <vector>
21 #include <string>
22 
23 namespace magfieldparam {
24  class TkBfield
25  {
26  public:
27 
28  TkBfield (std::string T="3_8T");
29 
30  ~TkBfield() {}
31 
33  void getBxyz(double const * __restrict__ x, double * __restrict__ Bxyz) const;
35  void getBrfz(double const * __restrict__ x, double * __restrict__ Brfz) const;
36 
37  private:
38  double prm[9];
39  double ap2, hb0, hlova, ainv,coeff;
40  void Bcyl(double r, double z, double * __restrict__ Bw) const;
41  };
42 }
43 
44 #endif
void getBrfz(double const *__restrict__ x, double *__restrict__ Brfz) const
B out in cylindrical.
Definition: TkBfield.cc:116
double double double z
TkBfield(std::string T="3_8T")
Definition: TkBfield.cc:13
void getBxyz(double const *__restrict__ x, double *__restrict__ Bxyz) const
B out in cartesian.
Definition: TkBfield.cc:120
x
Definition: VDTMath.h:216
long double T
void Bcyl(double r, double z, double *__restrict__ Bw) const
Definition: TkBfield.cc:85