73 std::string magneticSubField;
74 std::string electricSubField;
76 std::string magneticReflection;
77 std::string electricReflection;
79 std::string fieldParameters;
89 void set_value(std::string property, T value);
101 std::cout <<
"field> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
105 {
set(
this,property,value);}
106 catch (
const std::runtime_error&)
108 std::cerr <<
"Error: field> unknown option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
void set_value(std::string property, T value)
Set methods by property name and value.
double theta
Euler angle for rotation.
bool autoScale
Scale the field to the magnet it's attached to.
void print() const
Print some properties.
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.
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.