Generating Particles Using Phase Space


I’m hoping to create a primaryGeneratorSource that uses phase space input to define the particles created. I have another simulation that gives me output in a CSV format with the relevant information (i.e. x-ray energy, directions, positions etc.) and I want the simulation to use this information to create the x-rays. Is this better to do with a phps file? Is this doable with a CSV?