ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4AdjointPrimaryGeneratorAction Class Reference

#include <geant4/tree/geant4-10.6-release/source/run/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)
 
void SetNbAdjointPrimaryGammasPerEvent (G4int nb)
 
void SetNbAdjointPrimaryElectronsPerEvent (G4int nb)
 
G4ParticleDefinitionGetLastGeneratedFwdPrimaryParticle ()
 
- 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
 
G4int nb_adj_primary_gammas_per_event
 
G4int nb_adj_primary_electrons_per_event
 
G4ParticleDefinitionfwd_ion
 
G4ParticleDefinitionadj_ion
 
G4String ion_name
 

Detailed Description

Definition at line 77 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 77 of file G4AdjointPrimaryGeneratorAction.hh

Constructor & Destructor Documentation

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

Definition at line 70 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 70 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 276 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 276 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 312 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 312 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:

G4ParticleDefinition* G4AdjointPrimaryGeneratorAction::GetLastGeneratedFwdPrimaryParticle ( )
inline

Definition at line 105 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 105 of file G4AdjointPrimaryGeneratorAction.hh

References index_particle, and ListOfPrimaryFwdParticles.

Referenced by G4AdjointSimManager::GetLastGeneratedFwdPrimaryParticle().

+ Here is the caller graph for this function:

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

Definition at line 99 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 99 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 98 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 98 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 101 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 101 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 321 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 321 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 305 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 305 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 257 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 257 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 270 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 270 of file G4AdjointPrimaryGeneratorAction.cc

References EmaxIon.

void G4AdjointPrimaryGeneratorAction::SetEmin ( G4double  val)

Definition at line 250 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 250 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 264 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 264 of file G4AdjointPrimaryGeneratorAction.cc

References EminIon.

void G4AdjointPrimaryGeneratorAction::SetNbAdjointPrimaryElectronsPerEvent ( G4int  nb)
inline

Definition at line 104 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 104 of file G4AdjointPrimaryGeneratorAction.hh

References nb_adj_primary_electrons_per_event.

Referenced by G4AdjointSimManager::SetNbAdjointPrimaryElectronsPerEvent().

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::SetNbAdjointPrimaryGammasPerEvent ( G4int  nb)
inline

Definition at line 103 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 103 of file G4AdjointPrimaryGeneratorAction.hh

References nb_adj_primary_gammas_per_event.

Referenced by G4AdjointSimManager::SetNbAdjointPrimaryGammasPerEvent().

+ Here is the caller graph for this function:

void G4AdjointPrimaryGeneratorAction::SetNbPrimaryFwdGammasPerEvent ( G4int  nb)
inline

Definition at line 102 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 102 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 370 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 370 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 87 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 87 of file G4AdjointPrimaryGeneratorAction.hh

References rndmFlag.

void G4AdjointPrimaryGeneratorAction::SetSphericalAdjointPrimarySource ( G4double  radius,
G4ThreeVector  pos 
)

Definition at line 296 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 296 of file G4AdjointPrimaryGeneratorAction.cc

References center_spherical_source, radius, 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 330 of file G4AdjointPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 330 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4ParticleDefinition* G4AdjointPrimaryGeneratorAction::adj_ion
private

Definition at line 146 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 146 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().

G4ThreeVector G4AdjointPrimaryGeneratorAction::center_spherical_source
private

Definition at line 138 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 138 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by SetSphericalAdjointPrimarySource().

G4ThreeVector G4AdjointPrimaryGeneratorAction::direction
private

Definition at line 134 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 134 of file G4AdjointPrimaryGeneratorAction.hh

G4double G4AdjointPrimaryGeneratorAction::Emax
private

Definition at line 121 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 121 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by GeneratePrimaries(), and SetEmax().

G4double G4AdjointPrimaryGeneratorAction::EmaxIon
private

Definition at line 123 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 123 of file G4AdjointPrimaryGeneratorAction.hh

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

G4double G4AdjointPrimaryGeneratorAction::Emin
private

Definition at line 120 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 120 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by GeneratePrimaries(), and SetEmin().

G4double G4AdjointPrimaryGeneratorAction::EminIon
private

Definition at line 122 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 122 of file G4AdjointPrimaryGeneratorAction.hh

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

G4ParticleDefinition* G4AdjointPrimaryGeneratorAction::fwd_ion
private

Definition at line 145 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 145 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by SetPrimaryIon(), and UpdateListOfPrimaryParticles().

size_t G4AdjointPrimaryGeneratorAction::index_particle
private

Definition at line 132 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 132 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by GeneratePrimaries(), and GetLastGeneratedFwdPrimaryParticle().

G4String G4AdjointPrimaryGeneratorAction::ion_name
private

Definition at line 147 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 147 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by GetPrimaryIonName(), and UpdateListOfPrimaryParticles().

std::vector<G4ParticleDefinition*> G4AdjointPrimaryGeneratorAction::ListOfPrimaryAdjParticles
private
std::vector<G4ParticleDefinition*> G4AdjointPrimaryGeneratorAction::ListOfPrimaryFwdParticles
private
G4int G4AdjointPrimaryGeneratorAction::nb_adj_primary_electrons_per_event
private

Definition at line 141 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 141 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), and SetNbAdjointPrimaryElectronsPerEvent().

G4int G4AdjointPrimaryGeneratorAction::nb_adj_primary_gammas_per_event
private

Definition at line 140 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 140 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), and SetNbAdjointPrimaryGammasPerEvent().

G4int G4AdjointPrimaryGeneratorAction::nb_fwd_gammas_per_event
private

Definition at line 139 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 139 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by G4AdjointPrimaryGeneratorAction(), GeneratePrimaries(), and SetNbPrimaryFwdGammasPerEvent().

G4ThreeVector G4AdjointPrimaryGeneratorAction::p
private

Definition at line 134 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 134 of file G4AdjointPrimaryGeneratorAction.hh

G4ThreeVector G4AdjointPrimaryGeneratorAction::pos
private

Definition at line 134 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 134 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by GeneratePrimaries().

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

Definition at line 137 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 137 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by SetSphericalAdjointPrimarySource().

G4String G4AdjointPrimaryGeneratorAction::rndmFlag
private

Definition at line 113 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 113 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by SetRndmFlag().

G4AdjointPrimaryGenerator* G4AdjointPrimaryGeneratorAction::theAdjointPrimaryGenerator
private
G4String G4AdjointPrimaryGeneratorAction::type_of_adjoint_source
private

Definition at line 136 of file G4AdjointPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 136 of file G4AdjointPrimaryGeneratorAction.hh

Referenced by SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), and SetSphericalAdjointPrimarySource().


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