Geant4  10.02.p01
PrimaryGenerator Class Reference

#include <PrimaryGenerator.hh>

+ Inheritance diagram for PrimaryGenerator:
+ Collaboration diagram for PrimaryGenerator:

Public Member Functions

 PrimaryGenerator ()
 
 ~PrimaryGenerator ()
 
virtual void GeneratePrimaryVertex (G4Event *)
 
- Public Member Functions inherited from G4VPrimaryGenerator
 G4VPrimaryGenerator ()
 
virtual ~G4VPrimaryGenerator ()
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 
void SetParticleTime (G4double aTime)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPrimaryGenerator
static G4bool CheckVertexInsideWorld (const G4ThreeVector &pos)
 
- Protected Attributes inherited from G4VPrimaryGenerator
G4ThreeVector particle_position
 
G4double particle_time
 

Detailed Description

Definition at line 44 of file PrimaryGenerator.hh.

Constructor & Destructor Documentation

PrimaryGenerator::PrimaryGenerator ( )

Definition at line 48 of file PrimaryGenerator.cc.

PrimaryGenerator::~PrimaryGenerator ( )

Definition at line 54 of file PrimaryGenerator.cc.

Member Function Documentation

void PrimaryGenerator::GeneratePrimaryVertex ( G4Event event)
virtual

Implements G4VPrimaryGenerator.

Definition at line 59 of file PrimaryGenerator.cc.

References alpha, deg, G4ParticleTable::FindParticle(), G4UniformRand, G4ParticleTable::GetParticleTable(), GeV, keV, MeV, mm, pi, s, G4PrimaryParticle::SetKineticEnergy(), G4PrimaryParticle::SetMomentumDirection(), G4PrimaryVertex::SetPrimary(), twopi, and z.

+ Here is the call graph for this function:


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