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 628 of file gears.cc.

Constructor & Destructor Documentation

◆ Generator()

Generator::Generator ( )
inline

Definition at line 633 of file gears.cc.

633  : G4VUserPrimaryGeneratorAction(), fSource(0) {
634  fSource = new G4GeneralParticleSource;
635  }

◆ ~Generator()

virtual Generator::~Generator ( )
inlinevirtual

Definition at line 636 of file gears.cc.

636 { delete fSource; }

Member Function Documentation

◆ GeneratePrimaries()

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

add sources to an event

Definition at line 637 of file gears.cc.


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