Geant4
10.02.p02
|
The primary generator class with particle gun. More...
#include <ExG4PrimaryGeneratorAction01.hh>
Private Attributes | |
G4ParticleGun * | fParticleGun |
The primary generator class with particle gun.
Definition at line 48 of file ExG4PrimaryGeneratorAction01.hh.
ExG4PrimaryGeneratorAction01::ExG4PrimaryGeneratorAction01 | ( | const G4String & | particleName = "geantino" , |
G4double | energy = 1.*CLHEP::MeV , |
||
G4ThreeVector | position = G4ThreeVector(0,0,0) , |
||
G4ThreeVector | momentumDirection = G4ThreeVector(0,0,1) |
||
) |
Definition at line 40 of file ExG4PrimaryGeneratorAction01.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
ExG4PrimaryGeneratorAction01::~ExG4PrimaryGeneratorAction01 | ( | ) |
Definition at line 63 of file ExG4PrimaryGeneratorAction01.cc.
References fParticleGun.
ExG4PrimaryGeneratorAction01::ExG4PrimaryGeneratorAction01 | ( | const G4String & | particleName = "geantino" , |
G4double | energy = 1.*CLHEP::MeV , |
||
G4ThreeVector | position = G4ThreeVector(0, 0, 0) , |
||
G4ThreeVector | momentumDirection = G4ThreeVector(0, 0, 1) |
||
) |
ExG4PrimaryGeneratorAction01::~ExG4PrimaryGeneratorAction01 | ( | ) |
ExG4PrimaryGeneratorAction01::ExG4PrimaryGeneratorAction01 | ( | const G4String & | particleName = "geantino" , |
G4double | energy = 1.*CLHEP::MeV , |
||
G4ThreeVector | position = G4ThreeVector(0, 0, 0) , |
||
G4ThreeVector | momentumDirection = G4ThreeVector(0, 0, 1) |
||
) |
ExG4PrimaryGeneratorAction01::~ExG4PrimaryGeneratorAction01 | ( | ) |
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 70 of file ExG4PrimaryGeneratorAction01.cc.
References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
|
private |
Definition at line 63 of file ExG4PrimaryGeneratorAction01.hh.
Referenced by ExG4PrimaryGeneratorAction01(), GeneratePrimaries(), and ~ExG4PrimaryGeneratorAction01().