Geant4  10.00.p03
G04PrimaryGeneratorAction Class Reference

Primary generator action for GDML sensitive detector example. More...

#include <G04PrimaryGeneratorAction.hh>

+ Inheritance diagram for G04PrimaryGeneratorAction:
+ Collaboration diagram for G04PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Primary generator action for GDML sensitive detector example.

Definition at line 46 of file G04PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

G04PrimaryGeneratorAction::G04PrimaryGeneratorAction ( )

Definition at line 43 of file G04PrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, m, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

G04PrimaryGeneratorAction::~G04PrimaryGeneratorAction ( )

Definition at line 60 of file G04PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void G04PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 67 of file G04PrimaryGeneratorAction.cc.

References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4Event::GetEventID(), and G4ParticleGun::SetParticleMomentumDirection().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* G04PrimaryGeneratorAction::fParticleGun
private

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