BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
ScorerMesh class for parser. More...
#include <scorermesh.h>
Public Member Functions | |
ScorerMesh () | |
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< ScorerMesh >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
Name of this placement. | |
std::string | scoreQuantity |
Name of scorer object to use. | |
std::string | geometryType |
Name of scorermesh geometry to use. | |
int | nx |
Number of bins in x. | |
int | ny |
Number of bins in y. | |
int | nz |
Number of bins in z. | |
int | nr |
Number of bins in R. | |
int | nphi |
Number of bins in Phi. | |
int | ne |
Number of bins in E. | |
double | xsize |
X total width. | |
double | ysize |
Y total width. | |
double | zsize |
Z total width. | |
double | rsize |
R total length. | |
double | eLow |
E Low limit. | |
double | eHigh |
E High limit. | |
std::string | eScale |
E scaling type. | |
std::string | eBinsEdgesFilenamePath |
E bins edges filename path. | |
std::string | sequence |
Name of sequence to place. | |
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. | |
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 (ScorerMesh *instance, const ScorerMesh *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 ScorerMesh *instance, const std::string &name) const |
Get method for class C. | |
void | set (ScorerMesh *instance, const std::string &name, double value) |
void | set (ScorerMesh *instance, const std::string &name, GMAD::Array *const &value) |
void | set (ScorerMesh *instance, const std::string &name, const T &value) |
ScorerMesh class for parser.
Definition at line 37 of file scorermesh.h.
ScorerMesh::ScorerMesh | ( | ) |
constructor
Definition at line 23 of file scorermesh.cc.
References clear(), and PublishMembers().
void ScorerMesh::clear | ( | ) |
reset
Definition at line 29 of file scorermesh.cc.
References angle, axisAngle, axisX, axisY, axisZ, eBinsEdgesFilenamePath, eHigh, eLow, eScale, geometryType, name, ne, nphi, nr, nx, ny, nz, phi, psi, referenceElement, referenceElementNumber, rsize, s, scoreQuantity, sequence, theta, x, xsize, y, ysize, z, and zsize.
Referenced by ScorerMesh().
void ScorerMesh::print | ( | ) | const |
|
private |
publish members
Definition at line 66 of file scorermesh.cc.
References angle, axisAngle, axisX, axisY, axisZ, eBinsEdgesFilenamePath, eHigh, eLow, eScale, geometryType, name, ne, nphi, nr, nx, ny, nz, phi, psi, GMAD::Published< ScorerMesh >::publish(), referenceElement, referenceElementNumber, rsize, s, scoreQuantity, sequence, theta, x, xsize, y, ysize, z, and zsize.
Referenced by ScorerMesh().
void GMAD::ScorerMesh::set_value | ( | std::string | property, |
T | value | ||
) |
set methods by property name and value
Definition at line 96 of file scorermesh.h.
References name, and GMAD::Published< ScorerMesh >::set().
double GMAD::ScorerMesh::angle |
Axis angle rotation.
Definition at line 76 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
bool GMAD::ScorerMesh::axisAngle |
Flag to use the axis angle construction of rotation.
Definition at line 78 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::axisX |
Axis angle rotation.
Definition at line 73 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::axisY |
Axis angle rotation.
Definition at line 74 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::axisZ |
Axis angle rotation.
Definition at line 75 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
std::string GMAD::ScorerMesh::eBinsEdgesFilenamePath |
E bins edges filename path.
Definition at line 57 of file scorermesh.h.
Referenced by clear(), and PublishMembers().
double GMAD::ScorerMesh::eHigh |
E High limit.
Definition at line 55 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::ScorerMesh::eLow |
E Low limit.
Definition at line 54 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::ScorerMesh::eScale |
E scaling type.
Definition at line 56 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::ScorerMesh::geometryType |
Name of scorermesh geometry to use.
Definition at line 42 of file scorermesh.h.
Referenced by clear(), and PublishMembers().
std::string GMAD::ScorerMesh::name |
Name of this placement.
Definition at line 40 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), PublishMembers(), and set_value().
int GMAD::ScorerMesh::ne |
Number of bins in E.
Definition at line 49 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
int GMAD::ScorerMesh::nphi |
Number of bins in Phi.
Definition at line 48 of file scorermesh.h.
Referenced by clear(), and PublishMembers().
int GMAD::ScorerMesh::nr |
Number of bins in R.
Definition at line 47 of file scorermesh.h.
Referenced by clear(), and PublishMembers().
int GMAD::ScorerMesh::nx |
Number of bins in x.
Definition at line 44 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
int GMAD::ScorerMesh::ny |
Number of bins in y.
Definition at line 45 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
int GMAD::ScorerMesh::nz |
Number of bins in z.
Definition at line 46 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::ScorerMesh::phi |
Euler angle for rotation.
Definition at line 68 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::psi |
Euler angle for rotation.
Definition at line 70 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
std::string GMAD::ScorerMesh::referenceElement |
Name of reference element w.r.t. to place to.
Definition at line 61 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
int GMAD::ScorerMesh::referenceElementNumber |
Index of repetition of element if there are multiple uses.
Definition at line 62 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::rsize |
R total length.
Definition at line 53 of file scorermesh.h.
Referenced by clear(), and PublishMembers().
double GMAD::ScorerMesh::s |
Curvilinear s position to place w.r.t..
Definition at line 63 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
std::string GMAD::ScorerMesh::scoreQuantity |
Name of scorer object to use.
Definition at line 41 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
std::string GMAD::ScorerMesh::sequence |
Name of sequence to place.
Definition at line 60 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::theta |
Euler angle for rotation.
Definition at line 69 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::x |
Offset in x.
Definition at line 64 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::xsize |
X total width.
Definition at line 50 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::ScorerMesh::y |
Offset in y.
Definition at line 65 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::ysize |
Y total width.
Definition at line 51 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().
double GMAD::ScorerMesh::z |
Offset in z.
Definition at line 66 of file scorermesh.h.
Referenced by clear(), GMAD::Placement::Placement(), print(), and PublishMembers().
double GMAD::ScorerMesh::zsize |
Z total width.
Definition at line 52 of file scorermesh.h.
Referenced by clear(), print(), and PublishMembers().