Commit in lcdd/src/lcdd/bfield on MAIN | |||
Cartesian3DMagneticFieldMap.cc | +3 | -3 | 1.4 -> 1.5 |
patch from Norman to fix wrong handling of offsets
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 &&
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1