65 void set_value(std::string property, T value);
76 std::cout <<
"crystal> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
80 {
set(
this,property,value);}
81 catch (
const std::runtime_error&)
83 std::cerr <<
"Error: crystal> unknown option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
Crystal class for parser.
std::string name
Name of object.
void PublishMembers()
publish members
std::string shape
Which geometry to create.
void set_value(std::string property, T value)
Set methods by property name and value.
void print() const
Print some properties.
double bendingAngleYAxis
Bending angle about Y axis.
std::string data
Which channelling data to use.
double bendingAngleZAxis
Bending angle about Z axis.
std::string material
Material of crystal.
Class that provides introspection to its members.
void set(Crystal *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.