Changing variable in .cc from macro file

Hi there, Is there a way in which I can change a variable in a .cc file from a macro file. For example can I change a variable used to modify my geometry so that I can execute in a single macro multiple runs with multiple geometries and not have to execute that macro once per geometry?

Thank you in advance.

Have a look at

https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Control/userInterfaceCommand.html

Thank you very much for the information @allison. I will have a look