Geant4  10.02.p02
PrimaryGeneratorGun2 Class Reference

#include <PrimaryGeneratorGun2.hh>

+ Inheritance diagram for PrimaryGeneratorGun2:
+ Collaboration diagram for PrimaryGeneratorGun2:

Public Member Functions

 PrimaryGeneratorGun2 ()
 
 ~PrimaryGeneratorGun2 ()
 
virtual void GeneratePrimaries (G4Event *)
 
G4double GetRadius ()
 
G4double GetCosAlphaMin ()
 
G4double GetCosAlphaMax ()
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4double fRadius
 
G4double fCosAlphaMin
 
G4double fCosAlphaMax
 
G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 46 of file PrimaryGeneratorGun2.hh.

Constructor & Destructor Documentation

PrimaryGeneratorGun2::PrimaryGeneratorGun2 ( )

Definition at line 47 of file PrimaryGeneratorGun2.cc.

References deg, eV, fCosAlphaMax, fCosAlphaMin, G4ParticleTable::FindParticle(), fParticleGun, fRadius, G4ParticleTable::GetParticleTable(), mm, G4ParticleGun::SetParticleDefinition(), and G4ParticleGun::SetParticleEnergy().

+ Here is the call graph for this function:

PrimaryGeneratorGun2::~PrimaryGeneratorGun2 ( )

Definition at line 74 of file PrimaryGeneratorGun2.cc.

References fParticleGun.

Member Function Documentation

void PrimaryGeneratorGun2::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 81 of file PrimaryGeneratorGun2.cc.

References fCosAlphaMax, fCosAlphaMin, fParticleGun, fRadius, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), and twopi.

+ Here is the call graph for this function:

G4double PrimaryGeneratorGun2::GetCosAlphaMax ( )
inline

Definition at line 57 of file PrimaryGeneratorGun2.hh.

References fCosAlphaMax.

G4double PrimaryGeneratorGun2::GetCosAlphaMin ( )
inline

Definition at line 56 of file PrimaryGeneratorGun2.hh.

References fCosAlphaMin.

G4double PrimaryGeneratorGun2::GetRadius ( )
inline

Definition at line 55 of file PrimaryGeneratorGun2.hh.

References fRadius.

Member Data Documentation

G4double PrimaryGeneratorGun2::fCosAlphaMax
private

Definition at line 62 of file PrimaryGeneratorGun2.hh.

Referenced by GeneratePrimaries(), GetCosAlphaMax(), and PrimaryGeneratorGun2().

G4double PrimaryGeneratorGun2::fCosAlphaMin
private

Definition at line 61 of file PrimaryGeneratorGun2.hh.

Referenced by GeneratePrimaries(), GetCosAlphaMin(), and PrimaryGeneratorGun2().

G4ParticleGun* PrimaryGeneratorGun2::fParticleGun
private
G4double PrimaryGeneratorGun2::fRadius
private

Definition at line 57 of file PrimaryGeneratorGun2.hh.

Referenced by GeneratePrimaries(), GetRadius(), and PrimaryGeneratorGun2().


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