NEEDS DOCUMENTATION.
More...
#include <PhotonKiller.h>
NEEDS DOCUMENTATION.
Definition at line 16 of file PhotonKiller.h.
◆ PhotonKiller()
| G4UA::PhotonKiller::PhotonKiller |
( |
| ) |
|
◆ PreUserTrackingAction()
| void G4UA::PhotonKiller::PreUserTrackingAction |
( |
const G4Track * | | ) |
|
|
finaloverridevirtual |
◆ UserSteppingAction()
| void G4UA::PhotonKiller::UserSteppingAction |
( |
const G4Step * | aStep | ) |
|
|
finaloverridevirtual |
Definition at line 30 of file PhotonKiller.cxx.
31 {
32 if ( fabs(
m_energy-aStep->GetTrack()->GetKineticEnergy())<0.00001 ){
33
35 } else {
37 m_energy = aStep->GetTrack()->GetKineticEnergy();
38 return;
39 }
40
41 if (aStep->GetTrack()->GetKineticEnergy() < 0.0001){
42 if ( (
m_count>3 && aStep->GetTrack()->GetDefinition() == G4Gamma::Gamma() ) ||
44
45 aStep->GetTrack()->SetTrackStatus( fStopAndKill );
46 }
48
49 aStep->GetTrack()->SetTrackStatus( fStopAndKill );
50 G4RunManagerKernel *rmk = G4RunManagerKernel::GetRunManagerKernel();
51 rmk->GetEventManager()->AbortCurrentEvent();
52 rmk->GetEventManager()->GetNonconstCurrentEvent()->SetEventAborted();
53 }
54 }
◆ m_count
| int G4UA::PhotonKiller::m_count |
|
private |
◆ m_energy
| float G4UA::PhotonKiller::m_energy |
|
private |
The documentation for this class was generated from the following files: