Geant4  10.02.p02
PrimaryGeneratorGun1 Class Reference

#include <PrimaryGeneratorGun1.hh>

+ Inheritance diagram for PrimaryGeneratorGun1:
+ Collaboration diagram for PrimaryGeneratorGun1:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 46 of file PrimaryGeneratorGun1.hh.

Constructor & Destructor Documentation

PrimaryGeneratorGun1::PrimaryGeneratorGun1 ( )

Definition at line 47 of file PrimaryGeneratorGun1.cc.

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

+ Here is the call graph for this function:

PrimaryGeneratorGun1::~PrimaryGeneratorGun1 ( )

Definition at line 64 of file PrimaryGeneratorGun1.cc.

References fParticleGun.

Member Function Documentation

void PrimaryGeneratorGun1::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 71 of file PrimaryGeneratorGun1.cc.

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

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* PrimaryGeneratorGun1::fParticleGun
private

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