Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParticleGunAction Class Reference

#include <ParticleGunAction.hh>

Inheritance diagram for ParticleGunAction:
Collaboration diagram for ParticleGunAction:

Public Member Functions

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

Detailed Description

Definition at line 44 of file ParticleGunAction.hh.

Constructor & Destructor Documentation

ParticleGunAction::ParticleGunAction ( )

Definition at line 42 of file ParticleGunAction.cc.

44 {
45  particleGun= new G4ParticleGun;
46 }
ParticleGunAction::~ParticleGunAction ( )

Definition at line 49 of file ParticleGunAction.cc.

51 {
52  delete particleGun;
53 }

Member Function Documentation

void ParticleGunAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 56 of file ParticleGunAction.cc.

58 {
59  particleGun-> GeneratePrimaryVertex(anEvent);
60 }
G4ParticleGun * ParticleGunAction::GetParticleGun ( ) const
inline

Definition at line 61 of file ParticleGunAction.hh.

62 { return particleGun; }

Here is the caller graph for this function:


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