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

Generates primary gamma rays for the B1 example. More...

#include <PrimaryGeneratorAction.hh>

Inheritance diagram for PrimaryGeneratorAction:

Public Member Functions

 PrimaryGeneratorAction ()
 
 ~PrimaryGeneratorAction () override=default
 
void GeneratePrimaries (G4Event *event) override
 
const G4ParticleGun * GetParticleGun () const
 Read access to the underlying particle gun.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PrimaryGeneratorAction()

PrimaryGeneratorAction::PrimaryGeneratorAction ( )

Definition at line 37 of file PrimaryGeneratorAction.cc.

◆ ~PrimaryGeneratorAction()

PrimaryGeneratorAction::~PrimaryGeneratorAction ( )
overridedefault

Member Function Documentation

◆ GeneratePrimaries()

void PrimaryGeneratorAction::GeneratePrimaries ( G4Event *  event)
override

Definition at line 48 of file PrimaryGeneratorAction.cc.

◆ GetParticleGun()

const G4ParticleGun * PrimaryGeneratorAction::GetParticleGun ( ) const
inline

Read access to the underlying particle gun.

Definition at line 52 of file PrimaryGeneratorAction.hh.


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