BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
RF CavityModel class for parser. More...
#include <cavitymodel.h>
Public Member Functions | |
CavityModel () | |
constructor | |
void | clear () |
reset | |
void | PublishMembers () |
publish members | |
void | print () const |
print some properties | |
template<typename T > | |
void | set_value (std::string property, T value) |
set methods by property name and value | |
![]() | |
bool | NameExists (const std::string &name) const |
Published< CavityModel >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
name | |
std::string | type |
geometry type | |
std::string | material |
material name | |
double | irisRadius |
iris radius | |
double | equatorRadius |
equator radius | |
double | halfCellLength |
half cell length | |
double | equatorHorizontalAxis |
equator ellipse vertical semi axis; | |
double | equatorVerticalAxis |
equator ellipse horizontal semi axis; | |
double | irisHorizontalAxis |
iris horizontal axis | |
double | irisVerticalAxis |
Iris axis. | |
double | tangentLineAngle |
tangent angle | |
double | thickness |
thickness | |
int | numberOfPoints |
int | numberOfCells |
number of cells per cavity | |
Additional Inherited Members | |
![]() | |
using | AttributeMap = typename std::unordered_map< std::string, T C::* > |
Define AttributeMap of string and class member pointer. | |
![]() | |
void | publish (const std::string &name, T C::*mp) |
Make pointer to member from class C and type T with accessible with a name. | |
void | set (CavityModel *instance, const CavityModel *instance2, const std::string &name) |
Set member with name of class instance to value of second instance. | |
AttributeMap< T > & | attribute_map () const |
Access method to static map for type T and class C. | |
T | get (const CavityModel *instance, const std::string &name) const |
Get method for class C. | |
void | set (CavityModel *instance, const std::string &name, double value) |
void | set (CavityModel *instance, const std::string &name, GMAD::Array *const &value) |
void | set (CavityModel *instance, const std::string &name, const T &value) |
RF CavityModel class for parser.
Definition at line 35 of file cavitymodel.h.
CavityModel::CavityModel | ( | ) |
constructor
Definition at line 23 of file cavitymodel.cc.
References clear(), and PublishMembers().
void CavityModel::clear | ( | ) |
reset
Definition at line 29 of file cavitymodel.cc.
References equatorHorizontalAxis, equatorRadius, equatorVerticalAxis, halfCellLength, irisHorizontalAxis, irisRadius, irisVerticalAxis, material, name, numberOfCells, numberOfPoints, tangentLineAngle, thickness, and type.
Referenced by CavityModel().
void CavityModel::print | ( | ) | const |
print some properties
Definition at line 65 of file cavitymodel.cc.
References equatorHorizontalAxis, equatorRadius, equatorVerticalAxis, halfCellLength, irisHorizontalAxis, irisRadius, irisVerticalAxis, material, name, numberOfCells, numberOfPoints, tangentLineAngle, thickness, and type.
void CavityModel::PublishMembers | ( | ) |
publish members
Definition at line 47 of file cavitymodel.cc.
References equatorHorizontalAxis, equatorRadius, equatorVerticalAxis, halfCellLength, irisHorizontalAxis, irisRadius, irisVerticalAxis, material, name, numberOfCells, numberOfPoints, GMAD::Published< CavityModel >::publish(), tangentLineAngle, thickness, and type.
Referenced by CavityModel().
void GMAD::CavityModel::set_value | ( | std::string | property, |
T | value | ||
) |
set methods by property name and value
Definition at line 70 of file cavitymodel.h.
References GMAD::Published< CavityModel >::set().
double GMAD::CavityModel::equatorHorizontalAxis |
equator ellipse vertical semi axis;
Definition at line 43 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::equatorRadius |
equator radius
Definition at line 41 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::equatorVerticalAxis |
equator ellipse horizontal semi axis;
Definition at line 44 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::halfCellLength |
half cell length
Definition at line 42 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::irisHorizontalAxis |
iris horizontal axis
Definition at line 45 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::irisRadius |
iris radius
Definition at line 40 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::irisVerticalAxis |
Iris axis.
Definition at line 46 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::CavityModel::material |
material name
Definition at line 39 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::CavityModel::name |
name
Definition at line 37 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
int GMAD::CavityModel::numberOfCells |
number of cells per cavity
Definition at line 54 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
int GMAD::CavityModel::numberOfPoints |
number of points that will be used to make the cell shape more will be more accurate but will also increase tracking time
Definition at line 52 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::tangentLineAngle |
tangent angle
Definition at line 47 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::CavityModel::thickness |
thickness
Definition at line 48 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::CavityModel::type |
geometry type
Definition at line 38 of file cavitymodel.h.
Referenced by clear(), print(), and PublishMembers().