Geant4
10.01.p03
|
Andrea Dotti Feb 2015 Important: This is a shared class between threads. More...
#include <G4SingleParticleSource.hh>
Classes | |
struct | part_prop_t |
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 |
Andrea Dotti Feb 2015 Important: This is a shared class between threads.
Only one thread should use the set-methods here. Note that this is exactly what is achieved using UI commands. If you use the set methods to set defaults in your application take care that only one thread is executing them. In addition take care of calling these methods before the run is started Do not use these setters during the event loop
Definition at line 141 of file G4SingleParticleSource.hh.
G4SingleParticleSource::G4SingleParticleSource | ( | ) |
Definition at line 71 of file G4SingleParticleSource.cc.
References angGenerator, biasRndm, charge, definition, eneGenerator, G4MUTEXINIT, G4Geantino::GeantinoDefinition(), mutex, NumberOfParticlesToBeGenerated, polarization, posGenerator, G4SPSPosDistribution::SetBiasRndm(), G4SPSAngDistribution::SetBiasRndm(), G4SPSEneDistribution::SetBiasRndm(), G4SPSAngDistribution::SetPosDistribution(), time, and verbosityLevel.
G4SingleParticleSource::~G4SingleParticleSource | ( | ) |
Definition at line 103 of file G4SingleParticleSource.cc.
References angGenerator, biasRndm, eneGenerator, G4MUTEXDESTROY, mutex, and posGenerator.
|
virtual |
Implements G4VPrimaryGenerator.
Definition at line 126 of file G4SingleParticleSource.cc.
References G4Event::AddPrimaryVertex(), angGenerator, biasRndm, charge, definition, eneGenerator, G4SingleParticleSource::part_prop_t::energy, G4cout, G4endl, G4SPSPosDistribution::GenerateOne(), G4SPSAngDistribution::GenerateOne(), G4SPSEneDistribution::GenerateOne(), G4SPSRandomGenerator::GetBiasWeight(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGMass(), G4SPSEneDistribution::GetWeight(), G4SingleParticleSource::part_prop_t::momentum_direction, NumberOfParticlesToBeGenerated, ParticleProperties, polarization, posGenerator, G4SingleParticleSource::part_prop_t::position, G4InuclParticleNames::pp, G4PrimaryParticle::SetCharge(), G4PrimaryParticle::SetKineticEnergy(), G4PrimaryParticle::SetMass(), G4PrimaryParticle::SetMomentumDirection(), G4PrimaryParticle::SetPolarization(), G4PrimaryVertex::SetPrimary(), G4PrimaryParticle::SetWeight(), time, and verbosityLevel.
Referenced by G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), and G4GeneralParticleSource::GeneratePrimaryVertex().
|
inline |
Definition at line 153 of file G4SingleParticleSource.hh.
References angGenerator.
Referenced by G4AdjointPrimaryGenerator::G4AdjointPrimaryGenerator(), G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), G4GeneralParticleSource::ListSource(), G4AdjointPrimaryGenerator::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), G4GeneralParticleSourceMessenger::SetNewValue(), G4AdjointPrimaryGenerator::SetSphericalAdjointPrimarySource(), and UltraActionInitializer::UltraActionInitializer().
|
inline |
Definition at line 161 of file G4SingleParticleSource.hh.
References biasRndm.
Referenced by G4GeneralParticleSourceData::IntensityNormalise(), and G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 157 of file G4SingleParticleSource.hh.
References eneGenerator.
Referenced by G4AdjointPrimaryGenerator::G4AdjointPrimaryGenerator(), G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), UltraPrimaryGeneratorAction::GeneratePrimaries(), G4GeneralParticleSource::ListSource(), G4GeneralParticleSourceMessenger::SetNewValue(), and UltraActionInitializer::UltraActionInitializer().
|
inline |
Definition at line 206 of file G4SingleParticleSource.hh.
References NumberOfParticlesToBeGenerated.
Referenced by G4GeneralParticleSource::GetNumberOfParticles(), and G4GeneralParticleSource::ListSource().
|
inline |
Definition at line 171 of file G4SingleParticleSource.hh.
References definition.
Referenced by G4GeneralParticleSource::GetParticleDefinition(), and G4GeneralParticleSource::ListSource().
|
inline |
Definition at line 218 of file G4SingleParticleSource.hh.
References ParticleProperties.
Referenced by G4GeneralParticleSource::GetParticleEnergy(), and G4GeneralParticleSource::ListSource().
|
inline |
Definition at line 214 of file G4SingleParticleSource.hh.
References ParticleProperties.
Referenced by G4GeneralParticleSource::GetParticleMomentumDirection().
|
inline |
Definition at line 186 of file G4SingleParticleSource.hh.
References polarization.
Referenced by G4GeneralParticleSource::GetParticlePolarization().
|
inline |
Definition at line 210 of file G4SingleParticleSource.hh.
References ParticleProperties.
Referenced by G4GeneralParticleSource::GetParticlePosition().
|
inline |
Definition at line 196 of file G4SingleParticleSource.hh.
References time.
Referenced by G4GeneralParticleSource::GetParticleTime().
|
inline |
Definition at line 149 of file G4SingleParticleSource.hh.
References posGenerator.
Referenced by G4AdjointPrimaryGenerator::G4AdjointPrimaryGenerator(), G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), UltraPrimaryGeneratorAction::GeneratePrimaries(), G4GeneralParticleSource::ListSource(), G4AdjointPrimaryGenerator::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), G4GeneralParticleSourceMessenger::SetNewValue(), G4AdjointPrimaryGenerator::SetSphericalAdjointPrimarySource(), and UltraActionInitializer::UltraActionInitializer().
|
inline |
Definition at line 201 of file G4SingleParticleSource.hh.
References NumberOfParticlesToBeGenerated.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetNumberOfParticles().
|
inline |
Definition at line 176 of file G4SingleParticleSource.hh.
References charge.
Referenced by G4GeneralParticleSourceMessenger::IonCommand(), G4GeneralParticleSourceMessenger::IonLvlCommand(), and G4GeneralParticleSource::SetParticleCharge().
void G4SingleParticleSource::SetParticleDefinition | ( | G4ParticleDefinition * | aParticleDefinition | ) |
Definition at line 120 of file G4SingleParticleSource.cc.
References charge, definition, and G4ParticleDefinition::GetPDGCharge().
Referenced by G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), G4GeneralParticleSourceMessenger::IonCommand(), G4GeneralParticleSourceMessenger::IonLvlCommand(), G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetParticleDefinition().
|
inline |
Definition at line 182 of file G4SingleParticleSource.hh.
References polarization.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetParticlePolarization().
|
inline |
Definition at line 192 of file G4SingleParticleSource.hh.
References time.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetParticleTime().
void G4SingleParticleSource::SetVerbosity | ( | G4int | vL | ) |
Definition at line 111 of file G4SingleParticleSource.cc.
References angGenerator, eneGenerator, mutex, posGenerator, G4SPSPosDistribution::SetVerbosity(), G4SPSAngDistribution::SetVerbosity(), G4SPSEneDistribution::SetVerbosity(), and verbosityLevel.
|
private |
Definition at line 226 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetAngDist(), SetVerbosity(), and ~G4SingleParticleSource().
|
private |
Definition at line 228 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetBiasRndm(), and ~G4SingleParticleSource().
|
private |
Definition at line 243 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), SetParticleCharge(), and SetParticleDefinition().
|
private |
Definition at line 242 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetParticleDefinition(), and SetParticleDefinition().
|
private |
Definition at line 227 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetEneDist(), SetVerbosity(), and ~G4SingleParticleSource().
|
private |
Definition at line 251 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), SetVerbosity(), and ~G4SingleParticleSource().
|
private |
Definition at line 241 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetNumberOfParticles(), and SetNumberOfParticles().
|
private |
Definition at line 240 of file G4SingleParticleSource.hh.
Referenced by GeneratePrimaryVertex(), GetParticleEnergy(), GetParticleMomentumDirection(), and GetParticlePosition().
|
private |
Definition at line 245 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetParticlePolarization(), and SetParticlePolarization().
|
private |
Definition at line 221 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetPosDist(), SetVerbosity(), and ~G4SingleParticleSource().
|
private |
Definition at line 244 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), GetParticleTime(), and SetParticleTime().
|
private |
Definition at line 248 of file G4SingleParticleSource.hh.
Referenced by G4SingleParticleSource(), GeneratePrimaryVertex(), and SetVerbosity().