Geant4  10.02.p01
PrimaryGeneratorAction0 Class Reference

#include <PrimaryGeneratorAction0.hh>

+ Collaboration diagram for PrimaryGeneratorAction0:

Public Member Functions

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

Private Attributes

G4double fCosAlphaMin
 
G4double fCosAlphaMax
 
G4double fPsiMin
 
G4double fPsiMax
 
G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 46 of file PrimaryGeneratorAction0.hh.

Constructor & Destructor Documentation

PrimaryGeneratorAction0::PrimaryGeneratorAction0 ( G4ParticleGun gun)

Definition at line 45 of file PrimaryGeneratorAction0.cc.

References deg, fCosAlphaMax, fCosAlphaMin, fPsiMax, and fPsiMin.

PrimaryGeneratorAction0::~PrimaryGeneratorAction0 ( )

Definition at line 61 of file PrimaryGeneratorAction0.cc.

Member Function Documentation

void PrimaryGeneratorAction0::GeneratePrimaries ( G4Event anEvent)

Definition at line 66 of file PrimaryGeneratorAction0.cc.

References fCosAlphaMax, fCosAlphaMin, fParticleGun, fPsiMax, fPsiMin, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), mm, G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.

+ Here is the call graph for this function:

Member Data Documentation

G4double PrimaryGeneratorAction0::fCosAlphaMax
private

Definition at line 56 of file PrimaryGeneratorAction0.hh.

Referenced by GeneratePrimaries(), and PrimaryGeneratorAction0().

G4double PrimaryGeneratorAction0::fCosAlphaMin
private

Definition at line 56 of file PrimaryGeneratorAction0.hh.

Referenced by GeneratePrimaries(), and PrimaryGeneratorAction0().

G4ParticleGun* PrimaryGeneratorAction0::fParticleGun
private

Definition at line 60 of file PrimaryGeneratorAction0.hh.

Referenced by GeneratePrimaries().

G4double PrimaryGeneratorAction0::fPsiMax
private

Definition at line 57 of file PrimaryGeneratorAction0.hh.

Referenced by GeneratePrimaries(), and PrimaryGeneratorAction0().

G4double PrimaryGeneratorAction0::fPsiMin
private

Definition at line 57 of file PrimaryGeneratorAction0.hh.

Referenced by GeneratePrimaries(), and PrimaryGeneratorAction0().


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