Changeset 921 for trunk/source/geometry/navigation/src/G4PathFinder.cc
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/navigation/src/G4PathFinder.cc
r850 r921 25 25 // 26 26 // 27 // $Id: G4PathFinder.cc,v 1. 59 2008/04/29 15:32:54gcosmo Exp $27 // $Id: G4PathFinder.cc,v 1.61 2008/11/13 12:59:26 gcosmo Exp $ 28 28 // GEANT4 tag $ Name: $ 29 29 // … … 581 581 if( (!fNewTrack) && ( longMoveEnd && longMoveSaf ) ) 582 582 { 583 G4ThreeVector LastSafetyLocation;584 // Copy to keep last value - and restore585 586 LastSafetyLocation= fSafetyLocation;587 588 583 // Recompute ComputeSafety for end position 589 584 // 590 585 revisedSafety= ComputeSafety(lastEndPosition); 591 592 // Reset the state of last call to ComputeSafety593 //594 ComputeSafety( LastSafetyLocation );595 586 596 587 #ifdef G4DEBUG_PATHFINDER … … 757 748 758 749 std::vector<G4Navigator*>::iterator pNavigatorIter; 759 pNavigatorIter= fpTransportManager-> 750 pNavigatorIter= fpTransportManager->GetActiveNavigatorsIterator(); 760 751 761 752 for( register G4int num=0; num<fNoActiveNavigators; ++pNavigatorIter,++num ) 762 753 { 763 G4double safety = (*pNavigatorIter)->ComputeSafety( position );754 G4double safety = (*pNavigatorIter)->ComputeSafety( position,true ); 764 755 if( safety < minSafety ) { minSafety = safety; } 765 756 fNewSafetyComputed[num]= safety; … … 1183 1174 for( numNav=0; numNav < fNoActiveNavigators; ++numNav ) 1184 1175 { 1185 safety= fpNavigator[numNav]->ComputeSafety( startPoint );1176 safety= fpNavigator[numNav]->ComputeSafety( startPoint, false ); 1186 1177 fPreSafetyValues[numNav]= safety; 1187 1178 fCurrentPreStepSafety[numNav]= safety;
Note: See TracChangeset
for help on using the changeset viewer.