lcdd/src/lcdd/bfield
diff -u -r1.4 -r1.5
--- Cartesian3DMagneticFieldMap.cc 4 Sep 2013 00:43:58 -0000 1.4
+++ Cartesian3DMagneticFieldMap.cc 5 Sep 2013 21:09:02 -0000 1.5
@@ -113,9 +113,9 @@
void Cartesian3DMagneticFieldMap::GetFieldValue(const double point[4], double *Bfield ) const
{
- double x = point[0] + _xOffset;
- double y = point[1] + _yOffset;
- double z = point[2] + _zOffset;
+ double x = point[0] - _xOffset;
+ double y = point[1] - _yOffset;
+ double z = point[2] - _zOffset;
// Check that the point is within the defined region
if ( x>=_minx && x<=_maxx &&