67 void set_value(std::string property, T value);
73 std::cout <<
"cavitymodel> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
77 {
set(
this,property,value);}
78 catch(
const std::runtime_error&)
80 std::cerr <<
"Error: cavitymodel> unknown option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
RF CavityModel class for parser.
double equatorRadius
equator radius
double thickness
thickness
double irisHorizontalAxis
iris horizontal axis
double irisRadius
iris radius
void set_value(std::string property, T value)
set methods by property name and value
double tangentLineAngle
tangent angle
double equatorHorizontalAxis
equator ellipse vertical semi axis;
double irisVerticalAxis
Iris axis.
double equatorVerticalAxis
equator ellipse horizontal semi axis;
double halfCellLength
half cell length
std::string material
material name
std::string type
geometry type
void print() const
print some properties
void PublishMembers()
publish members
int numberOfCells
number of cells per cavity
Class that provides introspection to its members.
void set(CavityModel *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.