g4system
Loading...
Searching...
No Matches
g4system_options.cc
Go to the documentation of this file.
1// g4system_options.cc : option definitions for the g4system module.
11
12#include "g4system_options.h"
13#include "gsystem_options.h"
14
15// project goption to a system
16namespace g4system {
17// returns array of options definitions
19 // Aggregate options from this module, factories, and the base gsystem module.
22
23 // Pull in shared system options (database, geometry system handling, etc.).
25
26 // Optional material used when a volume requests one that is not in the Geant4 material tables.
27 std::string help =
28 "Material to be used if some volume requested a non-defined material.\n\n";
29 help += "By default GEMC will exit with error.\n";
30 help += "Example: -useBackupMaterial=G4_Air\n";
31 goptions.defineOption(GVariable("useBackupMaterial", std::nullopt, "Backup material"), help);
32
33 // Human-readable switches used for diagnostics and validation.
34 goptions.defineSwitch("showPredefinedMaterials", "log GEMC Predefined Materials");
35 goptions.defineSwitch("printSystemsMaterials", "print the materials used in this simulation");
36
37 // Overlap checking mode (the integer "check_overlaps" option below is the single control):
38 // - 0 disables overlap checks
39 // - 1 enables overlap checking at placement time
40 // - 2 uses Geant4 overlap validator with default surface sampling
41 // - N>100 uses Geant4 overlap validator with N surface points
42 help = "Check for overlaps at physical volume construction.\n\n";
43 help += "Possible values are:\n";
44 help += " - 0 (default): no check.\n";
45 help += " - 1: enable the G4PVPlacement surface overlap check (pSurfChk) at volume placement.\n";
46 help += " - 2: use the geant4 overlap validator with the default number of points on the surface\n";
47 help += " - Any N greater than 100: use the geant4 overlap validator with N points on the surface\n \n";
48 help += "Example: -check_overlaps=1\n";
49 goptions.defineOption(GVariable("check_overlaps", 0, "check overlaps"), help);
50
51 return goptions;
52}
53}
Option definitions for the g4system module (geometry/material construction layer).
constexpr const char * G4SYSTEM_LOGGER
Logger name used by the module-level builder (e.g. G4World).
constexpr const char * G4SFACTORY_LOGGER
Logger name used by object factories (e.g. G4ObjectsFactory derived classes).
GOptions defineOptions()
Define command-line/configuration options for the g4system module.
GOptions defineOptions()