actions
Loading...
Searching...
No Matches
GSteppingAction Class Reference

Applies per-step track guards for one Geant4 worker. More...

#include <gSteppingAction.h>

Public Member Functions

void UserSteppingAction (const G4Step *step) override

Detailed Description

Replicates the GEMC2 MSteppingAction protections:

  • optical photons are killed after MAX_OPTICAL_PHOTON_STEPS steps: photons trapped by total internal reflection in volumes with no absorption length would otherwise bounce forever
  • any track is killed after MAX_TRACK_STEPS steps (e.g. stuck in a magnetic field loop)
  • tracks touching the Kryptonite material are killed

Definition at line 15 of file gSteppingAction.h.

Member Function Documentation

◆ UserSteppingAction()

void GSteppingAction::UserSteppingAction ( const G4Step * step)
override

Definition at line 9 of file gSteppingAction.cc.


The documentation for this class was generated from the following files: