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


Public Member Functions | |
| Scorer () | |
| Constructor. | |
| void | clear () |
| Reset. | |
| void | print () const |
| Print some properties. | |
| template<typename T > | |
| void | set_value (std::string property, T value, bool bExit=true) |
| Set methods by property name and value. | |
Public Member Functions inherited from GMAD::Published< Scorer > | |
| bool | NameExists (const std::string &name) const |
| Published< Scorer >::template AttributeMap< T > & | attribute_map () const |
Data Fields | |
| std::string | name |
| Name. | |
| std::string | type |
| Type of the scorer, ie forumula. | |
| std::string | particleName |
| Particle name as a string. | |
| int | particlePDGID |
| PDG ID code for particle. | |
| double | minimumKineticEnergy |
| double | maximumKineticEnergy |
| double | minimumTime |
| double | maximumTime |
| std::string | conversionFactorFile |
| std::string | conversionFactorPath |
| std::string | materialToInclude |
| std::string | materialToExclude |
| bool | scoreWorldVolumeOnly |
| bool | scorePrimariesOnly |
Private Member Functions | |
| void | PublishMembers () |
| publish members | |
Additional Inherited Members | |
Protected Types inherited from GMAD::Published< Scorer > | |
| 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< Scorer > | |
| 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 (Scorer *instance, const Scorer *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 Scorer *instance, const std::string &name) const |
| Get method for class C. | |
| void | set (Scorer *instance, const std::string &name, double value) |
| void | set (Scorer *instance, const std::string &name, GMAD::Array *const &value) |
| void | set (Scorer *instance, const std::string &name, const T &value) |
| Scorer::Scorer | ( | ) |
Constructor.
Definition at line 23 of file scorer.cc.
References clear(), and PublishMembers().

| void Scorer::clear | ( | ) |
Reset.
Definition at line 29 of file scorer.cc.
References name, particleName, particlePDGID, and type.
Referenced by Scorer().

| void Scorer::print | ( | ) | const |
Print some properties.
Definition at line 64 of file scorer.cc.
References name, particleName, particlePDGID, and type.
|
private |
publish members
Definition at line 46 of file scorer.cc.
References name, particleName, particlePDGID, GMAD::Published< Scorer >::publish(), and type.
Referenced by Scorer().


| void GMAD::Scorer::set_value | ( | std::string | property, |
| T | value, | ||
| bool | bExit = true |
||
| ) |
Set methods by property name and value.
Definition at line 70 of file scorer.h.
References GMAD::Published< Scorer >::set().

| std::string GMAD::Scorer::name |
Name.
Definition at line 39 of file scorer.h.
Referenced by BDSScorerInfo::BDSScorerInfo(), clear(), print(), and PublishMembers().
| std::string GMAD::Scorer::particleName |
Particle name as a string.
Definition at line 41 of file scorer.h.
Referenced by BDSScorerInfo::BDSScorerInfo(), clear(), print(), and PublishMembers().
| int GMAD::Scorer::particlePDGID |
PDG ID code for particle.
Definition at line 42 of file scorer.h.
Referenced by BDSScorerInfo::BDSScorerInfo(), clear(), print(), and PublishMembers().
| std::string GMAD::Scorer::type |
Type of the scorer, ie forumula.
Definition at line 40 of file scorer.h.
Referenced by BDSScorerInfo::BDSScorerInfo(), clear(), print(), and PublishMembers().