50 *condition = NotForced;
51 G4double stepLength = kInfinity;
53 G4ThreeVector trkPosi = aTrack.GetPosition();
54 G4double pos1[3] = { trkPosi.x(), trkPosi.y(), trkPosi.z() };
55 G4double h1[3] = { 0.0, 0.0, 0.0 };
56 m_field->GetFieldValue(pos1, h1);
57 G4ThreeVector BVec(h1[0], h1[1], h1[2]);
58 G4double pmag = aTrack.GetMomentum().mag();
59 G4double BPerpMom = BVec.cross(aTrack.GetMomentum()).mag() / pmag;
60 if (BPerpMom != 0.0) {
63 B2DEBUG(300,
"ExtMagFieldLimitProcess::PostStepGetPhysicalInteractionLength() stepLength "
64 << stepLength <<
" B " << BPerpMom <<
" BVec " << BVec <<
" pmag " << pmag);