Hello,
I am trying to generate a distribution of primaries using the macro commands supplied by the G4GeneralParticleSource
class. I used the following code in the visualization macro:
/gps/particle proton
/gps/energy 1 keV
/gps/pos/type Surface
/gps/pos/shape Ellipsoid
/gps/pos/centre 0 0 0 mm
/gps/pos/halfx 7 um
/gps/pos/halfz 7 um
/gps/pos/halfy 2.5 um
With the cylinder (/gps/pos/shape Cylinder
) and the parallelepiped (/gps/pos/shape Para
) I got the expected results, but with the ellipsoid the spatial distribution seems to have a larger density of primaries in the center than in the periphery (I attach a screenshot).
I am using Geant4 v10.7.4 and Operating System Ubuntu 22.04.
Have you experienced the same problem using /gps/pos/shape Ellipsoid
?