Geant4  10.00.p03
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 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
 
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(), G4cout, G4RunManager::GetRunManager(), nb_nuc, normalisation_mode, G4RunManager::SetUserAction(), theAdjointPrimaryGeneratorAction, theAdjointStackingAction, theAdjointSteppingAction, theAdjointTrackingAction, theMessenger, use_user_StackingAction, 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 216 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 598 of file G4AdjointSimManager.cc.

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

+ Here is the call graph for this function:

void G4AdjointSimManager::ConsiderParticleAsPrimary ( const G4String particle_name)

Definition at line 532 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 508 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 474 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 487 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 497 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 459 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 466 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 611 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 ( )
inline

Definition at line 165 of file G4AdjointSimManager.hh.

References adjoint_tracking_mode.

G4double G4AdjointSimManager::GetCosthAtEndOfLastAdjointTrack ( )

Definition at line 383 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetCosthAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4bool G4AdjointSimManager::GetDidAdjParticleReachTheExtSource ( )

Definition at line 338 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 363 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetDirectionAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetEkinAtEndOfLastAdjointTrack ( )

Definition at line 368 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 373 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetEkinNucAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetFwdParticleIndexAtEndOfLastAdjointTrack ( )
inline

Definition at line 181 of file G4AdjointSimManager.hh.

References last_fwd_part_index.

const G4String & G4AdjointSimManager::GetFwdParticleNameAtEndOfLastAdjointTrack ( )

Definition at line 388 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetFwdParticleNameAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

G4int G4AdjointSimManager::GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack ( )

Definition at line 393 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 129 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 344 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 350 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 357 of file G4AdjointSimManager.cc.

References G4AdjointTrackingAction::GetPositionAtEndOfLastAdjointTrack(), and theAdjointTrackingAction.

+ Here is the call graph for this function:

const G4String & G4AdjointSimManager::GetPrimaryIonName ( )

Definition at line 557 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::GetPrimaryIonName(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

G4double G4AdjointSimManager::GetWeightAtEndOfLastAdjointTrack ( )

Definition at line 378 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 538 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 563 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 276 of file G4AdjointSimManager.cc.

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

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 261 of file G4AdjointSimManager.cc.

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

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 290 of file G4AdjointSimManager.cc.

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

+ Here is the call graph for this function:

void G4AdjointSimManager::RunAdjointSimulation ( G4int  nb_evt)

Definition at line 136 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 225 of file G4AdjointSimManager.cc.

References DefineUserActions(), fUserStackingAction, G4RunManager::GetRunManager(), G4RunManager::SetUserAction(), G4AdjointStackingAction::SetUserFwdStackingAction(), theAdjointEventAction, theAdjointPrimaryGeneratorAction, theAdjointStackingAction, theAdjointSteppingAction, theAdjointTrackingAction, use_user_StackingAction, 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 571 of file G4AdjointSimManager.cc.

References theAdjointEventAction.

Referenced by main().

+ Here is the caller graph for this function:

void G4AdjointSimManager::SetAdjointPrimaryRunAndStackingActions ( )
private

Definition at line 244 of file G4AdjointSimManager.cc.

References DefineUserActions(), fUserStackingAction, G4RunManager::GetRunManager(), G4RunManager::SetUserAction(), 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 590 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 526 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 520 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 583 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 577 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 315 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 481 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::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 551 of file G4AdjointSimManager.cc.

References G4AdjointPrimaryGeneratorAction::SetPrimaryIon(), and theAdjointPrimaryGeneratorAction.

+ Here is the call graph for this function:

void G4AdjointSimManager::SetRestOfAdjointActions ( )
private

Definition at line 187 of file G4AdjointSimManager.cc.

References DefineUserActions(), G4RunManager::GetRunManager(), G4RunManager::SetUserAction(), 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 203 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.

Member Data Documentation

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

Definition at line 280 of file G4AdjointSimManager.hh.

Referenced by GetAdjointTrackingMode(), and 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 231 of file G4AdjointSimManager.hh.

Referenced by GetInstance().

G4double G4AdjointSimManager::last_cos_th
private

Definition at line 288 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreeVector G4AdjointSimManager::last_direction
private

Definition at line 286 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_ekin
private

Definition at line 287 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_ekin_nuc
private

Definition at line 287 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::last_fwd_part_index
private
G4String G4AdjointSimManager::last_fwd_part_name
private

Definition at line 289 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::last_fwd_part_PDGEncoding
private

Definition at line 290 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4ThreeVector G4AdjointSimManager::last_pos
private

Definition at line 285 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4double G4AdjointSimManager::last_weight
private

Definition at line 292 of file G4AdjointSimManager.hh.

Referenced by RegisterAtEndOfAdjointTrack().

G4int G4AdjointSimManager::nb_evt_of_last_run
private

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

Referenced by RegisterAdjointPrimaryWeight().

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

Definition at line 256 of file G4AdjointSimManager.hh.

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

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

Definition at line 310 of file G4AdjointSimManager.hh.

Referenced by G4AdjointSimManager(), and RunAdjointSimulation().


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