Using GPS to define source from density, energy and direction probability distribution in a 3D mesh geometry

Dear all,

I would like to know, please, if it is possible to generate primary particles by defining a General Particle Source or another method from an input file where it is reported, for a 3D mesh geometry:

-probability density function: each cell of the mesh is associated to the probability that a particle of the source is generated in each mesh cell
-energy spectrum: in each cell, a normalized spectrum is associated, corresponding to the probability that a particle is generated at a specific energy bin in each mesh cell
-direction: probability that a particle has a particular direction (theta, phi) in each mesh cell

Thank you very much for your time.
Best regards,

Christian