Geant4  10.01.p03
ExP02PrimaryGeneratorAction Class Reference

Primary generator action. More...

#include <ExP02PrimaryGeneratorAction.hh>

+ Inheritance diagram for ExP02PrimaryGeneratorAction:
+ Collaboration diagram for ExP02PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Primary generator action.

Definition at line 47 of file ExP02PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ExP02PrimaryGeneratorAction::ExP02PrimaryGeneratorAction ( )

Definition at line 42 of file ExP02PrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

ExP02PrimaryGeneratorAction::~ExP02PrimaryGeneratorAction ( )

Definition at line 60 of file ExP02PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void ExP02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 67 of file ExP02PrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* ExP02PrimaryGeneratorAction::fParticleGun
private

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