Hi all,
I am attempting to generate primaries that follow some energy distribution, but whose angular distribution varies with energy (i.e. at 2 MeV the source is basically isotropic, but at higher energies it becomes more focused in a particular direction). My thought was that some 2D interpolation of provided data points would accomplish this, and it seems like there is a class called G4Physics2DVector that may be useful for this purpose, but I am a bit lost on how to actually implement it in my PrimaryGeneratorAction. Are there any examples demonstrating use of G4Physics2DVector (or G4PhysicsVector), or does anyone have advice/recommendations?
Thank you!