BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
blm for parser. More...
#include <blmplacement.h>
Public Member Functions | |
BLMPlacement () | |
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< BLMPlacement >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
Name of this samplerplacement. | |
std::string | referenceElement |
Name of reference element w.r.t. to place to. | |
int | referenceElementNumber |
Index of repetition of element if there are multiple uses. | |
double | s |
Curvilinear s position to place w.r.t.. | |
double | x |
Offset in x. | |
double | y |
Offset in y. | |
double | z |
bool | axisAngle |
Flag to use the axis angle construction of rotation. | |
std::string | side |
which side to attach to: top, bottom, left, right. | |
double | sideOffset |
Offset between the geometry and the BLM. | |
std::string | geometryFile |
std::string | geometryType |
std::string | blmMaterial |
double | blm1 |
double | blm2 |
double | blm3 |
double | blm4 |
std::string | scoreQuantity |
std::string | bias |
double | phi |
Euler angle for rotation. | |
double | theta |
Euler angle for rotation. | |
double | psi |
Euler angle for rotation. | |
double | axisX |
double | axisY |
double | axisZ |
double | angle |
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 (BLMPlacement *instance, const BLMPlacement *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 BLMPlacement *instance, const std::string &name) const |
Get method for class C. | |
void | set (BLMPlacement *instance, const std::string &name, double value) |
void | set (BLMPlacement *instance, const std::string &name, GMAD::Array *const &value) |
void | set (BLMPlacement *instance, const std::string &name, const T &value) |
blm for parser.
This has to be called something other than "BLM" because the parser can't distinguish between the class name and the token "BLM".
Definition at line 38 of file blmplacement.h.
BLMPlacement::BLMPlacement | ( | ) |
constructor
Definition at line 23 of file blmplacement.cc.
References clear(), and PublishMembers().
void BLMPlacement::clear | ( | ) |
reset
Definition at line 29 of file blmplacement.cc.
References angle, axisAngle, axisX, axisY, axisZ, name, phi, psi, referenceElement, referenceElementNumber, s, side, sideOffset, theta, x, y, and z.
Referenced by BLMPlacement().
void BLMPlacement::print | ( | ) | const |
print some properties
Definition at line 91 of file blmplacement.cc.
References angle, axisAngle, axisX, axisY, axisZ, name, phi, psi, referenceElement, referenceElementNumber, s, side, sideOffset, theta, x, y, and z.
|
private |
publish members
Definition at line 60 of file blmplacement.cc.
References angle, axisAngle, axisX, axisY, axisZ, name, phi, psi, GMAD::Published< BLMPlacement >::publish(), referenceElement, referenceElementNumber, s, side, sideOffset, theta, x, y, and z.
Referenced by BLMPlacement().
void GMAD::BLMPlacement::set_value | ( | std::string | property, |
T | value | ||
) |
set methods by property name and value
Definition at line 89 of file blmplacement.h.
References GMAD::Published< BLMPlacement >::set().
double GMAD::BLMPlacement::angle |
Axis angle rotation.
Definition at line 57 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
bool GMAD::BLMPlacement::axisAngle |
Flag to use the axis angle construction of rotation.
Definition at line 59 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::axisX |
Axis angle rotation.
Definition at line 54 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::axisY |
Axis angle rotation.
Definition at line 55 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::axisZ |
Axis angle rotation.
Definition at line 56 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
std::string GMAD::BLMPlacement::bias |
Definition at line 71 of file blmplacement.h.
double GMAD::BLMPlacement::blm1 |
Definition at line 66 of file blmplacement.h.
double GMAD::BLMPlacement::blm2 |
Definition at line 67 of file blmplacement.h.
double GMAD::BLMPlacement::blm3 |
Definition at line 68 of file blmplacement.h.
double GMAD::BLMPlacement::blm4 |
Definition at line 69 of file blmplacement.h.
std::string GMAD::BLMPlacement::blmMaterial |
Definition at line 65 of file blmplacement.h.
std::string GMAD::BLMPlacement::geometryFile |
Definition at line 63 of file blmplacement.h.
std::string GMAD::BLMPlacement::geometryType |
Definition at line 64 of file blmplacement.h.
std::string GMAD::BLMPlacement::name |
Name of this samplerplacement.
Definition at line 41 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::phi |
Euler angle for rotation.
Definition at line 49 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::psi |
Euler angle for rotation.
Definition at line 51 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
std::string GMAD::BLMPlacement::referenceElement |
Name of reference element w.r.t. to place to.
Definition at line 42 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
int GMAD::BLMPlacement::referenceElementNumber |
Index of repetition of element if there are multiple uses.
Definition at line 43 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::s |
Curvilinear s position to place w.r.t..
Definition at line 44 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
std::string GMAD::BLMPlacement::scoreQuantity |
Definition at line 70 of file blmplacement.h.
std::string GMAD::BLMPlacement::side |
which side to attach to: top, bottom, left, right.
Definition at line 60 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::sideOffset |
Offset between the geometry and the BLM.
Definition at line 61 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::theta |
Euler angle for rotation.
Definition at line 50 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::x |
Offset in x.
Definition at line 45 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::y |
Offset in y.
Definition at line 46 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::BLMPlacement::z |
Offset in z.
Definition at line 47 of file blmplacement.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().