Geant4  10.02
G4AdjointSimManager Class Reference

#include <G4AdjointSimManager.hh>

+ Inheritance diagram for G4AdjointSimManager:
+ Collaboration diagram for G4AdjointSimManager:

Public Member Functions

virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void EndOfRunAction (const G4Run *aRun)
 
void RunAdjointSimulation (G4int nb_evt)
 
G4int GetNbEvtOfLastRun ()
 
void SetAdjointTrackingMode (G4bool aBool)
 
G4bool GetAdjointTrackingMode ()
 
G4bool GetAdjointSimMode ()
 
G4bool GetDidAdjParticleReachTheExtSource ()
 
void RegisterAtEndOfAdjointTrack ()
 
void RegisterAdjointPrimaryWeight (G4double aWeight)
 
G4int GetIDOfLastAdjParticleReachingExtSource ()
 
G4ThreeVector GetPositionAtEndOfLastAdjointTrack ()
 
G4ThreeVector GetDirectionAtEndOfLastAdjointTrack ()
 
G4double GetEkinAtEndOfLastAdjointTrack ()
 
G4double GetEkinNucAtEndOfLastAdjointTrack ()
 
G4double GetWeightAtEndOfLastAdjointTrack ()
 
G4double GetCosthAtEndOfLastAdjointTrack ()
 
const G4StringGetFwdParticleNameAtEndOfLastAdjointTrack ()
 
G4int GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack ()
 
G4int GetFwdParticleIndexAtEndOfLastAdjointTrack ()
 
std::vector
< G4ParticleDefinition * > * 
GetListOfPrimaryFwdParticles ()
 
size_t GetNbOfPrimaryFwdParticles ()
 
G4bool DefineSphericalExtSource (G4double radius, G4ThreeVector pos)
 
G4bool DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume (G4double radius, const G4String &volume_name)
 
G4bool DefineExtSourceOnTheExtSurfaceOfAVolume (const G4String &volume_name)
 
void SetExtSourceEmax (G4double Emax)
 
G4bool DefineSphericalAdjointSource (G4double radius, G4ThreeVector pos)
 
G4bool DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume (G4double radius, const G4String &volume_name)
 
G4bool DefineAdjointSourceOnTheExtSurfaceOfAVolume (const G4String &volume_name)
 
void SetAdjointSourceEmin (G4double Emin)
 
void SetAdjointSourceEmax (G4double Emax)
 
G4double GetAdjointSourceArea ()
 
void ConsiderParticleAsPrimary (const G4String &particle_name)
 
void NeglectParticleAsPrimary (const G4String &particle_name)
 
void SetPrimaryIon (G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon)
 
const G4StringGetPrimaryIonName ()
 
void SetNormalisationMode (G4int n)
 
G4int GetNormalisationMode ()
 
G4double GetNumberNucleonsInIon ()
 
void SetAdjointEventAction (G4UserEventAction *anAction)
 
void SetAdjointSteppingAction (G4UserSteppingAction *anAction)
 
void SetAdjointStackingAction (G4UserStackingAction *anAction)
 
void SetAdjointRunAction (G4UserRunAction *anAction)
 
void UseUserStackingActionInFwdTrackingPhase (G4bool aBool)
 
void UseUserTrackingActionInFwdTrackingPhase (G4bool aBool)
 
void SetNbOfPrimaryFwdGammasPerEvent (G4int)
 
void SwitchToAdjointSimulationMode ()
 
void BackToFwdSimulationMode ()
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Static Public Member Functions

static G4AdjointSimManagerGetInstance ()
 

Private Member Functions

void SetRestOfAdjointActions ()
 
void SetAdjointPrimaryRunAndStackingActions ()
 
void SetAdjointActions ()
 
void ResetRestOfUserActions ()
 
void ResetUserPrimaryRunAndStackingActions ()
 
void ResetUserActions ()
 
void DefineUserActions ()
 
 G4AdjointSimManager ()
 
 ~G4AdjointSimManager ()
 

Private Attributes

G4AdjointSimMessengertheMessenger
 
bool user_action_already_defined
 
G4UserRunActionfUserRunAction
 
G4UserEventActionfUserEventAction
 
G4VUserPrimaryGeneratorActionfUserPrimaryGeneratorAction
 
G4UserTrackingActionfUserTrackingAction
 
G4UserSteppingActionfUserSteppingAction
 
G4UserStackingActionfUserStackingAction
 
bool use_user_StackingAction
 
bool use_user_TrackingAction
 
G4UserRunActiontheAdjointRunAction
 
