Geant4
10.02.p02
|
#include <G4AdjointPrimaryGenerator.hh>
Public Member Functions | |
G4AdjointPrimaryGenerator () | |
~G4AdjointPrimaryGenerator () | |
void | GenerateAdjointPrimaryVertex (G4Event *anEvt, G4ParticleDefinition *adj_part, G4double E1, G4double E2) |
void | GenerateFwdPrimaryVertex (G4Event *anEvt, G4ParticleDefinition *adj_part, G4double E1, G4double E2) |
void | SetSphericalAdjointPrimarySource (G4double radius, G4ThreeVector pos) |
void | SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume (const G4String &volume_name) |
void | ComputeAccumulatedDepthVectorAlongBackRay (G4ThreeVector glob_pos, G4ThreeVector direction, G4double ekin, G4ParticleDefinition *aPartDef) |
G4double | SampleDistanceAlongBackRayAndComputeWeightCorrection (G4double &weight_corr) |
Private Member Functions | |
G4AdjointPrimaryGenerator (const G4AdjointPrimaryGenerator &) | |
G4AdjointPrimaryGenerator & | operator= (const G4AdjointPrimaryGenerator &) |
Definition at line 67 of file G4AdjointPrimaryGenerator.hh.
G4AdjointPrimaryGenerator::G4AdjointPrimaryGenerator | ( | ) |
Definition at line 53 of file G4AdjointPrimaryGenerator.cc.
References center_spherical_source, G4SingleParticleSource::GetAngDist(), G4SingleParticleSource::GetEneDist(), G4AdjointPosOnPhysVolGenerator::GetInstance(), G4SingleParticleSource::GetPosDist(), G4SPSEneDistribution::SetAlpha(), G4SPSAngDistribution::SetAngDistType(), G4SPSEneDistribution::SetEnergyDisType(), G4SPSPosDistribution::SetPosDisType(), theG4AdjointPosOnPhysVolGenerator, theSingleParticleSource, and type_of_adjoint_source.
G4AdjointPrimaryGenerator::~G4AdjointPrimaryGenerator | ( | ) |
Definition at line 70 of file G4AdjointPrimaryGenerator.cc.
References theSingleParticleSource.
|
private |
void G4AdjointPrimaryGenerator::ComputeAccumulatedDepthVectorAlongBackRay | ( | G4ThreeVector | glob_pos, |
G4ThreeVector | direction, | ||
G4double | ekin, | ||
G4ParticleDefinition * | aPartDef | ||
) |
Definition at line 154 of file G4AdjointPrimaryGenerator.cc.
References G4Navigator::ComputeStep(), fLinearNavigator, G4Material::GetDensity(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetMaterial(), G4TransportationManager::GetNavigatorForTracking(), G4TransportationManager::GetTransportationManager(), G4PhysicsOrderedFreeVector::InsertValues(), G4Navigator::LocateGlobalPointAndSetup(), position, and theAccumulatedDepthVector.
void G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex | ( | G4Event * | anEvt, |
G4ParticleDefinition * | adj_part, | ||
G4double | E1, | ||
G4double | E2 | ||
) |
Definition at line 76 of file G4AdjointPrimaryGenerator.cc.
References G4AdjointPosOnPhysVolGenerator::GenerateAPositionOnTheExtSurfaceOfThePhysicalVolume(), G4SingleParticleSource::GeneratePrimaryVertex(), G4SingleParticleSource::GetAngDist(), G4SingleParticleSource::GetEneDist(), G4SingleParticleSource::GetPosDist(), pos, G4SPSPosDistribution::SetCentreCoords(), G4SPSEneDistribution::SetEmax(), G4SPSEneDistribution::SetEmin(), G4SingleParticleSource::SetParticleDefinition(), G4SPSAngDistribution::SetParticleMomentumDirection(), theG4AdjointPosOnPhysVolGenerator, theSingleParticleSource, and type_of_adjoint_source.
void G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex | ( | G4Event * | anEvt, |
G4ParticleDefinition * | adj_part, | ||
G4double | E1, | ||
G4double | E2 | ||
) |
Definition at line 105 of file G4AdjointPrimaryGenerator.cc.
References G4AdjointPosOnPhysVolGenerator::GenerateAPositionOnTheExtSurfaceOfThePhysicalVolume(), G4SingleParticleSource::GeneratePrimaryVertex(), G4SingleParticleSource::GetAngDist(), G4SingleParticleSource::GetEneDist(), G4SingleParticleSource::GetPosDist(), pos, G4SPSPosDistribution::SetCentreCoords(), G4SPSEneDistribution::SetEmax(), G4SPSEneDistribution::SetEmin(), G4SingleParticleSource::SetParticleDefinition(), G4SPSAngDistribution::SetParticleMomentumDirection(), theG4AdjointPosOnPhysVolGenerator, theSingleParticleSource, and type_of_adjoint_source.
Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().
|
private |
G4double G4AdjointPrimaryGenerator::SampleDistanceAlongBackRayAndComputeWeightCorrection | ( | G4double & | weight_corr | ) |
Definition at line 204 of file G4AdjointPrimaryGenerator.cc.
References G4PhysicsVector::FindLinearEnergy(), G4UniformRand, and theAccumulatedDepthVector.
void G4AdjointPrimaryGenerator::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume | ( | const G4String & | volume_name | ) |
Definition at line 144 of file G4AdjointPrimaryGenerator.cc.
References G4AdjointPosOnPhysVolGenerator::DefinePhysicalVolume1(), G4SingleParticleSource::GetAngDist(), G4SingleParticleSource::GetPosDist(), G4SPSAngDistribution::SetAngDistType(), G4SPSPosDistribution::SetPosDisType(), theG4AdjointPosOnPhysVolGenerator, theSingleParticleSource, and type_of_adjoint_source.
Referenced by G4AdjointPrimaryGeneratorAction::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume().
void G4AdjointPrimaryGenerator::SetSphericalAdjointPrimarySource | ( | G4double | radius, |
G4ThreeVector | pos | ||
) |
Definition at line 129 of file G4AdjointPrimaryGenerator.cc.
References center_spherical_source, G4SingleParticleSource::GetAngDist(), G4SingleParticleSource::GetPosDist(), halfpi, pi, radius_spherical_source, G4SPSAngDistribution::SetAngDistType(), G4SPSPosDistribution::SetCentreCoords(), G4SPSAngDistribution::SetMaxTheta(), G4SPSAngDistribution::SetMinTheta(), G4SPSPosDistribution::SetPosDisShape(), G4SPSPosDistribution::SetPosDisType(), G4SPSPosDistribution::SetRadius(), theSingleParticleSource, and type_of_adjoint_source.
Referenced by G4AdjointPrimaryGeneratorAction::SetSphericalAdjointPrimarySource().
|
private |
Definition at line 97 of file G4AdjointPrimaryGenerator.hh.
Referenced by G4AdjointPrimaryGenerator(), and SetSphericalAdjointPrimarySource().
|
private |
Definition at line 98 of file G4AdjointPrimaryGenerator.hh.
Referenced by ComputeAccumulatedDepthVectorAlongBackRay().
|
private |
Definition at line 96 of file G4AdjointPrimaryGenerator.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 99 of file G4AdjointPrimaryGenerator.hh.
Referenced by ComputeAccumulatedDepthVectorAlongBackRay(), and SampleDistanceAlongBackRayAndComputeWeightCorrection().
|
private |
Definition at line 89 of file G4AdjointPrimaryGenerator.hh.
Referenced by G4AdjointPrimaryGenerator(), GenerateAdjointPrimaryVertex(), GenerateFwdPrimaryVertex(), and SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume().
|
private |
Definition at line 91 of file G4AdjointPrimaryGenerator.hh.
Referenced by G4AdjointPrimaryGenerator(), GenerateAdjointPrimaryVertex(), GenerateFwdPrimaryVertex(), SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), SetSphericalAdjointPrimarySource(), and ~G4AdjointPrimaryGenerator().
|
private |
Definition at line 95 of file G4AdjointPrimaryGenerator.hh.
Referenced by G4AdjointPrimaryGenerator(), GenerateAdjointPrimaryVertex(), GenerateFwdPrimaryVertex(), SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), and SetSphericalAdjointPrimarySource().