Function RMGGeneratorUtil::rand(const G4Orb *, bool)¶
Function Documentation¶
-
G4ThreeVector RMGGeneratorUtil::rand(const G4Orb*, bool on_surface = false)¶
Generate a random point in or on the surface of a
G4Orb.Uses appropriate methods to sample a point within or on the outer surface of the orb.
- Parameters:
orb – Pointer to the
G4Orb.on_surface – If true, sample a point on the surface; otherwise, inside the volume.
- Returns:
A random point as
G4ThreeVector.