G4UserEventActiontheAdjointEventAction
 
G4AdjointPrimaryGeneratorActiontheAdjointPrimaryGeneratorAction
 
G4AdjointTrackingActiontheAdjointTrackingAction
 
G4AdjointSteppingActiontheAdjointSteppingAction
 
G4AdjointStackingActiontheAdjointStackingAction
 
G4bool adjoint_tracking_mode
 
G4bool adjoint_sim_mode
 
G4ThreeVector last_pos
 
G4ThreeVector last_direction
 
G4double last_ekin
 
G4double last_ekin_nuc
 
G4double last_cos_th
 
G4String last_fwd_part_name
 
G4int last_fwd_part_PDGEncoding
 
G4int last_fwd_part_index
 
G4double last_weight
 
G4int ID_of_last_particle_that_reach_the_ext_source
 
G4int nb_evt_of_last_run
 
G4int normalisation_mode
 
G4double area_of_the_adjoint_source
 
G4double nb_nuc
 
G4double theAdjointPrimaryWeight
 
G4bool welcome_message
 

Static Private Attributes

static G4ThreadLocal
G4AdjointSimManager
instance = 0
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 150 of file G4AdjointSimManager.hh.

Constructor & Destructor Documentation

G4AdjointSimManager::G4AdjointSimManager ( )
private

Definition at line 70 of file G4AdjointSimManager.cc.

References adjoint_sim_mode, DefineUserActions(), G4AdjointPrimaryGeneratorAction::GetListOfPrimaryFwdParticles(), G4RunManager::GetRunManager(), nb_nuc, normalisation_mode, G4AdjointTrackingAction::SetListOfPrimaryFwdParticles(), theAdjointPrimaryGeneratorAction, theAdjointStackingAction, theAdjointSteppingAction, theAdjointTrackingAction, theMessenger, use_user_StackingAction, use_user_TrackingAction, user_action_already_defined, and welcome_message.

Referenced by GetInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

void G4AdjointSimManager::BackToFwdSimulationMode ( )

Definition at line 221 of file G4AdjointSimManager.cc.

References adjoint_sim_mode, and ResetUserActions().

Referenced by RunAdjointSimulation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 620 of file G4AdjointSimManager.cc.

References adjoint_sim_mode, G4UserRunAction::BeginOfRunAction(), fUserRunAction, and theAdjointRunAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::ConsiderParticleAsPrimary ( const G4String particle_name)

