64 void set_value(std::string property, T value,
bool bExit =
true);
75 std::cout <<
"crystal> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
79 {
set(
this,property,value);}
80 catch (
const std::runtime_error&)
82 std::cerr <<
"Error: crystal> unknown option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
86 std::rethrow_exception(std::current_exception());
Crystal class for parser.
std::string name
Name of object.
void PublishMembers()
publish members
std::string shape
Which geometry to create.
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.
void set_value(std::string property, T value, bool bExit=true)
Set methods by property name and value.
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.