Geant4  10.01.p02
PrimaryGeneratorAction1 Class Reference

#include <PrimaryGeneratorAction1.hh>

+ Collaboration diagram for PrimaryGeneratorAction1:

Public Member Functions

 PrimaryGeneratorAction1 (G4ParticleGun *)
 
 ~PrimaryGeneratorAction1 ()
 
void GeneratePrimaries (G4Event *)
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 46 of file PrimaryGeneratorAction1.hh.

Constructor & Destructor Documentation

PrimaryGeneratorAction1::PrimaryGeneratorAction1 ( G4ParticleGun gun)

Definition at line 48 of file PrimaryGeneratorAction1.cc.

PrimaryGeneratorAction1::~PrimaryGeneratorAction1 ( )

Definition at line 54 of file PrimaryGeneratorAction1.cc.

Member Function Documentation

void PrimaryGeneratorAction1::GeneratePrimaries ( G4Event anEvent)

Definition at line 59 of file PrimaryGeneratorAction1.cc.

References alpha, deg, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), GeV, keV, MeV, mm, G4INCL::Math::pi, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), and z.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* PrimaryGeneratorAction1::fParticleGun
private

Definition at line 56 of file PrimaryGeneratorAction1.hh.

Referenced by GeneratePrimaries().


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