Print

Print


Commit in lcdd/src/lcdd/bfield on MAIN
Cartesian3DMagneticFieldMap.cc+3-51.3 -> 1.4
add offsets in GetFieldValue before interpolating

lcdd/src/lcdd/bfield
Cartesian3DMagneticFieldMap.cc 1.3 -> 1.4
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 
CVSspam 0.2.12


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