17 G4StepPoint* postStep = currentStep->GetPostStepPoint();
18 G4ThreeVector currentPosition = postStep->GetPosition();
19 G4Track* currentTrack = currentStep->GetTrack();
20 if ( std::abs( currentPosition.x() ) > 263.5 * cm ||
21 std::abs( currentPosition.y() ) > 263.5 * cm ||
22 std::abs( currentPosition.z() ) > 287.5 * cm )
24 G4cout <<
"Out of World!!!" << G4endl;
25 currentTrack->SetTrackStatus( fKillTrackAndSecondaries );
27 else if ( currentTrack->GetCurrentStepNumber() >= 20000 )
29 G4cout <<
"StepNumber>=20000 !!!" << G4endl;
30 currentTrack->SetTrackStatus( fKillTrackAndSecondaries );