GEARS
Geant4 Example Application with Rich features and Small footprints
Public Member Functions | List of all members
Generator Class Reference

Call Geant4 General Particle Source to generate particles. More...

Inheritance diagram for Generator:
Inheritance graph
[legend]
Collaboration diagram for Generator:
Collaboration graph
[legend]

Public Member Functions

 Generator ()
 
virtual ~Generator ()
 
virtual void GeneratePrimaries (G4Event *evt)
 add sources to an event More...
 

Detailed Description

Call Geant4 General Particle Source to generate particles.

Definition at line 529 of file gears.cc.

Constructor & Destructor Documentation

◆ Generator()

Generator::Generator ( )
inline

Definition at line 534 of file gears.cc.

535  : G4VUserPrimaryGeneratorAction(), fSource(0)
536  { fSource = new G4GeneralParticleSource; }

◆ ~Generator()

virtual Generator::~Generator ( )
inlinevirtual

Definition at line 537 of file gears.cc.

537 { delete fSource; }

Member Function Documentation

◆ GeneratePrimaries()

virtual void Generator::GeneratePrimaries ( G4Event *  evt)
inlinevirtual

add sources to an event

Definition at line 538 of file gears.cc.


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