Geant4  10.02
ExTGPrimaryGeneratorAction Class Reference

Example of primary generator action. More...

#include <ExTGPrimaryGeneratorAction.hh>

+ Inheritance diagram for ExTGPrimaryGeneratorAction:
+ Collaboration diagram for ExTGPrimaryGeneratorAction:

Public Member Functions

 ExTGPrimaryGeneratorAction ()
 
 ~ExTGPrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Example of primary generator action.

Definition at line 41 of file ExTGPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ExTGPrimaryGeneratorAction::ExTGPrimaryGeneratorAction ( )

Definition at line 40 of file ExTGPrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), MeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().

+ Here is the call graph for this function:

ExTGPrimaryGeneratorAction::~ExTGPrimaryGeneratorAction ( )

Definition at line 56 of file ExTGPrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void ExTGPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 62 of file ExTGPrimaryGeneratorAction.cc.

References cm, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* ExTGPrimaryGeneratorAction::fParticleGun
private

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