Geant4-11
|
#include <G4AdjointPrimaryGeneratorAction.hh>
Private Member Functions | |
G4double | ComputeEnergyDistWeight (G4double energy, G4double E1, G4double E2) |
Private Attributes | |
G4ParticleDefinition * | adj_ion = nullptr |
G4ThreeVector | center_spherical_source |
G4ThreeVector | direction |
G4double | Emax = 0.0 |
G4double | EmaxIon = 0.0 |
G4double | Emin = 0.0 |
G4double | EminIon = 0.0 |
G4ParticleDefinition * | fwd_ion = nullptr |
std::size_t | index_particle = 100000 |
G4String | ion_name = "not_defined" |
std::vector< G4ParticleDefinition * > | ListOfPrimaryAdjParticles |
std::vector< G4ParticleDefinition * > | ListOfPrimaryFwdParticles |
G4int | nb_adj_primary_electrons_per_event = 1 |
G4int | nb_adj_primary_gammas_per_event = 1 |
G4int | nb_fwd_gammas_per_event = 1 |
G4ThreeVector | p |
G4ThreeVector | pos |
std::map< G4String, G4bool > | PrimariesConsideredInAdjointSim |
G4double | radius_spherical_source = 0.0 |
G4String | rndmFlag |
G4AdjointPrimaryGenerator * | theAdjointPrimaryGenerator = nullptr |
G4String | type_of_adjoint_source |
Definition at line 80 of file G4AdjointPrimaryGeneratorAction.hh.
G4AdjointPrimaryGeneratorAction::G4AdjointPrimaryGeneratorAction | ( | ) |
Definition at line 48 of file G4AdjointPrimaryGeneratorAction.cc.
References ListOfPrimaryAdjParticles, ListOfPrimaryFwdParticles, PrimariesConsideredInAdjointSim, and theAdjointPrimaryGenerator.
G4AdjointPrimaryGeneratorAction::~G4AdjointPrimaryGeneratorAction | ( | ) |
Definition at line 63 of file G4AdjointPrimaryGeneratorAction.cc.
References theAdjointPrimaryGenerator.
|
delete |
|
private |
Definition at line 225 of file G4AdjointPrimaryGeneratorAction.cc.
References G4AdjointSimManager::GetInstance(), and G4AdjointSimManager::GetNbEvtOfLastRun().
Referenced by GeneratePrimaries().
void G4AdjointPrimaryGeneratorAction::ConsiderParticleAsPrimary | ( | const G4String & | particle_name | ) |
Definition at line 270 of file G4AdjointPrimaryGeneratorAction.cc.
References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::ConsiderParticleAsPrimary().
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 70 of file G4AdjointPrimaryGeneratorAction.cc.
References A, G4Event::AddPrimaryVertex(), G4AdjointSimManager::ClearEndOfAdjointTrackInfoVectors(), 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, CLHEP::Hep3Vector::mag(), CLHEP::detail::n, nb_adj_primary_electrons_per_event, nb_adj_primary_gammas_per_event, nb_fwd_gammas_per_event, p, pi, pos, G4AdjointSimManager::ResetDidOneAdjPartReachExtSourceDuringEvent(), G4AdjointSimManager::SetAdjointTrackingMode(), G4PrimaryVertex::SetPosition(), G4PrimaryVertex::SetPrimary(), G4PrimaryVertex::SetT0(), G4PrimaryVertex::SetWeight(), theAdjointPrimaryGenerator, UpdateListOfPrimaryParticles(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
inline |
Definition at line 135 of file G4AdjointPrimaryGeneratorAction.hh.
References index_particle, and ListOfPrimaryFwdParticles.
Referenced by G4AdjointSimManager::GetLastGeneratedFwdPrimaryParticle().
|
inline |
Definition at line 115 of file G4AdjointPrimaryGeneratorAction.hh.
References ListOfPrimaryFwdParticles.
Referenced by G4AdjointSimManager::G4AdjointSimManager(), G4AdjointSimManager::GetListOfPrimaryFwdParticles(), G4AdjointSimManager::GetNbOfPrimaryFwdParticles(), and G4AdjointSimManager::RegisterAtEndOfAdjointTrack().
|
inline |
Definition at line 111 of file G4AdjointPrimaryGeneratorAction.hh.
References ListOfPrimaryAdjParticles.
Referenced by G4AdjointSimManager::RunAdjointSimulation().
|
inline |
Definition at line 119 of file G4AdjointPrimaryGeneratorAction.hh.
References ion_name.
Referenced by G4AdjointSimManager::GetPrimaryIonName().
void G4AdjointPrimaryGeneratorAction::NeglectParticleAsPrimary | ( | const G4String & | particle_name | ) |
Definition at line 283 of file G4AdjointPrimaryGeneratorAction.cc.
References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::NeglectParticleAsPrimary().
|
delete |
void G4AdjointPrimaryGeneratorAction::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume | ( | const G4String & | volume_name | ) |
Definition at line 260 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 203 of file G4AdjointPrimaryGeneratorAction.cc.
Referenced by G4AdjointSimManager::SetAdjointSourceEmax().
void G4AdjointPrimaryGeneratorAction::SetEmaxIon | ( | G4double | val | ) |
Definition at line 218 of file G4AdjointPrimaryGeneratorAction.cc.
References EmaxIon.
void G4AdjointPrimaryGeneratorAction::SetEmin | ( | G4double | val | ) |
Definition at line 195 of file G4AdjointPrimaryGeneratorAction.cc.
Referenced by G4AdjointSimManager::SetAdjointSourceEmin().
void G4AdjointPrimaryGeneratorAction::SetEminIon | ( | G4double | val | ) |
Definition at line 211 of file G4AdjointPrimaryGeneratorAction.cc.
References EminIon.
|
inline |
Definition at line 131 of file G4AdjointPrimaryGeneratorAction.hh.
References nb_adj_primary_electrons_per_event.
Referenced by G4AdjointSimManager::SetNbAdjointPrimaryElectronsPerEvent().
|
inline |
Definition at line 127 of file G4AdjointPrimaryGeneratorAction.hh.
References nb_adj_primary_gammas_per_event.
Referenced by G4AdjointSimManager::SetNbAdjointPrimaryGammasPerEvent().
|
inline |
Definition at line 123 of file G4AdjointPrimaryGeneratorAction.hh.
References nb_fwd_gammas_per_event.
Referenced by G4AdjointSimManager::SetNbOfPrimaryFwdGammasPerEvent().
void G4AdjointPrimaryGeneratorAction::SetPrimaryIon | ( | G4ParticleDefinition * | adjointIon, |
G4ParticleDefinition * | fwdIon | ||
) |
Definition at line 336 of file G4AdjointPrimaryGeneratorAction.cc.
References adj_ion, fwd_ion, and UpdateListOfPrimaryParticles().
Referenced by G4AdjointSimManager::SetPrimaryIon().
|
inline |
Definition at line 107 of file G4AdjointPrimaryGeneratorAction.hh.
References rndmFlag.
void G4AdjointPrimaryGeneratorAction::SetSphericalAdjointPrimarySource | ( | G4double | radius, |
G4ThreeVector | pos | ||
) |
Definition at line 248 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 296 of file G4AdjointPrimaryGeneratorAction.cc.
References adj_ion, G4ParticleTable::FindParticle(), 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 180 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 172 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 168 of file G4AdjointPrimaryGeneratorAction.hh.
|
private |
Definition at line 154 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetEmax().
|
private |
Definition at line 156 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetEmax(), and SetEmaxIon().
|
private |
Definition at line 153 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetEmin().
|
private |
Definition at line 155 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetEmin(), and SetEminIon().
|
private |
Definition at line 179 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 166 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and GetLastGeneratedFwdPrimaryParticle().
|
private |
Definition at line 181 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GetPrimaryIonName(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 162 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), GetNbOfAdjointPrimaryTypes(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 161 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), GetLastGeneratedFwdPrimaryParticle(), GetListOfPrimaryFwdParticles(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 175 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetNbAdjointPrimaryElectronsPerEvent().
|
private |
Definition at line 174 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetNbAdjointPrimaryGammasPerEvent().
|
private |
Definition at line 173 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and SetNbPrimaryFwdGammasPerEvent().
|
private |
Definition at line 168 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 168 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
Definition at line 163 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by ConsiderParticleAsPrimary(), G4AdjointPrimaryGeneratorAction(), NeglectParticleAsPrimary(), and UpdateListOfPrimaryParticles().
|
private |
Definition at line 171 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetSphericalAdjointPrimarySource().
|
private |
Definition at line 146 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetRndmFlag().
|
private |
Definition at line 149 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), SetSphericalAdjointPrimarySource(), and ~G4AdjointPrimaryGeneratorAction().
|
private |
Definition at line 170 of file G4AdjointPrimaryGeneratorAction.hh.
Referenced by SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), and SetSphericalAdjointPrimarySource().