CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BFit.h
Go to the documentation of this file.
1 #ifndef BFit_h
2 #define BFit_h
3 
13 #include "rz_poly.h"
14 
15 
16 
17 //_______________________________________________________________________________
18 namespace magfieldparam {
19 class BFit {
20 
21 private:
22 
23 #ifdef BFit_PW
24  static const double Z_nom[4];
25  static const double B_nom[4];
26  static const double C_nom[4][16];
27 #else
28  static const double dZ_0;
29  static const double dZ_2;
30 
31  static const double C_0[16]; //4-fold expansion coefficients
32  static const double C_2[16]; //of the expansion coefficients :)
33  static const double C_4[16];
34 #endif
35  double dZ; //Z-shift
36  double C[16]; //the expansion coeeficients
37 
40 
41 public:
42 
43  BFit();
44  ~BFit() {delete Bz_base; delete Br_base;};
45 
46  void SetField(double B);
47  void GetField(double r, double z, double phi,
48  double &Br, double &Bz, double &Bphi);
49 };
50 }
51 
52 #endif
void GetField(double r, double z, double phi, double &Br, double &Bz, double &Bphi)
Definition: BFit.cc:139
double double double z
rz_poly * Bz_base
Definition: BFit.h:38
static const double C_0[16]
Definition: BFit.h:31
static const double C_2[16]
Definition: BFit.h:32
rz_poly * Br_base
Definition: BFit.h:39
double C[16]
Definition: BFit.h:36
static const double dZ_2
Definition: BFit.h:29
void SetField(double B)
Definition: BFit.cc:101
static const double dZ_0
Definition: BFit.h:28
static const double C_4[16]
Definition: BFit.h:33
Definition: DDAxes.h:10