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