Definition at line 550 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::ConsiderParticleAsPrimary(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointPhysicsList::ConstructEM(), and G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::DefineAdjointSourceOnTheExtSurfaceOfAVolume ( const G4String volume_name)

Definition at line 526 of file G4AdjointSimManager.cc.

References G4AdjointCrossSurfChecker::AddanExtSurfaceOfAvolume(), area_of_the_adjoint_source, G4AdjointCrossSurfChecker::GetInstance(), G4AdjointPrimaryGeneratorAction::SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::DefineExtSourceOnTheExtSurfaceOfAVolume ( const G4String volume_name)

Definition at line 492 of file G4AdjointSimManager.cc.

References G4AdjointCrossSurfChecker::AddanExtSurfaceOfAvolume(), and G4AdjointCrossSurfChecker::GetInstance().

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::DefineSphericalAdjointSource ( G4double  radius,
G4ThreeVector  pos 
)

Definition at line 505 of file G4AdjointSimManager.cc.

References G4AdjointCrossSurfChecker::AddaSphericalSurface(), area_of_the_adjoint_source, G4AdjointCrossSurfChecker::GetInstance(), G4AdjointPrimaryGeneratorAction::SetSphericalAdjointPrimarySource(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume ( G4double  radius,
const G4String volume_name 
)

Definition at line 515 of file G4AdjointSimManager.cc.

References G4AdjointCrossSurfChecker::AddaSphericalSurfaceWithCenterAtTheCenterOfAVolume(), area_of_the_adjoint_source, G4AdjointCrossSurfChecker::GetInstance(), G4AdjointPrimaryGeneratorAction::SetSphericalAdjointPrimarySource(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::DefineSphericalExtSource ( G4double  radius,
G4ThreeVector  pos 
)

Definition at line 477 of file G4AdjointSimManager.cc.

References G4AdjointCrossSurfChecker::AddaSphericalSurface(), and G4AdjointCrossSurfChecker::GetInstance().

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume ( G4double  radius,
const G4String volume_name 
)

Definition at line 484 of file G4AdjointSimManager.cc.

References G4AdjointCrossSurfChecker::AddaSphericalSurfaceWithCenterAtTheCenterOfAVolume(), and G4AdjointCrossSurfChecker::GetInstance().

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::DefineUserActions ( )
private
void G4AdjointSimManager::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 632 of file G4AdjointSimManager.cc.

References adjoint_sim_mode, G4UserRunAction::EndOfRunAction(), fUserRunAction, and theAdjointRunAction.

+ Here is the call graph for this function:

G4bool G4AdjointSimManager::GetAdjointSimMode ( )
inline

Definition at line 166 of file G4AdjointSimManager.hh.

References adjoint_sim_mode.

Referenced by RMC01AnalysisManager::BeginOfRun().

+ Here is the caller graph for this function:

G4double G4AdjointSimManager::GetAdjointSourceArea ( )
inline

Definition at line 199 of file G4AdjointSimManager.hh.

References area_of_the_adjoint_source.

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the caller graph for this function:

G4bool G4AdjointSimManager::GetAdjointTrackingMode ( )

Definition at line 322 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetIsAdjointTrackingMode(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetCosthAtEndOfLastAdjointTrack ( )

Definition at line 395 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetCosthAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4bool G4AdjointSimManager::GetDidAdjParticleReachTheExtSource ( )

Definition at line 350 of file G4AdjointSimManager.cc.

References G4AdjointSteppingAction::GetDidAdjParticleReachTheExtSource(), and theAdjointSteppingAction.

Referenced by SetAdjointTrackingMode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4AdjointSimManager::GetDirectionAtEndOfLastAdjointTrack ( )

Definition at line 375 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetDirectionAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetEkinAtEndOfLastAdjointTrack ( )

Definition at line 380 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetEkinAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

Referenced by RMC01AnalysisManager::EndOfEventForAdjointSimulation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4AdjointSimManager::GetEkinNucAtEndOfLastAdjointTrack ( )

Definition at line 385 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetEkinNucAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetFwdParticleIndexAtEndOfLastAdjointTrack ( )

Definition at line 411 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetLastFwdParticleIndex(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

const G4String & G4AdjointSimManager::GetFwdParticleNameAtEndOfLastAdjointTrack ( )

Definition at line 400 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetFwdParticleNameAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack ( )

Definition at line 405 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

Referenced by RMC01AnalysisManager::EndOfEventForAdjointSimulation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4AdjointSimManager::GetIDOfLastAdjParticleReachingExtSource ( )
inline
G4AdjointSimManager * G4AdjointSimManager::GetInstance ( void  )
static

Definition at line 134 of file G4AdjointSimManager.cc.

References G4AdjointSimManager(), and instance.

Referenced by RMC01AnalysisManager::BeginOfRun(), G4AdjointPrimaryGeneratorAction::ComputeEnergyDistWeight(), RMC01AnalysisManager::ComputeMeanEdepAndError(), G4AdjointPhysicsList::ConstructEM(), RMC01AnalysisManager::EndOfEventForAdjointSimulation(), RMC01AnalysisManager::EndOfRun(), G4AdjointPrimaryGeneratorAction::GeneratePrimaries(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< G4ParticleDefinition * > * G4AdjointSimManager::GetListOfPrimaryFwdParticles ( )

Definition at line 356 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetListOfPrimaryFwdParticles(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetNbEvtOfLastRun ( )
inline

Definition at line 162 of file G4AdjointSimManager.hh.

References nb_evt_of_last_run.

Referenced by RMC01AnalysisManager::BeginOfRun(), G4AdjointPrimaryGeneratorAction::ComputeEnergyDistWeight(), RMC01AnalysisManager::ComputeMeanEdepAndError(), and RMC01AnalysisManager::EndOfRun().

+ Here is the caller graph for this function:

size_t G4AdjointSimManager::GetNbOfPrimaryFwdParticles ( )

Definition at line 362 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetListOfPrimaryFwdParticles(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetNormalisationMode ( )
inline

Definition at line 206 of file G4AdjointSimManager.hh.

References normalisation_mode.

G4double G4AdjointSimManager::GetNumberNucleonsInIon ( )
inline

Definition at line 207 of file G4AdjointSimManager.hh.

References nb_nuc.

G4ThreeVector G4AdjointSimManager::GetPositionAtEndOfLastAdjointTrack ( )

Definition at line 369 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetPositionAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

const G4String & G4AdjointSimManager::GetPrimaryIonName ( )

Definition at line 575 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetPrimaryIonName(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetWeightAtEndOfLastAdjointTrack ( )

Definition at line 390 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetWeightAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

Referenced by RMC01AnalysisManager::EndOfEventForAdjointSimulation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::NeglectParticleAsPrimary ( const G4String particle_name)

Definition at line 556 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::NeglectParticleAsPrimary(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::RegisterAdjointPrimaryWeight ( G4double  aWeight)

Definition at line 581 of file G4AdjointSimManager.cc.

References G4AdjointSteppingAction::SetPrimWeight(), theAdjointPrimaryWeight, and theAdjointSteppingAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::ResetRestOfUserActions ( )
private

Definition at line 283 of file G4AdjointSimManager.cc.

References fUserEventAction, fUserSteppingAction, fUserTrackingAction, and G4RunManager::GetRunManager().

Referenced by SetAdjointTrackingMode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::ResetUserActions ( )
private

Definition at line 268 of file G4AdjointSimManager.cc.

References fUserEventAction, fUserPrimaryGeneratorAction, fUserStackingAction, fUserSteppingAction, fUserTrackingAction, and G4RunManager::GetRunManager().

Referenced by BackToFwdSimulationMode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::ResetUserPrimaryRunAndStackingActions ( )
private

Definition at line 297 of file G4AdjointSimManager.cc.

References fUserPrimaryGeneratorAction, fUserRunAction, fUserStackingAction, and G4RunManager::GetRunManager().

+ Here is the call graph for this function:

void G4AdjointSimManager::RunAdjointSimulation ( G4int  nb_evt)

Definition at line 141 of file G4AdjointSimManager.cc.

References BackToFwdSimulationMode(), G4RunManager::BeamOn(), G4cout, G4AdjointPrimaryGeneratorAction::GetNbOfAdjointPrimaryTypes(), G4RunManager::GetRunManager(), nb_evt_of_last_run, G4RunManager::sequentialRM, SwitchToAdjointSimulationMode(), theAdjointPrimaryGeneratorAction, and welcome_message.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointActions ( )
private

Definition at line 230 of file G4AdjointSimManager.cc.

References DefineUserActions(), fUserStackingAction, fUserTrackingAction, G4RunManager::GetRunManager(), G4AdjointTrackingAction::SetUserForwardTrackingAction(), G4AdjointStackingAction::SetUserFwdStackingAction(), theAdjointEventAction, theAdjointPrimaryGeneratorAction, theAdjointStackingAction, theAdjointSteppingAction, theAdjointTrackingAction, use_user_StackingAction, use_user_TrackingAction, and user_action_already_defined.

Referenced by SwitchToAdjointSimulationMode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointEventAction ( G4UserEventAction anAction)

Definition at line 589 of file G4AdjointSimManager.cc.

References theAdjointEventAction.

Referenced by main().

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointPrimaryRunAndStackingActions ( )
private

Definition at line 251 of file G4AdjointSimManager.cc.

References DefineUserActions(), fUserStackingAction, G4RunManager::GetRunManager(), G4AdjointStackingAction::SetUserFwdStackingAction(), theAdjointPrimaryGeneratorAction, theAdjointRunAction, theAdjointStackingAction, use_user_StackingAction, and user_action_already_defined.

+ Here is the call graph for this function:

void G4AdjointSimManager::SetAdjointRunAction ( G4UserRunAction anAction)

Definition at line 608 of file G4AdjointSimManager.cc.

References theAdjointRunAction.

Referenced by main().

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointSourceEmax ( G4double  Emax)

Definition at line 544 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetEmax(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointSourceEmin ( G4double  Emin)

Definition at line 538 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetEmin(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointStackingAction ( G4UserStackingAction anAction)

Definition at line 601 of file G4AdjointSimManager.cc.

References G4AdjointStackingAction::SetUserAdjointStackingAction(), and theAdjointStackingAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::SetAdjointSteppingAction ( G4UserSteppingAction anAction)

Definition at line 595 of file G4AdjointSimManager.cc.

References G4AdjointSteppingAction::SetUserAdjointSteppingAction(), and theAdjointSteppingAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::SetAdjointTrackingMode ( G4bool  aBool)

Definition at line 327 of file G4AdjointSimManager.cc.

References adjoint_tracking_mode, GetDidAdjParticleReachTheExtSource(), RegisterAtEndOfAdjointTrack(), ResetRestOfUserActions(), G4AdjointStackingAction::SetAdjointMode(), G4AdjointStackingAction::SetKillTracks(), SetRestOfAdjointActions(), and theAdjointStackingAction.

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetExtSourceEmax ( G4double  Emax)

Definition at line 499 of file G4AdjointSimManager.cc.

References G4AdjointSteppingAction::SetExtSourceEMax(), and theAdjointSteppingAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetNbOfPrimaryFwdGammasPerEvent ( G4int  nb)

Definition at line 614 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetNbPrimaryFwdGammasPerEvent(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetNormalisationMode ( G4int  n)
inline

Definition at line 205 of file G4AdjointSimManager.hh.

References n, and normalisation_mode.

void G4AdjointSimManager::SetPrimaryIon ( G4ParticleDefinition adjointIon,
G4ParticleDefinition fwdIon 
)

Definition at line 569 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetPrimaryIon(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::SetRestOfAdjointActions ( )
private

Definition at line 192 of file G4AdjointSimManager.cc.

References DefineUserActions(), G4RunManager::GetRunManager(), theAdjointEventAction, theAdjointSteppingAction, theAdjointTrackingAction, and user_action_already_defined.

Referenced by SetAdjointTrackingMode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SwitchToAdjointSimulationMode ( )

Definition at line 208 of file G4AdjointSimManager.cc.

References adjoint_sim_mode, ID_of_last_particle_that_reach_the_ext_source, SetAdjointActions(), theAdjointPrimaryGeneratorAction, and G4AdjointPrimaryGeneratorAction::UpdateListOfPrimaryParticles().

Referenced by RunAdjointSimulation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::UseUserStackingActionInFwdTrackingPhase ( G4bool  aBool)
inline

Definition at line 218 of file G4AdjointSimManager.hh.

References use_user_StackingAction.

void G4AdjointSimManager::UseUserTrackingActionInFwdTrackingPhase ( G4bool  aBool)
inline

Definition at line 219 of file G4AdjointSimManager.hh.

References use_user_TrackingAction.

Member Data Documentation

G4bool G4AdjointSimManager::adjoint_sim_mode
private
G4bool G4AdjointSimManager::adjoint_tracking_mode
private

Definition at line 287 of file G4AdjointSimManager.hh.

Referenced by SetAdjointTrackingMode().

G4UserEventAction* G4AdjointSimManager::fUserEventAction
private
G4VUserPrimaryGeneratorAction* G4AdjointSimManager::fUserPrimaryGeneratorAction
private
G4UserRunAction* G4AdjointSimManager::fUserRunAction
private
G4UserSteppingAction* G4AdjointSimManager::fUserSteppingAction
private
G4UserTrackingAction* G4AdjointSimManager::fUserTrackingAction
private
G4int G4AdjointSimManager::ID_of_last_particle_that_reach_the_ext_source
private
G4ThreadLocal G4AdjointSimManager * G4AdjointSimManager::instance = 0
staticprivate

Definition at line 237 of file G4AdjointSimManager.hh.

Referenced by GetInstance().

G4double G4AdjointSimManager::last_cos_th
private

Definition at line 295 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreeVector G4AdjointSimManager::last_direction
private

Definition at line 293 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_ekin
private

Definition at line 294 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_ekin_nuc
private

Definition at line 294 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::last_fwd_part_index
private

Definition at line 298 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4String G4AdjointSimManager::last_fwd_part_name
private

Definition at line 296 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::last_fwd_part_PDGEncoding
private

Definition at line 297 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreeVector G4AdjointSimManager::last_pos
private

Definition at line 292 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_weight
private

Definition at line 299 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::nb_evt_of_last_run
private

Definition at line 302 of file G4AdjointSimManager.hh.

Referenced by GetNbEvtOfLastRun(), and RunAdjointSimulation().

G4double G4AdjointSimManager::nb_nuc
private
G4int G4AdjointSimManager::normalisation_mode
private
G4UserEventAction* G4AdjointSimManager::theAdjointEventAction
private
G4double G4AdjointSimManager::theAdjointPrimaryWeight
private

Definition at line 309 of file G4AdjointSimManager.hh.

Referenced by RegisterAdjointPrimaryWeight().

G4UserRunAction* G4AdjointSimManager::theAdjointRunAction
private
G4AdjointSimMessenger* G4AdjointSimManager::theMessenger
private

Definition at line 262 of file G4AdjointSimManager.hh.

Referenced by G4AdjointSimManager(), and ~G4AdjointSimManager().

bool G4AdjointSimManager::use_user_StackingAction
private
bool G4AdjointSimManager::use_user_TrackingAction
private
bool G4AdjointSimManager::user_action_already_defined
private
G4bool G4AdjointSimManager::welcome_message
private

Definition at line 317 of file G4AdjointSimManager.hh.

Referenced by G4AdjointSimManager(), and RunAdjointSimulation().


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