Is it possible to build a user chosen geometry by issuing macro file commands. For example:
/example/chooseDetector <detectorType>
which will then (via a messenger class) build the specified geometry in a DetectorConstruction.cc type file?
I am not able to pass arguments into the G4VUserDetectorConstruction* Construct() method and trigger conditional statements in the DetectorConstruction.cc file such as:
if (G4String& detectorChoice == <detectorType>){
"Build detector of choice"
}
Also, it would be great if the user defined detectorType would be build in a constant phantom size, such that it would be simple to switch geometries from the macro file whilst retaining the same environment.
Any help would be great!
Thanks.