|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Physics biasing class for parser. More...
#include <physicsbiasing.h>


Public Member Functions | |
| PhysicsBiasing () | |
| constructor | |
| void | PublishMembers () |
| publish members | |
| void | clear () |
| reset | |
| void | print () const |
| print some properties | |
| void | set_value (const std::string &property, double value, bool bExit=true) |
| set methods by property name, numeric values | |
| void | set_value (const std::string &property, Array *value, bool bExit=true) |
| set methods by property name, list of numeric values | |
| void | set_value (const std::string &property, std::string value, bool bExit=true) |
| set methods by property name, string values | |
| std::list< std::variant< bool, int, double, std::string > > | get_value_array (const std::string &) |
| Get method for lists. | |
Public Member Functions inherited from GMAD::Published< PhysicsBiasing > | |
| bool | NameExists (const std::string &name) const |
| std::set< std::string > | AllNames () |
| T | get (const PhysicsBiasing *instance, const std::string &name) const |
| Get method for class C. | |
| Published< PhysicsBiasing >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
| std::string | name |
| std::string | particle |
| particle name | |
| std::string | process |
| geant4 process: single string, but can have multiple processes separated with a space | |
| std::vector< std::string > | processList |
| std::vector< double > | factor |
| factors corresponding to process | |
| std::vector< PhysicsBiasingType > | flag |
| flag which particles are biased | |
Additional Inherited Members | |
Protected Types inherited from GMAD::Published< PhysicsBiasing > | |
| using | AttributeMap = typename std::unordered_map< std::string, T C::* > |
| Define AttributeMap of string and class member pointer. | |
Protected Member Functions inherited from GMAD::Published< PhysicsBiasing > | |
| 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 (PhysicsBiasing *instance, const PhysicsBiasing *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. | |
| void | set (PhysicsBiasing *instance, const std::string &name, double value) |
| void | set (PhysicsBiasing *instance, const std::string &name, GMAD::Array *const &value) |
| void | set (PhysicsBiasing *instance, const std::string &name, const T &value) |
Physics biasing class for parser.
Definition at line 44 of file physicsbiasing.h.
| PhysicsBiasing::PhysicsBiasing | ( | ) |
constructor
Definition at line 28 of file physicsbiasing.cc.
References PublishMembers().

| void PhysicsBiasing::clear | ( | ) |
| std::list< std::variant< bool, int, double, std::string > > PhysicsBiasing::get_value_array | ( | const std::string & | property | ) |
Get method for lists.
Definition at line 139 of file physicsbiasing.cc.
| void PhysicsBiasing::print | ( | ) | const |
| void PhysicsBiasing::PublishMembers | ( | ) |
publish members
Definition at line 32 of file physicsbiasing.cc.
References factor, flag, name, particle, process, and GMAD::Published< PhysicsBiasing >::publish().
Referenced by PhysicsBiasing().


| void PhysicsBiasing::set_value | ( | const std::string & | property, |
| Array * | value, | ||
| bool | bExit = true |
||
| ) |
set methods by property name, list of numeric values
Definition at line 81 of file physicsbiasing.cc.
References factor, flag, and GMAD::Array::set_vector().

| void PhysicsBiasing::set_value | ( | const std::string & | property, |
| double | value, | ||
| bool | bExit = true |
||
| ) |
set methods by property name, numeric values
Definition at line 65 of file physicsbiasing.cc.
| void PhysicsBiasing::set_value | ( | const std::string & | property, |
| std::string | value, | ||
| bool | bExit = true |
||
| ) |
set methods by property name, string values
Definition at line 108 of file physicsbiasing.cc.
| std::vector<double> GMAD::PhysicsBiasing::factor |
factors corresponding to process
Definition at line 54 of file physicsbiasing.h.
Referenced by BDSDetectorConstruction::BuildCrossSectionBias(), clear(), get_value_array(), print(), PublishMembers(), set_value(), and set_value().
| std::vector<PhysicsBiasingType> GMAD::PhysicsBiasing::flag |
flag which particles are biased
Definition at line 56 of file physicsbiasing.h.
Referenced by BDSDetectorConstruction::BuildCrossSectionBias(), clear(), get_value_array(), print(), PublishMembers(), set_value(), and set_value().
| std::string GMAD::PhysicsBiasing::name |
name
Definition at line 47 of file physicsbiasing.h.
Referenced by BDSDetectorConstruction::BuildCrossSectionBias(), clear(), print(), PublishMembers(), and set_value().
| std::string GMAD::PhysicsBiasing::particle |
particle name
Definition at line 49 of file physicsbiasing.h.
Referenced by BDSDetectorConstruction::BuildCrossSectionBias(), clear(), print(), PublishMembers(), and set_value().
| std::string GMAD::PhysicsBiasing::process |
geant4 process: single string, but can have multiple processes separated with a space
Definition at line 51 of file physicsbiasing.h.
Referenced by BDSDetectorConstruction::BuildCrossSectionBias(), clear(), print(), PublishMembers(), and set_value().
| std::vector<std::string> GMAD::PhysicsBiasing::processList |
Definition at line 52 of file physicsbiasing.h.