I have tried to use the /gps/pos/confine option and it works partially. I have defined a sphere with two half spheres and attached the generation of the distribution to one of the half spheres. However, I still get about 1% of the particles generated on the second half sphere and the following warning when this happens:
I don’t understand why this is happening. Maybe someone has some clue about the origin of this warning. I can kill the tracks inside the proper class but I would like to understand the problem.
I have uploaded the initial distribution I am getting.
might be that the confining half-spheres share the same surface as the sphere on which you generate the photons? I would naively guess that the problem vanishes when you confine to a G4Box that completely embedds the proper half.
Hi,
Can you please tell me how you short out this problem ?
I am also facing this problem.
/gps/pos/confine this command gives me error that volume does not exist.
here what i want that i have made a sphere and generated GPS.
and in that all radiation is coming at a point inside that sphere but i want that radiation should fall only on the surface.
i am getting like this…
Did you define the shape of your beam?
Maybe you need to define in your macro file also:
/gps/pos/type Volume
/gps/pos/shape Sphere
/gps/pos/radius XXX → the radius of your sphere
/gps/pos/center 0,0,0
/gps/pos/direction 0,0,1
Thanks for your reply!
yes, i have defined all these…please primary.txt (25.7 KB)
see in my primary.mac.
and one more thing is…here you are writing that (/gps/pos/radius XXX → the radius of your sphere) , is it the radius of sphere ?
i think it is the radius of Source (GPS).
i don’t want the radiation concentate at a point, it should incident on the surface of the sphere. i want distribution of particles like the below pictur