Geant4
10.00.p01
|
#include <G4AdjointPrimaryGeneratorAction.hh>
Public Member Functions | |
G4AdjointPrimaryGeneratorAction () | |
~G4AdjointPrimaryGeneratorAction () | |
void | GeneratePrimaries (G4Event *) |
void | SetRndmFlag (const G4String &val) |
void | SetEmin (G4double val) |
void | SetEmax (G4double val) |
void | SetEminIon (G4double val) |
void | SetEmaxIon (G4double val) |
void | SetSphericalAdjointPrimarySource (G4double radius, G4ThreeVector pos) |
void | SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume (const G4String &volume_name) |
void | ConsiderParticleAsPrimary (const G4String &particle_name) |
void | NeglectParticleAsPrimary (const G4String &particle_name) |
void | SetPrimaryIon (G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon) |
void | UpdateListOfPrimaryParticles () |
size_t | GetNbOfAdjointPrimaryTypes () |
std::vector < G4ParticleDefinition * > | GetListOfPrimaryFwdParticles () |
const G4String & | GetPrimaryIonName () |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Member Functions | |
G4double | ComputeEnergyDistWeight (G4double energy, G4double E1, G4double E2) |
Definition at line 78 of file G4AdjointPrimaryGeneratorAction.hh.
G4AdjointPrimaryGeneratorAction::G4AdjointPrimaryGeneratorAction | ( | ) |
Definition at line 47 of file G4AdjointPrimaryGeneratorAction.cc.
References ListOfPrimaryAdjParticles, ListOfPrimaryFwdParticles, PrimariesConsideredInAdjointSim, and theAdjointPrimaryGenerator.
G4AdjointPrimaryGeneratorAction::~G4AdjointPrimaryGeneratorAction | ( | ) |
Definition at line 65 of file G4AdjointPrimaryGeneratorAction.cc.
References theAdjointPrimaryGenerator.
|
private |
Definition at line 207 of file G4AdjointPrimaryGeneratorAction.cc.
References G4AdjointSimManager::GetInstance(), and G4AdjointSimManager::GetNbEvtOfLastRun().
Referenced by GeneratePrimaries().
void G4AdjointPrimaryGeneratorAction::ConsiderParticleAsPrimary | ( | const G4String & | particle_name | ) |
Definition at line 243 of file G4AdjointPrimaryGeneratorAction.cc.
References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::ConsiderParticleAsPrimary().
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 71 of file G4AdjointPrimaryGeneratorAction.cc.
References A, G4Event::AddPrimaryVertex(), ComputeEnergyDistWeight(), Emax, EmaxIon, Emin, EminIon, G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), G4AdjointSimManager::GetAdjointSourceArea(), G4Event::GetEventID(), G4AdjointSimManager::GetInstance(), G4PrimaryParticle::GetMomentum(), G4PrimaryVertex::GetPosition(), G4PrimaryVertex::GetPrimary(), G4Event::GetPrimaryVertex(), index_particle, ListOfPrimaryAdjParticles, ListOfPrimaryFwdParticles, n, 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::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 101 of file G4AdjointPrimaryGeneratorAction.hh.
References ion_name.
Referenced by G4AdjointSimManager::GetPrimaryIonName().
void G4AdjointPrimaryGeneratorAction::NeglectParticleAsPrimary | ( | const G4String & | particle_name | ) |
Definition at line 252 of file G4AdjointPrimaryGeneratorAction.cc.
References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::NeglectParticleAsPrimary().
void G4AdjointPrimaryGeneratorAction::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume | ( | const G4String & | volume_name | ) |
Definition at line 236 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 188 of file G4AdjointPrimaryGeneratorAction.cc.
Referenced by G4AdjointSimManager::SetAdjointSourceEmax().
void G4AdjointPrimaryGeneratorAction::SetEmaxIon | ( | G4double | val | ) |
Definition at line 201 of file G4AdjointPrimaryGeneratorAction.cc.
References EmaxIon.
void G4AdjointPrimaryGeneratorAction::SetEmin | ( | G4double | val | ) |
Definition at line 181 of file G4AdjointPrimaryGeneratorAction.cc.
Referenced by G4AdjointSimManager::SetAdjointSourceEmin().
void G4AdjointPrimaryGeneratorAction::SetEminIon | ( | G4double | val | ) |
Definition at line 195 of file G4AdjointPrimaryGeneratorAction.cc.
References EminIon.
void G4AdjointPrimaryGeneratorAction::SetPrimaryIon | ( | G4ParticleDefinition * | adjointIon, |
G4ParticleDefinition * | fwdIon | ||
) |
Definition at line 293 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 227 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 261 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 139 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 134 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 130 of file G4AdjointPrimaryGeneratorAction.hh.
|
private |
Definition at line 117 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetEmax().
|
private |
Definition at line 119 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetEmax(), and SetEmaxIon().
|
private |
Definition at line 116 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetEmin().
|
private |
Definition at line 118 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetEmin(), and SetEminIon().
|
private |
Definition at line 138 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 128 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 140 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GetPrimaryIonName(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 124 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), GetNbOfAdjointPrimaryTypes(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 123 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), GetListOfPrimaryFwdParticles(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 130 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 130 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
Definition at line 125 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by ConsiderParticleAsPrimary(), G4AdjointPrimaryGeneratorAction(), NeglectParticleAsPrimary(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 133 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 109 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetRndmFlag().
|
private |
Definition at line 112 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), SetSphericalAdjointPrimarySource(), and ~G4AdjointPrimaryGeneratorAction().
|
private |
Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), and SetSphericalAdjointPrimarySource().