BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Tunnel class for parser. More...
#include <tunnel.h>
Public Member Functions | |
Tunnel () | |
constructor | |
void | clear () |
reset | |
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< Tunnel >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
std::string | type |
geometry type | |
double | aper1 |
radius, aperture parameters | |
double | aper2 |
double | offsetX |
offset x and y | |
double | offsetY |
double | thickness |
tunnel geometry parameters | |
double | soilThickness |
double | floorOffset |
int | visible |
visibility | |
std::string | material |
material | |
std::string | soilMaterial |
soil | |
std::string | startElement |
start and end element by name | |
std::string | endElement |
Private Member Functions | |
void | PublishMembers () |
Publish members. | |
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 (Tunnel *instance, const Tunnel *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 Tunnel *instance, const std::string &name) const |
Get method for class C. | |
void | set (Tunnel *instance, const std::string &name, double value) |
void | set (Tunnel *instance, const std::string &name, GMAD::Array *const &value) |
void | set (Tunnel *instance, const std::string &name, const T &value) |
Tunnel::Tunnel | ( | ) |
constructor
Definition at line 23 of file tunnel.cc.
References PublishMembers().
void Tunnel::clear | ( | ) |
void Tunnel::print | ( | ) | const |
print some properties
Definition at line 71 of file tunnel.cc.
References aper1, material, name, offsetX, soilMaterial, startElement, thickness, and type.
|
private |
Publish members.
Definition at line 52 of file tunnel.cc.
References aper1, material, name, offsetX, GMAD::Published< Tunnel >::publish(), soilMaterial, startElement, thickness, type, and visible.
Referenced by Tunnel().
void GMAD::Tunnel::set_value | ( | std::string | property, |
T | value | ||
) |
set methods by property name and value
Definition at line 79 of file tunnel.h.
References GMAD::Published< Tunnel >::set().
double GMAD::Tunnel::aper1 |
radius, aperture parameters
Definition at line 43 of file tunnel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::Tunnel::material |
material
Definition at line 56 of file tunnel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::Tunnel::name |
double GMAD::Tunnel::offsetX |
offset x and y
Definition at line 46 of file tunnel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::Tunnel::soilMaterial |
std::string GMAD::Tunnel::startElement |
start and end element by name
Definition at line 61 of file tunnel.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::Tunnel::thickness |
tunnel geometry parameters
Definition at line 48 of file tunnel.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::Tunnel::type |
geometry type
Definition at line 40 of file tunnel.h.
Referenced by clear(), print(), and PublishMembers().
int GMAD::Tunnel::visible |