Function RMGOutputTools::get_position¶
Function Documentation¶
-
G4ThreeVector RMGOutputTools::get_position(RMGDetectorHit *hit, RMGOutputTools::PositionMode mode)¶
Get the position to save for a given hit.
If the mode is
kPostStepor if the particle is a gamma then the post-step point is used. This is since gamma’s have only discrete interactions happening at the post-step. Otherwise if mode iskPreStepthe prestep point is extracted, if it is eitherkBothorkAveragethe average of pre and post step is used (in the case ofkBoththe pre and post step should also be saved separately).