software:g4simulation:config_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:g4simulation:config_commands [2019/02/15 16:36] – himuser | software:g4simulation:config_commands [2019/02/15 16:42] (current) – removed himuser | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Simulation configuration ==== | ||
- | To set the general behaviour of a simulation, a config file mechanism is used. The singleton class '' | ||
- | |||
- | === How to define a new command === | ||
- | - Add the variable(s) containing the settings information to class '' | ||
- | - Initialise these variables in the constructor using their default values. | ||
- | - Add an '' | ||
- | if(key == " | ||
- | macroFileName = value; | ||
- | macroSpecified = 1; | ||
- | cout<<" | ||
- | }</ | ||
- | |||
- | |||
- | \\ | ||
- | === List of commands === | ||
- | * Specify the root file where the geometry ('' | ||
- | geometry-file < | ||
- | </ | ||
- | |||
- | |||
- | * Specify the geant4 macro file to be executed. If this command is not used the geant4 interactive shell will be loaded. < | ||
- | macro-file <geant4 macro file> | ||
- | </ | ||
- | |||
- | |||
- | * Specify the root file where the simulation output is written. **Attention!** The specified file will be overwritten.< | ||
- | root-output-file test_bwec.root | ||
- | </ | ||
- | |||
- | |||
- | * Specify the primary generator to be used < | ||
- | primary-generator < | ||
- | </ | ||
- | * '' | ||
- | * '' | ||
software/g4simulation/config_commands.1550244962.txt.gz · Last modified: (external edit)