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

#include <geant4/tree/geant4-10.6-release/examples/extended/parallel/MPI/source/include/G4MPIsession.hh>

+ Inheritance diagram for G4MPIsession:
+ Collaboration diagram for G4MPIsession:

Public Member Functions

 G4MPIsession (G4VUIshell *ashell=0)
 
 ~G4MPIsession ()
 
void SetPrompt (const G4String &prompt)
 
void SetShell (G4VUIshell *ashell)
 
virtual G4UIsessionSessionStart ()
 
- Public Member Functions inherited from G4VMPIsession
 G4VMPIsession ()
 
 ~G4VMPIsession ()
 
virtual void PauseSessionStart (const G4String &msg)
 
virtual G4int ReceiveG4cout (const G4String &coutString)
 
virtual G4int ReceiveG4cerr (const G4String &cerrString)
 
- Public Member Functions inherited from G4VBasicShell
 G4VBasicShell ()
 
virtual ~G4VBasicShell ()
 
- Public Member Functions inherited from G4UIsession
 G4UIsession ()
 
 G4UIsession (G4int iBatch)
 
virtual ~G4UIsession ()
 
G4int GetLastReturnCode () const
 
- Public Member Functions inherited from G4coutDestination
 G4coutDestination ()=default
 
virtual ~G4coutDestination ()
 
void AddCoutTransformer (const Transformer &t)
 
void AddCoutTransformer (Transformer &&t)
 
void AddCerrTransformer (const Transformer &t)
 
void AddCerrTransformer (Transformer &&t)
 
virtual void ResetTransformers ()
 
G4int ReceiveG4cout_ (const G4String &msg)
 
G4int ReceiveG4cerr_ (const G4String &msg)
 

Private Member Functions

G4String GetCommand (const char *msg=0)
 
G4bool TryForcedTerminate ()
 

Private Attributes

G4VUIshellshell_
 

Additional Inherited Members

- Public Types inherited from G4coutDestination
using Transformer = std::function< G4bool(G4String &)>
 
- Static Public Member Functions inherited from G4UIsession
static G4int InSession ()
 
- Protected Member Functions inherited from G4VMPIsession
G4int ExecCommand (const G4String &acommand)
 
G4String TruncateCommand (const G4String &command) const
 
G4String BypassCommand (const G4String &command) const
 
virtual G4bool GetHelpChoice (G4int &aval)
 
virtual void ExitHelp () const
 
- Protected Attributes inherited from G4VMPIsession
G4MPImanagerg4mpi_
 
G4bool is_master_
 
G4bool is_slave_
 
G4int rank_
 
- Static Protected Attributes inherited from G4UIsession
static G4ICOMS_DLL G4int inSession = 0
 

Detailed Description

Definition at line 33 of file G4MPIsession.hh.

View newest version in sPHENIX GitHub at line 33 of file G4MPIsession.hh

Constructor & Destructor Documentation

G4MPIsession::G4MPIsession ( G4VUIshell ashell = 0)

Definition at line 52 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 52 of file G4MPIsession.cc

References G4VMPIsession::g4mpi_, G4VMPIsession::is_master_, shell_, and tcsh_build.

G4MPIsession::~G4MPIsession ( )

Definition at line 72 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 72 of file G4MPIsession.cc

References G4UImanager::GetUIpointer(), and shell_.

+ Here is the call graph for this function:

Member Function Documentation

G4String G4MPIsession::GetCommand ( const char *  msg = 0)
private

Definition at line 95 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 95 of file G4MPIsession.cc

References G4VBasicShell::ChangeDirectoryCommand(), G4cerr, G4cout, G4endl, G4VBasicShell::GetCurrentWorkingDirectory(), G4String::leading, G4VBasicShell::ListDirectory(), G4VBasicShell::ModifyToFullPathCommand(), G4String::remove(), shell_, G4VBasicShell::ShowCurrent(), G4String::strip(), G4VBasicShell::TerminalHelp(), and G4VMPIsession::TruncateCommand().

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UIsession * G4MPIsession::SessionStart ( )
virtual

Implements G4VBasicShell.

Definition at line 178 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 178 of file G4MPIsession.cc

References G4VMPIsession::ExecCommand(), G4VMPIsession::g4mpi_, GetCommand(), G4MPImanager::GetInitFileName(), G4MPImanager::GetMacroFileName(), G4VMPIsession::is_master_, and TryForcedTerminate().

+ Here is the call graph for this function:

void G4MPIsession::SetPrompt ( const G4String prompt)

Definition at line 82 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 82 of file G4MPIsession.cc

References shell_.

void G4MPIsession::SetShell ( G4VUIshell ashell)

Definition at line 88 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 88 of file G4MPIsession.cc

References shell_.

G4bool G4MPIsession::TryForcedTerminate ( )
private

Definition at line 210 of file G4MPIsession.cc.

View newest version in sPHENIX GitHub at line 210 of file G4MPIsession.cc

References c, G4cin, G4cout, G4endl, G4VMPIsession::g4mpi_, G4RunManager::GetRunManager(), and G4VMPIsession::is_master_.

Referenced by SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4VUIshell* G4MPIsession::shell_
private

Definition at line 44 of file G4MPIsession.hh.

View newest version in sPHENIX GitHub at line 44 of file G4MPIsession.hh

Referenced by G4MPIsession(), GetCommand(), SetPrompt(), SetShell(), and ~G4MPIsession().


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