BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Region class for parser. More...
#include <region.h>
Public Member Functions | |
Region () | |
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< Region >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
std::string | name |
name | |
double | defaultRangeCut |
double | prodCutPhotons |
double | prodCutElectrons |
double | prodCutPositrons |
double | prodCutProtons |
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 (Region *instance, const Region *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 Region *instance, const std::string &name) const |
Get method for class C. | |
void | set (Region *instance, const std::string &name, double value) |
void | set (Region *instance, const std::string &name, GMAD::Array *const &value) |
void | set (Region *instance, const std::string &name, const T &value) |
Region::Region | ( | ) |
constructor
Definition at line 23 of file region.cc.
References clear(), and PublishMembers().
void Region::clear | ( | ) |
void Region::print | ( | ) | const |
|
private |
publish members
Definition at line 41 of file region.cc.
References name, and GMAD::Published< Region >::publish().
Referenced by Region().
void GMAD::Region::set_value | ( | std::string | property, |
T | value | ||
) |
set methods by property name and value
Definition at line 62 of file region.h.
References GMAD::Published< Region >::set().
std::string GMAD::Region::name |