User initialization class. More...
#include <RMGUserInit.hh>
Public Member Functions | |
| RMGUserInit ()=default | |
| Default constructor. | |
| ~RMGUserInit ()=default | |
| Default destructor. | |
| RMGUserInit (RMGUserInit const &)=delete | |
| RMGUserInit & | operator= (RMGUserInit const &)=delete |
| RMGUserInit (RMGUserInit &&)=delete | |
| RMGUserInit & | operator= (RMGUserInit &&)=delete |
| auto | GetSteppingActions () const |
| Retrieves the collection of stepping actions. | |
| auto | GetTrackingActions () const |
| Retrieves the collection of tracking actions. | |
| auto | GetOutputSchemes () const |
| Retrieves the registered output schemes. | |
| auto | GetOptionalOutputSchemes () const |
| Retrieves the optional output schemes. | |
| auto | GetUserGenerator () const |
| Retrieves the user generator. | |
| template<typename T, typename... Args> | |
| void | AddSteppingAction (Args &&... args) |
| Adds a stepping action of type T. | |
| template<typename T, typename... Args> | |
| void | AddTrackingAction (Args &&... args) |
| Adds a tracking action of type T. | |
| template<typename T, typename... Args> | |
| void | AddOutputScheme (Args &&... args) |
| Adds an output scheme of type T. | |
| template<typename T, typename... Args> | |
| void | AddOptionalOutputScheme (std::string name, Args &&... args) |
| Adds an optional output scheme of type T with a given name. | |
| template<typename T, typename... Args> | |
| void | SetUserGenerator (Args &&... args) |
| Sets the user generator to an instance of type T. | |
| void | RegisterDefaultOptionalOutputSchemes () |
| Registers the default optional output schemes. | |
| void | ActivateOptionalOutputScheme (std::string name) |
| Activates an optional output scheme by its name. | |
| bool | IsOptionalOutputSchemeActivated (std::string name) |
| Check whether the optional output scheme is activated. | |
User initialization class.
This class manages user-defined actions, output schemes, and generator configuration for the remage simulation. It provides methods to add stepping actions, tracking actions, output schemes, and to configure the user generator.
This class does not manage instances, but stores arguments that will be forwarded several times to initialize the user-defined actions on all worker threads.
| void RMGUserInit::ActivateOptionalOutputScheme | ( | std::string | name | ) |
Activates an optional output scheme by its name.
If the scheme is not found, a fatal error is logged.
| name | The name of the optional output scheme to activate. |
|
inline |
Adds an optional output scheme of type T with a given name.
These additional output schemes can be activated with RMGManager::ActivateOptionalOutputScheme.
| T | Derived type of RMGVOutputScheme. |
| name | The key under which the scheme will be stored. |
| args | Arguments to forward to T's constructor. |
|
inline |
Adds an output scheme of type T.
| T | Derived type of RMGVOutputScheme. |
| args | Arguments to forward to T's constructor. |
|
inline |
Adds a stepping action of type T.
| T | Derived type of G4UserSteppingAction. |
| args | Arguments to forward to T's constructor. |
|
inline |
Adds a tracking action of type T.
| T | Derived type of G4UserTrackingAction. |
| args | Arguments to forward to T's constructor. |
|
inlinenodiscard |
Retrieves the optional output schemes.
|
inlinenodiscard |
Retrieves the registered output schemes.
|
inlinenodiscard |
Retrieves the collection of stepping actions.
|
inlinenodiscard |
Retrieves the collection of tracking actions.
|
inlinenodiscard |
Retrieves the user generator.
| bool RMGUserInit::IsOptionalOutputSchemeActivated | ( | std::string | name | ) |
Check whether the optional output scheme is activated.
| name | The name of the optional output scheme to check for. |
| void RMGUserInit::RegisterDefaultOptionalOutputSchemes | ( | ) |
Registers the default optional output schemes.
This includes schemes for isotope filtering, particle filtering, and track output.
|
inline |
Sets the user generator to an instance of type T.
| T | Derived type of RMGVGenerator. |
| args | Arguments to forward to T's constructor. |