<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi, everyone, I want to define a source uniformly distributed on a sphere surface with direction towards inside sphere, but not limited to center of  the sphere. I tried the codes listed below, </div><div><br /></div><div><div>/gate/source/addSource                egun   gps</div><div>/gate/source/egun/gps/particle   e-</div><div>/gate/source/egun/gps/monoenergy 2 keV </div><div>/gate/source/egun/gps/type       Surface</div><div>/gate/source/egun/gps/shape      Sphere </div><div>/gate/source/egun/gps/radius     1.0  mm</div><div>/gate/source/egun/gps/centre     0.0 0.0 0.0 mm </div><div>/gate/source/egun/gps/angtype    iso                    #1</div><div>/gate/source/egun/gps/mintheta   90.  deg           #2</div><div>/gate/source/egun/gps/maxtheta   180. deg         #3</div><div>/gate/source/egun/gps/minphi     0.   deg            #4</div><div>/gate/source/egun/gps/maxphi     360. deg         #5</div></div><div><br /></div><div>Q1: when I run numbers of particles, I always got some particles "lost", namely the particles launched to sphere outside rather than inside.</div><div>Q2: when I comment the line ended with #1~#5, nothing changed, why? how can I get the correct code arrangement.</div><div>thanks</div><div><br /></div><div>SL</div></div><br>