allpix::ActionInitializationPrimaries
Initializer for the generator actions, required for RunManager. More…
#include <ActionInitializationPrimaries.hpp>
Inherits from G4VUserActionInitialization
Public Functions
Name | |
---|---|
ActionInitializationPrimaries(const Configuration & config, std::shared_ptr< PrimariesReader > & reader) | |
void | Build() const override Build the user action to be executed by the worker. |
Detailed Description
template <class GEN >
class allpix::ActionInitializationPrimaries;
Initializer for the generator actions, required for RunManager.
We directly inherit from Geant4’s action initialization class instead of the DepositionGeant4 class since the latter provides functionality specific to that module which we do not need - while we need to be able to pass an additional parameter, the PrimariesReader, to the action constructor.
Public Functions Documentation
function ActionInitializationPrimaries
inline explicit ActionInitializationPrimaries(
const Configuration & config,
std::shared_ptr< PrimariesReader > & reader
)
function Build
inline void Build() const override
Build the user action to be executed by the worker.
Note: All SetUserAction must be called from here
Updated on 2025-02-27 at 14:14:46 +0000