Geant4  10.03
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 (size_t i=0)
 
G4ThreeVector GetDirectionAtEndOfLastAdjointTrack (size_t i=0)
 
G4double GetEkinAtEndOfLastAdjointTrack (size_t i=0)
 
G4double GetEkinNucAtEndOfLastAdjointTrack (size_t i=0)
 
G4double GetWeightAtEndOfLastAdjointTrack (size_t i=0)
 
G4double GetCosthAtEndOfLastAdjointTrack (size_t i=0)
 
const G4StringGetFwdParticleNameAtEndOfLastAdjointTrack ()
 
G4int GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack (size_t i=0)
 
G4int GetFwdParticleIndexAtEndOfLastAdjointTrack (size_t i=0)
 
size_t GetNbOfAdointTracksReachingTheExternalSurface ()
 
void ClearEndOfAdjointTrackInfoVectors ()
 
G4ParticleDefinitionGetLastGeneratedFwdPrimaryParticle ()
 
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 SetNbAdjointPrimaryGammasPerEvent (G4int)
 
void SetNbAdjointPrimaryElectronsPerEvent (G4int)
 
void SwitchToAdjointSimulationMode ()
 
void BackToFwdSimulationMode ()
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual 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
 
std::vector< G4ThreeVectorlast_pos_vec
 
std::vector< G4ThreeVectorlast_direction_vec
 
std::vector< G4doublelast_ekin_vec
 
std::vector< G4doublelast_ekin_nuc_vec
 
std::vector< G4doublelast_cos_th_vec
 
std::vector< G4doublelast_weight_vec
 
std::vector< G4intlast_fwd_part_PDGEncoding_vec
 
std::vector< G4intlast_fwd_part_index_vec
 
std::vector< G4intID_of_last_particle_that_reach_the_ext_source_vec
 
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, G4AdjointPrimaryGeneratorAction::GetListOfPrimaryFwdParticles(), 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 663 of file G4AdjointSimManager.cc.

References G4UserRunAction::BeginOfRunAction(), and fUserRunAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::ClearEndOfAdjointTrackInfoVectors ( )

Definition at line 424 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::ClearEndOfAdjointTrackInfoVectors(), and theAdjointTrackingAction.

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::ConsiderParticleAsPrimary ( const G4String particle_name)

