allpix::GeneratorActionG4
Generates the particles in every event.
#include <GeneratorActionG4.hpp>
Inherits from G4VUserPrimaryGeneratorAction
Public Types
| Name | |
|---|---|
| enum class | SourceType { MACRO, BEAM, SPHERE, SQUARE, POINT} Different types of particle sources. |
| enum class | BeamShape { CIRCLE, ELLIPSE, RECTANGLE} Different shapes of particle beams. |
Public Functions
| Name | |
|---|---|
| GeneratorActionG4(const Configuration & config) Constructs the generator action. |
|
| void | GeneratePrimaries(G4Event * event) override Generate the particle for every event. |
Public Types Documentation
enum SourceType
| Enumerator | Value | Description |
|---|---|---|
| MACRO | Source defined by a macro file. | |
| BEAM | Beam particle source. | |
| SPHERE | Spherical particle source. | |
| SQUARE | Square particle source. | |
| POINT | Point source. |
Different types of particle sources.
enum BeamShape
| Enumerator | Value | Description |
|---|---|---|
| CIRCLE | Circular beam. | |
| ELLIPSE | Elliptical beam. | |
| RECTANGLE | Rectangular beam. |
Different shapes of particle beams.
Public Functions Documentation
function GeneratorActionG4
explicit GeneratorActionG4(
const Configuration & config
)
Constructs the generator action.
Parameters:
- config Configuration of the DepositionGeant4Module module
function GeneratePrimaries
void GeneratePrimaries(
G4Event * event
) override
Generate the particle for every event.
Called automatically for every event
Updated on 2025-05-10 at 19:40:38 +0000