lcdd/src/lcdd/bfield
diff -u -r1.3 -r1.4
--- Cartesian3DMagneticFieldMap.cc 29 Aug 2013 21:33:17 -0000 1.3
+++ Cartesian3DMagneticFieldMap.cc 4 Sep 2013 00:43:58 -0000 1.4
@@ -110,13 +110,11 @@
cout << "done loading field map" << endl;
}
-void Cartesian3DMagneticFieldMap::GetFieldValue(const double point[4],
- double *Bfield ) const
+void Cartesian3DMagneticFieldMap::GetFieldValue(const double point[4], double *Bfield ) const
{
- /** @todo Add x + y offset. */
- double x = point[0];
- double y = point[1];
+ double x = point[0] + _xOffset;
+ double y = point[1] + _yOffset;
double z = point[2] + _zOffset;
// Check that the point is within the defined region