Geant4-11
|
#include <G4ParticleGun.hh>
Static Public Member Functions | |
static G4bool | CheckVertexInsideWorld (const G4ThreeVector &pos) |
Protected Member Functions | |
virtual void | SetInitialValues () |
Protected Attributes | |
G4int | NumberOfParticlesToBeGenerated = 0 |
G4double | particle_charge = 0.0 |
G4ParticleDefinition * | particle_definition = nullptr |
G4double | particle_energy = 0.0 |
G4double | particle_momentum = 0.0 |
G4ParticleMomentum | particle_momentum_direction |
G4ThreeVector | particle_polarization |
G4ThreeVector | particle_position |
G4double | particle_time = 0.0 |
Private Attributes | |
G4ParticleGunMessenger * | theMessenger = nullptr |
Definition at line 64 of file G4ParticleGun.hh.
G4ParticleGun::G4ParticleGun | ( | ) |
Definition at line 38 of file G4ParticleGun.cc.
References SetInitialValues().
G4ParticleGun::G4ParticleGun | ( | G4int | numberofparticles | ) |
Definition at line 43 of file G4ParticleGun.cc.
References NumberOfParticlesToBeGenerated, and SetInitialValues().
G4ParticleGun::G4ParticleGun | ( | G4ParticleDefinition * | particleDef, |
G4int | numberofparticles = 1 |
||
) |
Definition at line 49 of file G4ParticleGun.cc.
References NumberOfParticlesToBeGenerated, SetInitialValues(), and SetParticleDefinition().
|
virtual |
|
delete |
Definition at line 46 of file pyG4ParticleGun.cc.
|
staticinherited |
Definition at line 43 of file G4VPrimaryGenerator.cc.
References G4TransportationManager::GetTransportationManager(), kInside, write_gdml::navigator, and pos.
|
virtual |
Implements G4VPrimaryGenerator.
Definition at line 203 of file G4ParticleGun.cc.
References G4Event::AddPrimaryVertex(), FatalException, G4endl, G4Exception(), G4ParticleDefinition::GetPDGMass(), NumberOfParticlesToBeGenerated, particle_charge, particle_definition, particle_energy, particle_momentum_direction, particle_polarization, G4VPrimaryGenerator::particle_position, G4VPrimaryGenerator::particle_time, G4PrimaryParticle::SetCharge(), G4PrimaryParticle::SetKineticEnergy(), G4PrimaryParticle::SetMass(), G4PrimaryParticle::SetMomentumDirection(), G4PrimaryParticle::SetPolarization(), G4PrimaryVertex::SetPrimary(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by export_G4ParticleGun(), and PrimaryGeneratorAction::GeneratePrimaries().
|
inline |
Definition at line 117 of file G4ParticleGun.hh.
References NumberOfParticlesToBeGenerated.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 113 of file G4ParticleGun.hh.
References particle_charge.
Referenced by export_G4ParticleGun().
|
inline |
Definition at line 105 of file G4ParticleGun.hh.
References particle_definition.
Referenced by RunAction::BeginOfRunAction(), export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 109 of file G4ParticleGun.hh.
References particle_energy.
Referenced by RunAction::BeginOfRunAction(), export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 111 of file G4ParticleGun.hh.
References particle_momentum.
Referenced by G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 107 of file G4ParticleGun.hh.
References particle_momentum_direction.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 115 of file G4ParticleGun.hh.
References particle_polarization.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inlineinherited |
Definition at line 60 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_position.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inlineinherited |
Definition at line 61 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_time.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
delete |
Definition at line 74 of file pyG4ParticleGun.cc.
|
delete |
Definition at line 53 of file pyG4ParticleGun.cc.
References NumberOfParticlesToBeGenerated, particle_charge, particle_definition, particle_energy, particle_momentum_direction, and particle_polarization.
|
delete |
Definition at line 67 of file pyG4ParticleGun.cc.
|
protectedvirtual |
Definition at line 57 of file G4ParticleGun.cc.
References NumberOfParticlesToBeGenerated, particle_charge, particle_definition, particle_energy, particle_momentum, particle_momentum_direction, particle_polarization, G4VPrimaryGenerator::particle_position, G4VPrimaryGenerator::particle_time, theMessenger, and anonymous_namespace{G4CascadeDeexciteBase.cc}::zero.
Referenced by G4ParticleGun().
|
inline |
Definition at line 102 of file G4ParticleGun.hh.
References NumberOfParticlesToBeGenerated.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::SetNewValue().
|
inline |
Definition at line 98 of file G4ParticleGun.hh.
References particle_charge.
Referenced by export_G4ParticleGun(), G4ParticleGunMessenger::IonCommand(), and G4ParticleGunMessenger::IonLevelCommand().
void G4ParticleGun::SetParticleDefinition | ( | G4ParticleDefinition * | aParticleDefinition | ) |
Definition at line 77 of file G4ParticleGun.cc.
References FatalException, G4endl, G4Exception(), G4ParticleDefinition::GetDecayTable(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMass(), G4ParticleDefinition::IsShortLived(), JustWarning, particle_charge, particle_definition, particle_energy, and particle_momentum.
Referenced by export_G4ParticleGun(), G4ParticleGun(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4ParticleGunMessenger::IonCommand(), G4ParticleGunMessenger::IonLevelCommand(), PrimaryGeneratorAction::SetDefaultKinematic(), and G4ParticleGunMessenger::SetNewValue().
void G4ParticleGun::SetParticleEnergy | ( | G4double | aKineticEnergy | ) |
Definition at line 109 of file G4ParticleGun.cc.
References G4cout, G4endl, G4ParticleDefinition::GetParticleName(), GeV, particle_definition, particle_energy, and particle_momentum.
Referenced by export_G4ParticleGun(), G4ParticleGunMessenger::G4ParticleGunMessenger(), PrimaryGeneratorAction::SetDefaultKinematic(), and G4ParticleGunMessenger::SetNewValue().
void G4ParticleGun::SetParticleMomentum | ( | G4double | aMomentum | ) |
Definition at line 131 of file G4ParticleGun.cc.
References G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGMass(), GeV, particle_definition, particle_energy, and particle_momentum.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::SetNewValue().
void G4ParticleGun::SetParticleMomentum | ( | G4ParticleMomentum | aMomentum | ) |
Definition at line 166 of file G4ParticleGun.cc.
References G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGMass(), GeV, CLHEP::Hep3Vector::mag(), particle_definition, particle_energy, particle_momentum, particle_momentum_direction, and CLHEP::Hep3Vector::unit().
|
inline |
Definition at line 96 of file G4ParticleGun.hh.
References particle_momentum_direction, and CLHEP::Hep3Vector::unit().
Referenced by export_G4ParticleGun(), G4ParticleGunMessenger::G4ParticleGunMessenger(), PrimaryGeneratorAction::SetDefaultKinematic(), and G4ParticleGunMessenger::SetNewValue().
|
inline |
Definition at line 100 of file G4ParticleGun.hh.
References particle_polarization.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::SetNewValue().
|
inlineinherited |
Definition at line 63 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_position.
Referenced by export_G4ParticleGun(), G4ParticleGunMessenger::G4ParticleGunMessenger(), PrimaryGeneratorAction::SetDefaultKinematic(), and G4ParticleGunMessenger::SetNewValue().
|
inlineinherited |
Definition at line 65 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_time.
Referenced by export_G4ParticleGun(), G4ParticleGunMessenger::G4ParticleGunMessenger(), and G4ParticleGunMessenger::SetNewValue().
|
protected |
Definition at line 124 of file G4ParticleGun.hh.
Referenced by G4ParticleGun(), GeneratePrimaryVertex(), GetNumberOfParticles(), operator=(), SetInitialValues(), and SetNumberOfParticles().
|
protected |
Definition at line 129 of file G4ParticleGun.hh.
Referenced by GeneratePrimaryVertex(), GetParticleCharge(), operator=(), SetInitialValues(), SetParticleCharge(), and SetParticleDefinition().
|
protected |
Definition at line 125 of file G4ParticleGun.hh.
Referenced by GeneratePrimaryVertex(), GetParticleDefinition(), operator=(), SetInitialValues(), SetParticleDefinition(), SetParticleEnergy(), and SetParticleMomentum().
|
protected |
Definition at line 127 of file G4ParticleGun.hh.
Referenced by GeneratePrimaryVertex(), GetParticleEnergy(), operator=(), SetInitialValues(), SetParticleDefinition(), SetParticleEnergy(), and SetParticleMomentum().
|
protected |
Definition at line 128 of file G4ParticleGun.hh.
Referenced by GetParticleMomentum(), SetInitialValues(), SetParticleDefinition(), SetParticleEnergy(), and SetParticleMomentum().
|
protected |
Definition at line 126 of file G4ParticleGun.hh.
Referenced by GeneratePrimaryVertex(), GetParticleMomentumDirection(), operator=(), SetInitialValues(), SetParticleMomentum(), and SetParticleMomentumDirection().
|
protected |
Definition at line 130 of file G4ParticleGun.hh.
Referenced by GeneratePrimaryVertex(), GetParticlePolarization(), operator=(), SetInitialValues(), and SetParticlePolarization().
|
protectedinherited |
Definition at line 70 of file G4VPrimaryGenerator.hh.
Referenced by G4HEPEvtInterface::G4HEPEvtInterface(), G4HEPEvtInterface::GeneratePrimaryVertex(), GeneratePrimaryVertex(), G4VPrimaryGenerator::GetParticlePosition(), SetInitialValues(), and G4VPrimaryGenerator::SetParticlePosition().
|
protectedinherited |
Definition at line 71 of file G4VPrimaryGenerator.hh.
Referenced by G4HEPEvtInterface::G4HEPEvtInterface(), G4HEPEvtInterface::GeneratePrimaryVertex(), GeneratePrimaryVertex(), G4VPrimaryGenerator::GetParticleTime(), SetInitialValues(), and G4VPrimaryGenerator::SetParticleTime().
|
private |
Definition at line 134 of file G4ParticleGun.hh.
Referenced by SetInitialValues(), and ~G4ParticleGun().