|
G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
|
Generates primary gamma rays for the B1 example. More...
#include <PrimaryGeneratorAction.hh>
Public Member Functions | |
| PrimaryGeneratorAction () | |
| ~PrimaryGeneratorAction () override=default | |
| void | GeneratePrimaries (G4Event *event) override |
| const G4ParticleGun * | GetParticleGun () const |
| Read access to the underlying particle gun. | |
Generates primary gamma rays for the B1 example.
Fires a 6 MeV gamma along the +z axis from a random (x, y) position within the envelope footprint at z = -envSizeZ/2 — identical to the standard Geant4 basic/B1 setup.
Definition at line 44 of file PrimaryGeneratorAction.hh.
| PrimaryGeneratorAction::PrimaryGeneratorAction | ( | ) |
Definition at line 37 of file PrimaryGeneratorAction.cc.
|
overridedefault |
|
override |
Definition at line 48 of file PrimaryGeneratorAction.cc.
|
inline |
Read access to the underlying particle gun.
Definition at line 52 of file PrimaryGeneratorAction.hh.