Definition at line 581 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 557 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 523 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 536 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 546 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 508 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 515 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 677 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 205 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 323 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetIsAdjointTrackingMode(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetCosthAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 397 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetCosthAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4bool G4AdjointSimManager::GetDidAdjParticleReachTheExtSource ( )

Definition at line 351 of file G4AdjointSimManager.cc.

References GetNbOfAdointTracksReachingTheExternalSurface().

Referenced by SetAdjointTrackingMode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4AdjointSimManager::GetDirectionAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 377 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetDirectionAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetEkinAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 382 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 ( size_t  i = 0)

Definition at line 387 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetEkinNucAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetFwdParticleIndexAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 413 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetLastFwdParticleIndex(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

const G4String & G4AdjointSimManager::GetFwdParticleNameAtEndOfLastAdjointTrack ( )

Definition at line 402 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetFwdParticleNameAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 407 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:

G4ParticleDefinition * G4AdjointSimManager::GetLastGeneratedFwdPrimaryParticle ( )

Definition at line 693 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetLastGeneratedFwdPrimaryParticle(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

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

Definition at line 358 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::GetNbOfAdointTracksReachingTheExternalSurface ( )

Definition at line 418 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetNbOfAdointTracksReachingTheExternalSurface(), and theAdjointTrackingAction.

Referenced by RMC01AnalysisManager::EndOfEventForAdjointSimulation(), and GetDidAdjParticleReachTheExtSource().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

size_t G4AdjointSimManager::GetNbOfPrimaryFwdParticles ( )

Definition at line 364 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetListOfPrimaryFwdParticles(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetNormalisationMode ( )
inline

Definition at line 212 of file G4AdjointSimManager.hh.

References normalisation_mode.

G4double G4AdjointSimManager::GetNumberNucleonsInIon ( )
inline

Definition at line 213 of file G4AdjointSimManager.hh.

References nb_nuc.

G4ThreeVector G4AdjointSimManager::GetPositionAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 371 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetPositionAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

const G4String & G4AdjointSimManager::GetPrimaryIonName ( )

Definition at line 606 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetPrimaryIonName(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetWeightAtEndOfLastAdjointTrack ( size_t  i = 0)

Definition at line 392 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 587 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 612 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 284 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 269 of file G4AdjointSimManager.cc.

References fUserEventAction, fUserPrimaryGeneratorAction, fUserRunAction, 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 298 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 620 of file G4AdjointSimManager.cc.

References theAdjointEventAction.

Referenced by main().

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointPrimaryRunAndStackingActions ( )
private

Definition at line 252 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 639 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 575 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 569 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 632 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 626 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 328 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 530 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::SetNbAdjointPrimaryElectronsPerEvent ( G4int  nb)

Definition at line 657 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetNbAdjointPrimaryElectronsPerEvent(), and theAdjointPrimaryGeneratorAction.

Referenced by G4AdjointSimMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetNbAdjointPrimaryGammasPerEvent ( G4int  nb)

Definition at line 651 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetNbAdjointPrimaryGammasPerEvent(), and theAdjointPrimaryGeneratorAction.

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 645 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 211 of file G4AdjointSimManager.hh.

References n, and normalisation_mode.

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

Definition at line 600 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 224 of file G4AdjointSimManager.hh.

References use_user_StackingAction.

void G4AdjointSimManager::UseUserTrackingActionInFwdTrackingPhase ( G4bool  aBool)
inline

Definition at line 225 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 299 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
std::vector<G4int> G4AdjointSimManager::ID_of_last_particle_that_reach_the_ext_source_vec
private

Definition at line 312 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreadLocal G4AdjointSimManager * G4AdjointSimManager::instance = 0
staticprivate

Definition at line 249 of file G4AdjointSimManager.hh.

Referenced by GetInstance().

G4double G4AdjointSimManager::last_cos_th
private

Definition at line 320 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4double> G4AdjointSimManager::last_cos_th_vec
private

Definition at line 308 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreeVector G4AdjointSimManager::last_direction
private

Definition at line 318 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4ThreeVector> G4AdjointSimManager::last_direction_vec
private

Definition at line 305 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_ekin
private

Definition at line 319 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_ekin_nuc
private

Definition at line 319 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4double> G4AdjointSimManager::last_ekin_nuc_vec
private

Definition at line 307 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4double> G4AdjointSimManager::last_ekin_vec
private

Definition at line 306 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::last_fwd_part_index
private

Definition at line 323 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4int> G4AdjointSimManager::last_fwd_part_index_vec
private

Definition at line 311 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4String G4AdjointSimManager::last_fwd_part_name
private

Definition at line 321 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::last_fwd_part_PDGEncoding
private

Definition at line 322 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4int> G4AdjointSimManager::last_fwd_part_PDGEncoding_vec
private

Definition at line 310 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreeVector G4AdjointSimManager::last_pos
private

Definition at line 317 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4ThreeVector> G4AdjointSimManager::last_pos_vec
private

Definition at line 304 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_weight
private

Definition at line 324 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

std::vector<G4double> G4AdjointSimManager::last_weight_vec
private

Definition at line 309 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::nb_evt_of_last_run
private

Definition at line 327 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 334 of file G4AdjointSimManager.hh.

Referenced by RegisterAdjointPrimaryWeight().

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

Definition at line 274 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 342 of file G4AdjointSimManager.hh.

Referenced by G4AdjointSimManager(), and RunAdjointSimulation().


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