Geant4
10.01
|
#include <G4AdjointPrimaryGeneratorAction.hh>
Private Member Functions | |
G4double | ComputeEnergyDistWeight (G4double energy, G4double E1, G4double E2) |
G4AdjointPrimaryGeneratorAction (const G4AdjointPrimaryGeneratorAction &) | |
G4AdjointPrimaryGeneratorAction & | operator= (const G4AdjointPrimaryGeneratorAction &) |
Definition at line 78 of file G4AdjointPrimaryGeneratorAction.hh.
G4AdjointPrimaryGeneratorAction::G4AdjointPrimaryGeneratorAction | ( | ) |
Definition at line 49 of file G4AdjointPrimaryGeneratorAction.cc.
References ListOfPrimaryAdjParticles, ListOfPrimaryFwdParticles, nb_fwd_gammas_per_event, PrimariesConsideredInAdjointSim, and theAdjointPrimaryGenerator.
G4AdjointPrimaryGeneratorAction::~G4AdjointPrimaryGeneratorAction | ( | ) |
Definition at line 68 of file G4AdjointPrimaryGeneratorAction.cc.
References theAdjointPrimaryGenerator.
|
private |
|
private |
Definition at line 245 of file G4AdjointPrimaryGeneratorAction.cc.
References G4AdjointSimManager::GetInstance(), and G4AdjointSimManager::GetNbEvtOfLastRun().
Referenced by GeneratePrimaries().
void G4AdjointPrimaryGeneratorAction::ConsiderParticleAsPrimary | ( | const G4String & | particle_name | ) |
Definition at line 281 of file G4AdjointPrimaryGeneratorAction.cc.
References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::ConsiderParticleAsPrimary().
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 74 of file G4AdjointPrimaryGeneratorAction.cc.
References A, G4Event::AddPrimaryVertex(), ComputeEnergyDistWeight(), Emax, EmaxIon, Emin, EminIon, G4Gamma::Gamma(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), G4AdjointSimManager::GetAdjointSourceArea(), G4Event::GetEventID(), G4AdjointSimManager::GetInstance(), G4PrimaryParticle::GetMomentum(), G4PrimaryVertex::GetPosition(), G4PrimaryVertex::GetPrimary(), G4Event::GetPrimaryVertex(), index_particle, ListOfPrimaryAdjParticles, ListOfPrimaryFwdParticles, n, nb_fwd_gammas_per_event, p, G4INCL::Math::pi, pos, G4AdjointSimManager::SetAdjointTrackingMode(), G4PrimaryVertex::SetPosition(), G4PrimaryVertex::SetPrimary(), G4PrimaryVertex::SetT0(), G4PrimaryVertex::SetWeight(), theAdjointPrimaryGenerator, and UpdateListOfPrimaryParticles().
|
inline |
Definition at line 100 of file G4AdjointPrimaryGeneratorAction.hh.
References ListOfPrimaryFwdParticles.
Referenced by G4AdjointSimManager::G4AdjointSimManager(), G4AdjointSimManager::GetListOfPrimaryFwdParticles(), G4AdjointSimManager::GetNbOfPrimaryFwdParticles(), and G4AdjointSimManager::RegisterAtEndOfAdjointTrack().
|
inline |
Definition at line 99 of file G4AdjointPrimaryGeneratorAction.hh.
References ListOfPrimaryAdjParticles.
Referenced by G4AdjointSimManager::RunAdjointSimulation().
|
inline |
Definition at line 102 of file G4AdjointPrimaryGeneratorAction.hh.
References ion_name.
Referenced by G4AdjointSimManager::GetPrimaryIonName().
void G4AdjointPrimaryGeneratorAction::NeglectParticleAsPrimary | ( | const G4String & | particle_name | ) |
Definition at line 290 of file G4AdjointPrimaryGeneratorAction.cc.
References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::NeglectParticleAsPrimary().
|
private |
void G4AdjointPrimaryGeneratorAction::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume | ( | const G4String & | volume_name | ) |
Definition at line 274 of file G4AdjointPrimaryGeneratorAction.cc.
References G4AdjointPrimaryGenerator::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), theAdjointPrimaryGenerator, and type_of_adjoint_source.
Referenced by G4AdjointSimManager::DefineAdjointSourceOnTheExtSurfaceOfAVolume().
void G4AdjointPrimaryGeneratorAction::SetEmax | ( | G4double | val | ) |
Definition at line 226 of file G4AdjointPrimaryGeneratorAction.cc.
Referenced by G4AdjointSimManager::SetAdjointSourceEmax().
void G4AdjointPrimaryGeneratorAction::SetEmaxIon | ( | G4double | val | ) |
Definition at line 239 of file G4AdjointPrimaryGeneratorAction.cc.
References EmaxIon.
void G4AdjointPrimaryGeneratorAction::SetEmin | ( | G4double | val | ) |
Definition at line 219 of file G4AdjointPrimaryGeneratorAction.cc.
Referenced by G4AdjointSimManager::SetAdjointSourceEmin().
void G4AdjointPrimaryGeneratorAction::SetEminIon | ( | G4double | val | ) |
Definition at line 233 of file G4AdjointPrimaryGeneratorAction.cc.
References EminIon.
|
inline |
Definition at line 103 of file G4AdjointPrimaryGeneratorAction.hh.
References nb_fwd_gammas_per_event.
Referenced by G4AdjointSimManager::SetNbOfPrimaryFwdGammasPerEvent().
void G4AdjointPrimaryGeneratorAction::SetPrimaryIon | ( | G4ParticleDefinition * | adjointIon, |
G4ParticleDefinition * | fwdIon | ||
) |
Definition at line 337 of file G4AdjointPrimaryGeneratorAction.cc.
References adj_ion, fwd_ion, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::SetPrimaryIon().
|
inline |
Definition at line 88 of file G4AdjointPrimaryGeneratorAction.hh.
References rndmFlag.
void G4AdjointPrimaryGeneratorAction::SetSphericalAdjointPrimarySource | ( | G4double | radius, |
G4ThreeVector | pos | ||
) |
Definition at line 265 of file G4AdjointPrimaryGeneratorAction.cc.
References center_spherical_source, radius_spherical_source, G4AdjointPrimaryGenerator::SetSphericalAdjointPrimarySource(), theAdjointPrimaryGenerator, and type_of_adjoint_source.
Referenced by G4AdjointSimManager::DefineSphericalAdjointSource(), and G4AdjointSimManager::DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume().
void G4AdjointPrimaryGeneratorAction::UpdateListOfPrimaryParticles | ( | ) |
Definition at line 299 of file G4AdjointPrimaryGeneratorAction.cc.
References adj_ion, G4ParticleTable::FindParticle(), G4String::first(), fwd_ion, G4ParticleDefinition::GetParticleName(), G4ParticleTable::GetParticleTable(), ion_name, ListOfPrimaryAdjParticles, ListOfPrimaryFwdParticles, and PrimariesConsideredInAdjointSim.
Referenced by ConsiderParticleAsPrimary(), GeneratePrimaries(), NeglectParticleAsPrimary(), SetPrimaryIon(), and G4AdjointSimManager::SwitchToAdjointSimulationMode().
|
private |
Definition at line 142 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 136 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.
|
private |
Definition at line 119 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetEmax().
|
private |
Definition at line 121 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetEmax(), and SetEmaxIon().
|
private |
Definition at line 118 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetEmin().
|
private |
Definition at line 120 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetEmin(), and SetEminIon().
|
private |
Definition at line 141 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 130 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 143 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GetPrimaryIonName(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 126 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), GetNbOfAdjointPrimaryTypes(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 125 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), GetListOfPrimaryFwdParticles(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 137 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), and SetNbPrimaryFwdGammasPerEvent().
|
private |
Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
Definition at line 127 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by ConsiderParticleAsPrimary(), G4AdjointPrimaryGeneratorAction(), NeglectParticleAsPrimary(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 135 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 111 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetRndmFlag().
|
private |
Definition at line 114 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), SetSphericalAdjointPrimarySource(), and ~G4AdjointPrimaryGeneratorAction().
|
private |
Definition at line 134 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), and SetSphericalAdjointPrimarySource().