Geant4_10
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
G4ParticleGun Class Reference

#include <G4ParticleGun.hh>

Inheritance diagram for G4ParticleGun:
Inheritance graph
[legend]
Collaboration diagram for G4ParticleGun:
Collaboration graph
[legend]

Public Member Functions

 G4ParticleGun ()
 
 G4ParticleGun (G4int numberofparticles)
 
 G4ParticleGun (G4ParticleDefinition *particleDef, G4int numberofparticles=1)
 
virtual ~G4ParticleGun ()
 
virtual void GeneratePrimaryVertex (G4Event *evt)
 
void SetParticleDefinition (G4ParticleDefinition *aParticleDefinition)
 
void SetParticleEnergy (G4double aKineticEnergy)
 
void SetParticleMomentum (G4double aMomentum)
 
void SetParticleMomentum (G4ParticleMomentum aMomentum)
 
void SetParticleMomentumDirection (G4ParticleMomentum aMomentumDirection)
 
void SetParticleCharge (G4double aCharge)
 
void SetParticlePolarization (G4ThreeVector aVal)
 
void SetNumberOfParticles (G4int i)
 
G4ParticleDefinitionGetParticleDefinition () const
 
G4ParticleMomentum GetParticleMomentumDirection () const
 
G4double GetParticleEnergy () const
 
G4double GetParticleMomentum () const
 
G4double GetParticleCharge () const
 
G4ThreeVector GetParticlePolarization () const
 
G4int GetNumberOfParticles () const
 
- Public Member Functions inherited from G4VPrimaryGenerator
 G4VPrimaryGenerator ()
 
virtual ~G4VPrimaryGenerator ()
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 
void SetParticleTime (G4double aTime)
 

Protected Member Functions

virtual void SetInitialValues ()
 

Protected Attributes

G4int NumberOfParticlesToBeGenerated
 
G4ParticleDefinitionparticle_definition
 
G4ParticleMomentum particle_momentum_direction
 
G4double particle_energy
 
G4double particle_momentum
 
G4double particle_charge
 
G4ThreeVector particle_polarization
 
- Protected Attributes inherited from G4VPrimaryGenerator
G4ThreeVector particle_position
 
G4double particle_time
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPrimaryGenerator
static G4bool CheckVertexInsideWorld (const G4ThreeVector &pos)
 

Detailed Description

Definition at line 62 of file G4ParticleGun.hh.

Constructor & Destructor Documentation

G4ParticleGun::G4ParticleGun ( )

Definition at line 38 of file G4ParticleGun.cc.

Here is the call graph for this function:

G4ParticleGun::G4ParticleGun ( G4int  numberofparticles)

Definition at line 43 of file G4ParticleGun.cc.

Here is the call graph for this function:

G4ParticleGun::G4ParticleGun ( G4ParticleDefinition particleDef,
G4int  numberofparticles = 1 
)

Definition at line 50 of file G4ParticleGun.cc.

G4ParticleGun::~G4ParticleGun ( )
virtual

Definition at line 72 of file G4ParticleGun.cc.

Member Function Documentation

void G4ParticleGun::GeneratePrimaryVertex ( G4Event evt)
virtual

Implements G4VPrimaryGenerator.

Definition at line 212 of file G4ParticleGun.cc.

Here is the call graph for this function:

G4int G4ParticleGun::GetNumberOfParticles ( ) const
inline

Definition at line 118 of file G4ParticleGun.hh.

Here is the caller graph for this function:

G4double G4ParticleGun::GetParticleCharge ( ) const
inline

Definition at line 114 of file G4ParticleGun.hh.

Here is the caller graph for this function:

G4ParticleDefinition* G4ParticleGun::GetParticleDefinition ( ) const
inline

Definition at line 106 of file G4ParticleGun.hh.

Here is the caller graph for this function:

G4double G4ParticleGun::GetParticleEnergy ( ) const
inline

Definition at line 110 of file G4ParticleGun.hh.

Here is the caller graph for this function:

G4double G4ParticleGun::GetParticleMomentum ( ) const
inline

Definition at line 112 of file G4ParticleGun.hh.

Here is the caller graph for this function:

G4ParticleMomentum G4ParticleGun::GetParticleMomentumDirection ( ) const
inline

Definition at line 108 of file G4ParticleGun.hh.

Here is the caller graph for this function:

G4ThreeVector G4ParticleGun::GetParticlePolarization ( ) const
inline

Definition at line 116 of file G4ParticleGun.hh.

Here is the caller graph for this function:

void G4ParticleGun::SetInitialValues ( )
protectedvirtual

Definition at line 57 of file G4ParticleGun.cc.

Here is the caller graph for this function:

void G4ParticleGun::SetNumberOfParticles ( G4int  i)
inline

Definition at line 102 of file G4ParticleGun.hh.

Here is the caller graph for this function:

void G4ParticleGun::SetParticleCharge ( G4double  aCharge)
inline

Definition at line 98 of file G4ParticleGun.hh.

Here is the caller graph for this function:

void G4ParticleGun::SetParticleDefinition ( G4ParticleDefinition aParticleDefinition)

Definition at line 102 of file G4ParticleGun.cc.

Here is the call graph for this function:

void G4ParticleGun::SetParticleEnergy ( G4double  aKineticEnergy)

Definition at line 132 of file G4ParticleGun.cc.

Here is the call graph for this function:

void G4ParticleGun::SetParticleMomentum ( G4double  aMomentum)

Definition at line 150 of file G4ParticleGun.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ParticleGun::SetParticleMomentum ( G4ParticleMomentum  aMomentum)

Definition at line 180 of file G4ParticleGun.cc.

Here is the call graph for this function:

void G4ParticleGun::SetParticleMomentumDirection ( G4ParticleMomentum  aMomentumDirection)
inline

Definition at line 96 of file G4ParticleGun.hh.

Here is the call graph for this function:

void G4ParticleGun::SetParticlePolarization ( G4ThreeVector  aVal)
inline

Definition at line 100 of file G4ParticleGun.hh.

Here is the caller graph for this function:

Member Data Documentation

G4int G4ParticleGun::NumberOfParticlesToBeGenerated
protected

Definition at line 124 of file G4ParticleGun.hh.

G4double G4ParticleGun::particle_charge
protected

Definition at line 129 of file G4ParticleGun.hh.

G4ParticleDefinition* G4ParticleGun::particle_definition
protected

Definition at line 125 of file G4ParticleGun.hh.

G4double G4ParticleGun::particle_energy
protected

Definition at line 127 of file G4ParticleGun.hh.

G4double G4ParticleGun::particle_momentum
protected

Definition at line 128 of file G4ParticleGun.hh.

G4ParticleMomentum G4ParticleGun::particle_momentum_direction
protected

Definition at line 126 of file G4ParticleGun.hh.

G4ThreeVector G4ParticleGun::particle_polarization
protected

Definition at line 130 of file G4ParticleGun.hh.


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