G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
B4::PrimaryGeneratorAction Class Reference

#include <PrimaryGeneratorAction.hh>

Inheritance diagram for B4::PrimaryGeneratorAction:

Public Member Functions

 PrimaryGeneratorAction ()
 
 ~PrimaryGeneratorAction () override
 
void GeneratePrimaries (G4Event *event) override
 

Detailed Description

The primary generator action class with particle gum.

It defines a single particle which hits the calorimeter perpendicular to the input face. The type of the particle can be changed via the G4 built-in commands of G4ParticleGun class (see the macros provided with this example).

Definition at line 45 of file PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

◆ PrimaryGeneratorAction()

PrimaryGeneratorAction::PrimaryGeneratorAction ( )

Definition at line 42 of file PrimaryGeneratorAction.cc.

◆ ~PrimaryGeneratorAction()

PrimaryGeneratorAction::~PrimaryGeneratorAction ( )
override

Definition at line 56 of file PrimaryGeneratorAction.cc.

Member Function Documentation

◆ GeneratePrimaries()

void PrimaryGeneratorAction::GeneratePrimaries ( G4Event *  event)
override

Definition at line 60 of file PrimaryGeneratorAction.cc.


The documentation for this class was generated from the following files: