allpix::CosmicsGeneratorActionG4

Generates the particles in every event.

#include <CosmicsGeneratorActionG4.hpp>

Inherits from G4VUserPrimaryGeneratorAction

Public Functions

Name
CosmicsGeneratorActionG4(const Configuration & config)
Constructs the generator action.
void GeneratePrimaries(G4Event * event) override
Generate the particle for every event.

Public Functions Documentation

function CosmicsGeneratorActionG4

explicit CosmicsGeneratorActionG4(
    const Configuration & config
)

Constructs the generator action.

Parameters:

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