gfields
Loading...
Searching...
No Matches
gfieldConventions.h
Go to the documentation of this file.
1#pragma once
2
3namespace gfields {
4
9
15inline constexpr char GFIELD_DEFAULT_INTEGRATION_STEPPER[] = "G4DormandPrince745";
16
22inline constexpr char GFIELD_DEFAULT_MINIMUM_STEP[] = "1.0*mm";
23
29inline constexpr char GFIELD_DEFAULT_MAXIMUM_STEP[] = "0*mm";
30
31// Other default parameters are in the form of strings (to preserve unit expressions).
32
36inline constexpr char GFIELD_DEFAULT_VERTEX[] = "0*mm";
37
41inline constexpr char GFIELD_DEFAULT_ROTANGLE[] = "0*deg";
42
46inline constexpr char GFIELD_DEFAULT_VERBOSITY[] = "0";
47
55inline constexpr char GLOBAL_FIELD_OPTION[] = "global_field";
56
66inline constexpr char NO_FIELD_OPTION[] = "no_field";
67
74inline constexpr char MAX_FIELD_STEP_OPTION[] = "max_field_step";
75
80inline constexpr char NO_FIELD_ALL[] = "all";
81
82
83// Error codes in the 1200 range (module-local).
84inline constexpr int ERR_WRONG_FIELD_ROTATION = 1201;
85inline constexpr int ERR_WRONG_FIELD_NOT_FOUND = 1202;
86inline constexpr int ERR_STEPPER_NOT_FOUND = 1203;
87inline constexpr int ERR_WRONG_POLE_NUMBER = 1204;
88inline constexpr int ERR_WRONG_FIELD_SYMMETRY = 1205;
89inline constexpr int ERR_WRONG_COORDINATE_DEF = 1206;
90inline constexpr int ERR_MAP_FILE_NOT_FOUND = 1207;
91
93
94} // namespace gfields
constexpr char GFIELD_DEFAULT_ROTANGLE[]
Default multipole roll rotation angle (string with Geant4 units).
constexpr int ERR_WRONG_FIELD_ROTATION
constexpr char NO_FIELD_ALL[]
Special gfields::NO_FIELD_OPTION value that resets all fields, including gfields::GLOBAL_FIELD_OPTION...
constexpr int ERR_WRONG_FIELD_SYMMETRY
constexpr int ERR_MAP_FILE_NOT_FOUND
constexpr char GFIELD_DEFAULT_VERTEX[]
Default origin coordinate component for multipole fields (string with Geant4 units).
constexpr char GFIELD_DEFAULT_INTEGRATION_STEPPER[]
Default integration stepper name used when the requested stepper is unsupported.
constexpr int ERR_STEPPER_NOT_FOUND
constexpr char GFIELD_DEFAULT_VERBOSITY[]
Default verbosity level (string) for field-related configuration.
constexpr char NO_FIELD_OPTION[]
Command-line option name used to reset (remove) field associations.
constexpr int ERR_WRONG_COORDINATE_DEF
constexpr char MAX_FIELD_STEP_OPTION[]
Command-line option name used to set the global maximum acceptable field step.
constexpr char GFIELD_DEFAULT_MINIMUM_STEP[]
Default minimum step for the chord finder (string with Geant4 units).
constexpr char GLOBAL_FIELD_OPTION[]
Command-line option name used to associate a field with the ROOT world volume.
constexpr int ERR_WRONG_POLE_NUMBER
constexpr int ERR_WRONG_FIELD_NOT_FOUND
constexpr char GFIELD_DEFAULT_MAXIMUM_STEP[]
Default maximum acceptable field step for Geant4 propagation.