Feeding Information within Primary Generator Action

Hi,

This is probably a reflection of my C++ knowledge, but I was hoping to feed in information from the Primary Generator Action constructor (which records an array of particle information on a row by row basis) into the GeneratePrimaries() function. However, because the entire array (e.g. every row) is imported into the Constructor at once, I’m unsure how to access it in the GeneratePrimaries() function in a way that is suitable, as from my understanding, this function runs on a particle-by-particle basis. How do I access information from the constructor row-by-row and therefore assign it particle-by-particle? Thank you!

Are you talking about a specific Geant4 example? If so, which one? Or are you looking at a Geant4 application which someone else has given you to work with?