Commit in lcdd/src on MAIN
G4Dipole.cc+7-11.4 -> 1.5
JM: Update dipole parameterisation with flip of sign for neg z.

lcdd/src
G4Dipole.cc 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- G4Dipole.cc	1 Aug 2006 23:52:08 -0000	1.4
+++ G4Dipole.cc	3 Aug 2006 23:59:31 -0000	1.5
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/lcdd/src/G4Dipole.cc,v 1.4 2006/08/01 23:52:08 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/src/G4Dipole.cc,v 1.5 2006/08/03 23:59:31 jeremy Exp $
 
 #include "G4Dipole.hh"
 
@@ -36,11 +36,17 @@
     // Convert to specified field unit.
     bx *= m_funit;
 
+    // Flip sign for negative z.
+    if (z < 0) {
+      bx = -bx;
+    }
+
     // Add Bx to the input Bfield.
     Bfield[0] += bx;
   }
 
   //std::cout << "AFTER --> bfield = " << Bfield[0] << " " << Bfield[1] << " " << Bfield[2] << std::endl << std::endl;
+  //std::cout << Point[2] << " " << Bfield[0] << std::endl;
 
   return;
 }
CVSspam 0.2.8