About the Definition of Source of restG4

System : Linux
REST version : v2.2.7


How can I define a particle source whose direction is mono in the .rml file of restG4?

Hi, you can define the flux type to fix the direction of the particle generated. I believe that’s what you mean by mono?

For example, this launches all your particles in the y-direction.

<angularDist type="flux" direction="(0,1,0)" />

If the direction vector in not unitary, it will be re-normalized to unit vector internally.

See for example the documentation the section The source angular distribution of TRestG4Metadata documentation.

Plz, notice that when showing code is always better to copy/paste the code as text (and not as an image screenshot) so that it can be searched in the future.