1 #ifndef MagneticFieldGrid_H 2 #define MagneticFieldGrid_H 36 for (
int i = 0;
i < 3; ++
i) {
37 NumberOfPoints[
i] = 0;
39 for (
int i = 0;
i < 3; ++
i) {
40 ReferencePoint[
i] = 0.;
42 for (
int i = 0;
i < 3; ++
i) {
43 BasicDistance0[
i] = 0.;
45 for (
int i = 0;
i < 3; ++
i) {
46 for (
int j = 0;
j < 3; ++
j) {
47 BasicDistance1[
i][
j] = 0.;
50 for (
int i = 0;
i < 3; ++
i) {
51 for (
int j = 0;
j < 3; ++
j) {
52 BasicDistance2[
i][
j] = 0.;
55 for (
int i = 0;
i < 4; ++
i) {
56 RParAsFunOfPhi[
i] = 0.;
58 for (
int i = 0;
i < 3; ++
i) {
59 EasyCoordinate[
i] =
false;
92 void putB3(
float Bx,
float By,
float Bz);
102 int NumberOfPoints[3];
103 double ReferencePoint[3];
104 double BasicDistance0[3];
105 double BasicDistance1[3][3];
106 double BasicDistance2[3][3];
107 double RParAsFunOfPhi[4];
108 bool EasyCoordinate[3];
119 void interpolateAtPoint(
double X1,
double X2,
double X3,
float &Bx,
float &By,
float &Bz);
122 void putCoordGetInd(
double X1,
double X2,
double X3,
int &Index1,
int &Index2,
int &Index3);
124 void putIndicesGetB(
int Index1,
int Index2,
int Index3,
float &Bx,
float &By,
float &Bz);
126 void putIndGetCoord(
int Index1,
int Index2,
int Index3,
double &X1,
double &X2,
double &X3);
128 int lineNumber(
int Index1,
int Index2,
int Index3);
std::vector< BVector > FieldValues
def printInfo(self, event)