Geant4  10.01
G4AdjointPrimaryGeneratorAction Class Reference

#include <G4AdjointPrimaryGeneratorAction.hh>

+ Inheritance diagram for G4AdjointPrimaryGeneratorAction:
+ Collaboration diagram for G4AdjointPrimaryGeneratorAction:

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 G4StringGetPrimaryIonName ()
 
void SetNbPrimaryFwdGammasPerEvent (G4int nb)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Member Functions

G4double ComputeEnergyDistWeight (G4double energy, G4double E1, G4double E2)
 
 G4AdjointPrimaryGeneratorAction (const G4AdjointPrimaryGeneratorAction &)
 
G4AdjointPrimaryGeneratorActionoperator= (const G4AdjointPrimaryGeneratorAction &)
 

Private Attributes

G4String rndmFlag
 
G4AdjointPrimaryGeneratortheAdjointPrimaryGenerator
 
G4double Emin
 
G4double Emax
 
G4double EminIon
 
G4double EmaxIon
 
std::vector
< G4ParticleDefinition * > 
ListOfPrimaryFwdParticles
 
std::vector
< G4ParticleDefinition * > 
ListOfPrimaryAdjParticles
 
std::map< G4String, G4boolPrimariesConsideredInAdjointSim
 
size_t index_particle
 
G4ThreeVector pos
 
G4ThreeVector direction
 
G4ThreeVector p
 
G4String type_of_adjoint_source
 
G4double radius_spherical_source
 
G4ThreeVector center_spherical_source
 
G4int nb_fwd_gammas_per_event
 
G4ParticleDefinitionfwd_ion
 
G4ParticleDefinitionadj_ion
 
G4String ion_name
 

Detailed Description

Definition at line 78 of file G4AdjointPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

G4AdjointPrimaryGeneratorAction::G4AdjointPrimaryGeneratorAction ( )
G4AdjointPrimaryGeneratorAction::~G4AdjointPrimaryGeneratorAction ( )

Definition at line 68 of file G4AdjointPrimaryGeneratorAction.cc.

References theAdjointPrimaryGenerator.

G4AdjointPrimaryGeneratorAction::G4AdjointPrimaryGeneratorAction ( const G4AdjointPrimaryGeneratorAction )
private

Member Function Documentation

G4double G4AdjointPrimaryGeneratorAction::ComputeEnergyDistWeight ( G4double  energy,
G4double  E1,
G4double  E2 
)
private

Definition at line 245 of file G4AdjointPrimaryGeneratorAction.cc.

References G4AdjointSimManager::GetInstance(), and G4AdjointSimManager::GetNbEvtOfLastRun().

Referenced by GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::ConsiderParticleAsPrimary ( const G4String particle_name)

Definition at line 281 of file G4AdjointPrimaryGeneratorAction.cc.

References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().

Referenced by G4AdjointSimManager::ConsiderParticleAsPrimary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector<G4ParticleDefinition*>* G4AdjointPrimaryGeneratorAction::GetListOfPrimaryFwdParticles ( )
inline

Definition at line 100 of file G4AdjointPrimaryGeneratorAction.hh.

References ListOfPrimaryFwdParticles.

Referenced by G4AdjointSimManager::G4AdjointSimManager(), G4AdjointSimManager::GetListOfPrimaryFwdParticles(), G4AdjointSimManager::GetNbOfPrimaryFwdParticles(), and G4AdjointSimManager::RegisterAtEndOfAdjointTrack().

+ Here is the caller graph for this function:

size_t G4AdjointPrimaryGeneratorAction::GetNbOfAdjointPrimaryTypes ( )
inline

Definition at line 99 of file G4AdjointPrimaryGeneratorAction.hh.

References ListOfPrimaryAdjParticles.

Referenced by G4AdjointSimManager::RunAdjointSimulation().

+ Here is the caller graph for this function:

const G4String& G4AdjointPrimaryGeneratorAction::GetPrimaryIonName ( )
inline

Definition at line 102 of file G4AdjointPrimaryGeneratorAction.hh.

References ion_name.

Referenced by G4AdjointSimManager::GetPrimaryIonName().

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::NeglectParticleAsPrimary ( const G4String particle_name)

Definition at line 290 of file G4AdjointPrimaryGeneratorAction.cc.

References PrimariesConsideredInAdjointSim, and UpdateListOfPrimaryParticles().

Referenced by G4AdjointSimManager::NeglectParticleAsPrimary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4AdjointPrimaryGeneratorAction& G4AdjointPrimaryGeneratorAction::operator= ( const G4AdjointPrimaryGeneratorAction )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::SetEmax ( G4double  val)

Definition at line 226 of file G4AdjointPrimaryGeneratorAction.cc.

References Emax, and EmaxIon.

Referenced by G4AdjointSimManager::SetAdjointSourceEmax().

+ Here is the caller graph for this function:

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.

References Emin, and EminIon.

Referenced by G4AdjointSimManager::SetAdjointSourceEmin().

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::SetEminIon ( G4double  val)

Definition at line 233 of file G4AdjointPrimaryGeneratorAction.cc.

References EminIon.

void G4AdjointPrimaryGeneratorAction::SetNbPrimaryFwdGammasPerEvent ( G4int  nb)
inline

Definition at line 103 of file G4AdjointPrimaryGeneratorAction.hh.

References nb_fwd_gammas_per_event.

Referenced by G4AdjointSimManager::SetNbOfPrimaryFwdGammasPerEvent().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::SetRndmFlag ( const G4String val)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4ParticleDefinition* G4AdjointPrimaryGeneratorAction::adj_ion
private
G4ThreeVector G4AdjointPrimaryGeneratorAction::center_spherical_source
private
G4ThreeVector G4AdjointPrimaryGeneratorAction::direction
private

Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.

G4double G4AdjointPrimaryGeneratorAction::Emax
private

Definition at line 119 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), and SetEmax().

G4double G4AdjointPrimaryGeneratorAction::EmaxIon
private

Definition at line 121 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), SetEmax(), and SetEmaxIon().

G4double G4AdjointPrimaryGeneratorAction::Emin
private

Definition at line 118 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), and SetEmin().

G4double G4AdjointPrimaryGeneratorAction::EminIon
private

Definition at line 120 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), SetEmin(), and SetEminIon().

G4ParticleDefinition* G4AdjointPrimaryGeneratorAction::fwd_ion
private
size_t G4AdjointPrimaryGeneratorAction::index_particle
private

Definition at line 130 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4String G4AdjointPrimaryGeneratorAction::ion_name
private
std::vector<G4ParticleDefinition*> G4AdjointPrimaryGeneratorAction::ListOfPrimaryAdjParticles
private
std::vector<G4ParticleDefinition*> G4AdjointPrimaryGeneratorAction::ListOfPrimaryFwdParticles
private
G4int G4AdjointPrimaryGeneratorAction::nb_fwd_gammas_per_event
private
G4ThreeVector G4AdjointPrimaryGeneratorAction::p
private

Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4ThreeVector G4AdjointPrimaryGeneratorAction::pos
private

Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

std::map<G4String, G4bool> G4AdjointPrimaryGeneratorAction::PrimariesConsideredInAdjointSim
private
G4double G4AdjointPrimaryGeneratorAction::radius_spherical_source
private
G4String G4AdjointPrimaryGeneratorAction::rndmFlag
private

Definition at line 111 of file G4AdjointPrimaryGeneratorAction.hh.

Referenced by SetRndmFlag().

G4String G4AdjointPrimaryGeneratorAction::type_of_adjoint_source
private

The documentation for this class was generated from the following files: