41 *condition = NotForced;
42 G4double stepLength = kInfinity;
44 G4ThreeVector trkPosi = aTrack.GetPosition();
45 G4double pos1[3] = { trkPosi.x(), trkPosi.y(), trkPosi.z() };
46 G4double h1[3] = { 0.0, 0.0, 0.0 };
47 m_field->GetFieldValue(pos1, h1);
48 G4ThreeVector BVec(h1[0], h1[1], h1[2]);
49 G4double pmag = aTrack.GetMomentum().mag();
50 G4double BPerpMom = BVec.cross(aTrack.GetMomentum()).mag() / pmag;
51 if (BPerpMom != 0.0) {
54 B2DEBUG(300,
"ExtMagFieldLimitProcess::PostStepGetPhysicalInteractionLength() stepLength "
55 << stepLength <<
" B " << BPerpMom <<
" BVec " << BVec <<
" pmag " << pmag);