Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 522: | Line 522: | ||
=== <span style="color:#000080"> Step </span> === | === <span style="color:#000080"> Step </span> === | ||
- | Step has two points and information about the particle e.g. energy loss on the step. A step is represented by <span style="color:#ff0000"> G4Step </span> and <span style="color:#ff0000"> G4StepPoint </span> classes. G4UserSteppingAction is optional class where you can kill, suspend, postpone a track. | + | Step has two points and information about the particle e.g. energy loss on the step. A step is represented by <span style="color:#ff0000"> G4Step </span> and <span style="color:#ff0000"> G4StepPoint </span> classes. <span style="color:#ff0000"> G4UserSteppingAction </span> is optional class where you can kill, suspend, postpone a track. |
- | Status is attached to each <span style="color:#ff0000"> G4StepPoint </span> to show how step was determined. You can use PostStepPoint to get status of current step and PreStepPoint to get status of previous step. For example to get the x coordinate of a step you do the following: | + | Status is attached to each <span style="color:#ff0000"> G4StepPoint </span> to show how step was determined. You can use ''PostStepPoint'' to get status of current step and ''PreStepPoint'' to get status of previous step. For example to get the x coordinate of a step you do the following: |