11 #include "G4RunManagerKernel.hh"
18 : m_count(0), m_energy(0)
32 if ( fabs(
m_energy-aStep->GetTrack()->GetKineticEnergy())<0.00001 ){
37 m_energy = aStep->GetTrack()->GetKineticEnergy();
41 if (aStep->GetTrack()->GetKineticEnergy() < 0.0001){
45 aStep->GetTrack()->SetTrackStatus( fStopAndKill );
49 aStep->GetTrack()->SetTrackStatus( fStopAndKill );
50 G4RunManagerKernel *rmk = G4RunManagerKernel::GetRunManagerKernel();
51 rmk->GetEventManager()->AbortCurrentEvent();
52 rmk->GetEventManager()->GetNonconstCurrentEvent()->SetEventAborted();