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:

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

Constructor & Destructor Documentation

§ Generator()

Generator::Generator ( )
inline

Definition at line 505 of file gears.cc.

506  : G4VUserPrimaryGeneratorAction(), fSource(0)
507  { fSource = new G4GeneralParticleSource; }

§ ~Generator()

virtual Generator::~Generator ( )
inlinevirtual

Definition at line 508 of file gears.cc.

508 { delete fSource; }

Member Function Documentation

§ GeneratePrimaries()

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

add sources to an event

Definition at line 509 of file gears.cc.


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