1 #ifndef MagneticFieldGrid_H
2 #define MagneticFieldGrid_H
37 for (
int i=0;
i<3; ++
i) {NumberOfPoints[
i] = 0;};
38 for (
int i=0;
i<3; ++
i) {ReferencePoint[
i] = 0.;};
39 for (
int i=0;
i<3; ++
i) {BasicDistance0[
i] = 0.;};
40 for (
int i=0;
i<3; ++
i) {
for (
int j=0;
j<3; ++
j) {BasicDistance1[
i][
j] = 0.;};};
41 for (
int i=0;
i<3; ++
i) {
for (
int j=0;
j<3; ++
j) {BasicDistance2[
i][
j] = 0.;};};
42 for (
int i=0;
i<4; ++
i) {RParAsFunOfPhi[
i] = 0.;};
43 for (
int i=0;
i<3; ++
i) {EasyCoordinate[
i] =
false;};
72 void putB3(
float Bx,
float By,
float Bz);
82 int NumberOfPoints[3];
83 double ReferencePoint[3];
84 double BasicDistance0[3];
85 double BasicDistance1[3][3];
86 double BasicDistance2[3][3];
87 double RParAsFunOfPhi[4];
88 bool EasyCoordinate[3];
99 void interpolateAtPoint(
double X1,
double X2,
double X3,
float &Bx,
float &By,
float &Bz);
102 void putCoordGetInd(
double X1,
double X2,
double X3,
int &Index1,
int &Index2,
int &Index3);
104 void putIndicesGetB(
int Index1,
int Index2,
int Index3,
float &Bx,
float &By,
float &Bz);
106 void putIndGetCoord(
int Index1,
int Index2,
int Index3,
double &X1,
double &X2,
double &X3);
108 int lineNumber(
int Index1,
int Index2,
int Index3);
std::vector< BVector > FieldValues