91 G4double distSq= (newLocation-fLastLocation).mag2();
93 if( distSq < fDistanceConst*fDistanceConst )
95 Bfield[0] = fLastValue.x();
96 Bfield[1] = fLastValue.y();
97 Bfield[2] = fLastValue.z();
101 fpMagneticField->GetFieldValue( Point, Bfield );
103 fLastLocation =
G4ThreeVector( Point[0], Point[1], Point[2] );
104 fLastValue =
G4ThreeVector( Bfield[0], Bfield[1], Bfield[2] );