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 kPostStep or 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 is kPreStep the prestep point is extracted, if it is either kBoth or kAverage the average of pre and post step is used (in the case of kBoth the pre and post step should also be saved separately).