allpix::PrimariesGeneratorAction
Generates the particles in every event.
#include <PrimariesGeneratorAction.hpp>
Inherits from G4VUserPrimaryGeneratorAction
Public Functions
Name | |
---|---|
PrimariesGeneratorAction(const Configuration & config, std::shared_ptr< PrimariesReader > reader) Constructs the generator action. |
|
void | GeneratePrimaries(G4Event * event) override Generate the particle for every event. |
Public Functions Documentation
function PrimariesGeneratorAction
explicit PrimariesGeneratorAction(
const Configuration & config,
std::shared_ptr< PrimariesReader > reader
)
Constructs the generator action.
Parameters:
- config Configuration of the DepositionCosmicsModule module
- reader PrimariesReader instance to fetch particle lists from
function GeneratePrimaries
void GeneratePrimaries(
G4Event * event
) override
Generate the particle for every event.
Called automatically for every event
Updated on 2024-12-13 at 08:31:36 +0000