66 void set_value(std::string property, T value,
bool bExit =
true);
72 std::cout <<
"cavitymodel> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
76 {
set(
this,property,value);}
77 catch(
const std::runtime_error&)
79 std::cerr <<
"Error: cavitymodel> unknown option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
83 {std::rethrow_exception(std::current_exception());}
RF CavityModel class for parser.
double equatorRadius
equator radius
double thickness
thickness
double irisHorizontalAxis
iris horizontal axis
double irisRadius
iris radius
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
void set_value(std::string property, T value, bool bExit=true)
set methods by property name and value
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.