78 std::string magneticSubField;
79 std::string electricSubField;
81 std::string magneticReflection;
82 std::string electricReflection;
84 std::string fieldParameters;
94 void set_value(std::string property, T value,
bool bExit =
true);
102 template <
typename T>
106 std::cout <<
"field> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
110 {
set(
this,property,value);}
111 catch (
const std::runtime_error&)
113 std::cerr <<
"Error: field> unknown option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
117 {std::rethrow_exception(std::current_exception());}
double theta
Euler angle for rotation.
bool autoScale
Scale the field to the magnet it's attached to.
void print() const
Print some properties.
double maximumStepLengthOverride
std::string integrator
Which integrator to use.
std::string magneticInterpolator
Interpolator for the magnetic field.
std::string electricFile
File for the electric field map.
void PublishMembers()
publish members
double phi
Euler angle for rotation.
double bScaling
B Field Scaling factor.
double maximumStepLength
Maximum permitted step length in the volumes the field is attached to.
void set_value(std::string property, T value, bool bExit=true)
Set methods by property name and value.
std::string magneticFile
File for magnetic field map.
std::string electricInterpolator
Interpolator for the electric field.
std::string fieldModulator
Name of field modulator object.
bool axisAngle
Flag to use the axis angle construction of rotation.
bool globalTransform
Provide global to curvilinear coordinate transform.
double eScaling
E Field Scaling factor.
double psi
Euler angle for rotation.
Class that provides introspection to its members.
void set(Field *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.