Hi all!
I’m a relative newbie to GEANT4 and have an issue regarding running macros in the command line. In particular, I would like to run laserDrivenBeamline.mac in the hadrontherapy example.
When I run
./hadrontherapy ../macro/laserDrivenBeamline.mac
in the build directory, I get the following error:
***** COMMAND NOT FOUND </process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year> *****
***** Batch is interrupted!! *****
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
Command aborted (100)
Error code : 100
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
When I run the executable (./hadrontherapy), I do not receive an error. However, when I run
/control/execute laserDrivenBeamline.mac
in the visualization, I receive the following error:
***** Illegal application state </geometrySetup/selectGeometry LaserDriven> *****
***** Batch is interrupted!! *****
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
Command aborted (200)
Error code : 200
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
illegal application state – command refused:“/control/execute laserDrivenBeamline.mac”
In a previous thread, the latter error was attributed to GEANT4’s inability to change geometry once an already loaded geometry. However, I receive the former error when I try the thread’s recommended solution (implementing the macro in the command line).
How should I best go about running the macro? Is there another way I should do so?
Completely aside, there’s a typo in the visualization manager. In the “Documentation :” section, it links the “Visualisation Publication :” with “visualization” spelled as so.