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

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

+ Inheritance diagram for G4VMPIsession:
+ Collaboration diagram for G4VMPIsession:

Public Member Functions

 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 ()
 
virtual G4UIsessionSessionStart ()=0
 
- 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)
 

Protected Member Functions

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 Member Functions inherited from G4VBasicShell
G4String ModifyToFullPathCommand (const char *aCommandLine) const
 
G4String GetCurrentWorkingDirectory () const
 
G4bool ChangeDirectory (const char *newDir)
 
G4UIcommandTreeFindDirectory (const char *dirName) const
 
G4UIcommandFindCommand (const char *commandName) const
 
G4String Complete (const G4String &)
 
G4String FindMatchingPath (G4UIcommandTree *, const G4String &)
 
virtual void ExecuteCommand (const G4String &)
 
void ApplyShellCommand (const G4String &, G4bool &, G4bool &)
 
void ShowCurrent (const G4String &) const
 
void ChangeDirectoryCommand (const G4String &)
 
void ListDirectory (const G4String &) const
 
void TerminalHelp (const G4String &)
 

Protected Attributes

G4MPImanagerg4mpi_
 
G4bool is_master_
 
G4bool is_slave_
 
G4int rank_
 

Additional Inherited Members

- Public Types inherited from G4coutDestination
using Transformer = std::function< G4bool(G4String &)>
 
- Static Public Member Functions inherited from G4UIsession
static G4int InSession ()
 
- Static Protected Attributes inherited from G4UIsession
static G4ICOMS_DLL G4int inSession = 0
 

Detailed Description

Definition at line 38 of file G4VMPIsession.hh.

View newest version in sPHENIX GitHub at line 38 of file G4VMPIsession.hh

Constructor & Destructor Documentation

G4VMPIsession::G4VMPIsession ( )

Definition at line 35 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 35 of file G4VMPIsession.cc

References g4mpi_, G4MPImanager::GetManager(), is_master_, is_slave_, and rank_.

+ Here is the call graph for this function:

G4VMPIsession::~G4VMPIsession ( )

Definition at line 47 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 47 of file G4VMPIsession.cc

Member Function Documentation

G4String G4VMPIsession::BypassCommand ( const G4String command) const
protected

Definition at line 173 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 173 of file G4VMPIsession.cc

References G4cout, G4endl, g4mpi_, incremental_prev_tag::idx, is_master_, and G4String::replace().

Referenced by ExecCommand(), and G4MPIbatch::ReadCommand().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4VMPIsession::ExecCommand ( const G4String acommand)
protected

Definition at line 76 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 76 of file G4VMPIsession.cc

References BypassCommand(), fAliasNotFound, fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4VBasicShell::FindCommand(), fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4cerr, G4cout, G4endl, g4mpi_, G4UIcommand::GetParameter(), G4UImanager::GetUIpointer(), and is_master_.

Referenced by G4MPIbatch::SessionStart(), and G4MPIsession::SessionStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VMPIsession::ExitHelp ( ) const
protectedvirtual

Implements G4VBasicShell.

Definition at line 64 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 64 of file G4VMPIsession.cc

References G4cin.

G4bool G4VMPIsession::GetHelpChoice ( G4int aval)
protectedvirtual

Implements G4VBasicShell.

Definition at line 52 of file G4VMPIsession.cc.

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

References G4cin.

void G4VMPIsession::PauseSessionStart ( const G4String msg)
virtual

Implements G4VBasicShell.

Definition at line 71 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 71 of file G4VMPIsession.cc

G4int G4VMPIsession::ReceiveG4cerr ( const G4String cerrString)
virtual

Reimplemented from G4UIsession.

Definition at line 264 of file G4VMPIsession.cc.

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

References g4mpi_, and pyG4Element::Print().

+ Here is the call graph for this function:

G4int G4VMPIsession::ReceiveG4cout ( const G4String coutString)
virtual

Reimplemented from G4UIsession.

Definition at line 257 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 257 of file G4VMPIsession.cc

References g4mpi_, and pyG4Element::Print().

+ Here is the call graph for this function:

G4String G4VMPIsession::TruncateCommand ( const G4String command) const
protected

Definition at line 148 of file G4VMPIsession.cc.

View newest version in sPHENIX GitHub at line 148 of file G4VMPIsession.cc

References incremental_prev_tag::idx.

Referenced by G4MPIsession::GetCommand().

+ Here is the caller graph for this function:

Member Data Documentation

G4bool G4VMPIsession::is_master_
protected
G4bool G4VMPIsession::is_slave_
protected

Definition at line 53 of file G4VMPIsession.hh.

View newest version in sPHENIX GitHub at line 53 of file G4VMPIsession.hh

Referenced by G4VMPIsession().

G4int G4VMPIsession::rank_
protected

Definition at line 54 of file G4VMPIsession.hh.

View newest version in sPHENIX GitHub at line 54 of file G4VMPIsession.hh

Referenced by G4VMPIsession().


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