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

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

+ Collaboration diagram for G4MPIstatus:

Public Types

enum  { kNSIZE = 10 }
 

Public Member Functions

 G4MPIstatus ()
 
 ~G4MPIstatus ()
 
void SetStatus (G4int arank, G4int runid, G4int noe, G4int evtid, G4ApplicationState state)
 
G4int GetRank () const
 
G4int GetRunID () const
 
G4int GetNEventToBeProcessed () const
 
G4int GetEventID () const
 
G4double GetCPUTime () const
 
G4ApplicationState GetG4State () const
 
G4int SizeOf () const
 
void Pack (G4int *data) const
 
void UnPack (G4int *data)
 
void StartTimer ()
 
void StopTimer ()
 
void Print () const
 

Private Member Functions

G4String GetStateString (G4ApplicationState astate) const
 

Private Attributes

G4int rank_
 
G4int run_id_
 
G4int nevent_to_be_processed_
 
G4int event_id_
 
G4double cputime_
 
G4ApplicationState g4state_
 
G4Timertimer_
 

Detailed Description

Definition at line 37 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 37 of file G4MPIstatus.hh

Member Enumeration Documentation

anonymous enum
Enumerator:
kNSIZE 

Definition at line 64 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 64 of file G4MPIstatus.hh

Constructor & Destructor Documentation

G4MPIstatus::G4MPIstatus ( )

Definition at line 32 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 32 of file G4MPIstatus.cc

References timer_.

G4MPIstatus::~G4MPIstatus ( )

Definition at line 40 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 40 of file G4MPIstatus.cc

References timer_.

Member Function Documentation

G4double G4MPIstatus::GetCPUTime ( ) const
inline

Definition at line 104 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 104 of file G4MPIstatus.hh

References cputime_.

G4int G4MPIstatus::GetEventID ( ) const
inline

Definition at line 99 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 99 of file G4MPIstatus.hh

References event_id_.

G4ApplicationState G4MPIstatus::GetG4State ( ) const
inline

Definition at line 109 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 109 of file G4MPIstatus.hh

References g4state_.

G4int G4MPIstatus::GetNEventToBeProcessed ( ) const
inline

Definition at line 94 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 94 of file G4MPIstatus.hh

References nevent_to_be_processed_.

G4int G4MPIstatus::GetRank ( ) const
inline

Definition at line 84 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 84 of file G4MPIstatus.hh

References rank_.

G4int G4MPIstatus::GetRunID ( ) const
inline

Definition at line 89 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 89 of file G4MPIstatus.hh

References run_id_.

G4String G4MPIstatus::GetStateString ( G4ApplicationState  astate) const
private

Definition at line 109 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 109 of file G4MPIstatus.cc

References G4State_Abort, G4State_EventProc, G4State_GeomClosed, G4State_Idle, G4State_Init, G4State_PreInit, and G4State_Quit.

Referenced by Print().

+ Here is the caller graph for this function:

void G4MPIstatus::Pack ( G4int data) const

Definition at line 71 of file G4MPIstatus.cc.

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

References cputime_, event_id_, g4state_, nevent_to_be_processed_, rank_, and run_id_.

void G4MPIstatus::Print ( void  ) const

Definition at line 97 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 97 of file G4MPIstatus.cc

References cputime_, event_id_, G4cout, G4endl, g4state_, GetStateString(), nevent_to_be_processed_, rank_, and run_id_.

+ Here is the call graph for this function:

void G4MPIstatus::SetStatus ( G4int  arank,
G4int  runid,
G4int  noe,
G4int  evtid,
G4ApplicationState  state 
)

Definition at line 58 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 58 of file G4MPIstatus.cc

References cputime_, event_id_, g4state_, nevent_to_be_processed_, rank_, run_id_, and timer_.

G4int G4MPIstatus::SizeOf ( ) const
inline

Definition at line 79 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 79 of file G4MPIstatus.hh

References kNSIZE.

void G4MPIstatus::StartTimer ( )

Definition at line 46 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 46 of file G4MPIstatus.cc

References timer_.

void G4MPIstatus::StopTimer ( )

Definition at line 52 of file G4MPIstatus.cc.

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

References timer_.

void G4MPIstatus::UnPack ( G4int data)

Definition at line 84 of file G4MPIstatus.cc.

View newest version in sPHENIX GitHub at line 84 of file G4MPIstatus.cc

References cputime_, event_id_, g4state_, nevent_to_be_processed_, rank_, and run_id_.

Member Data Documentation

G4double G4MPIstatus::cputime_
private

Definition at line 71 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 71 of file G4MPIstatus.hh

Referenced by GetCPUTime(), Pack(), Print(), SetStatus(), and UnPack().

G4int G4MPIstatus::event_id_
private

Definition at line 70 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 70 of file G4MPIstatus.hh

Referenced by GetEventID(), Pack(), Print(), SetStatus(), and UnPack().

G4ApplicationState G4MPIstatus::g4state_
private

Definition at line 72 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 72 of file G4MPIstatus.hh

Referenced by GetG4State(), Pack(), Print(), SetStatus(), and UnPack().

G4int G4MPIstatus::nevent_to_be_processed_
private

Definition at line 69 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 69 of file G4MPIstatus.hh

Referenced by GetNEventToBeProcessed(), Pack(), Print(), SetStatus(), and UnPack().

G4int G4MPIstatus::rank_
private

Definition at line 67 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 67 of file G4MPIstatus.hh

Referenced by GetRank(), Pack(), Print(), SetStatus(), and UnPack().

G4int G4MPIstatus::run_id_
private

Definition at line 68 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 68 of file G4MPIstatus.hh

Referenced by GetRunID(), Pack(), Print(), SetStatus(), and UnPack().

G4Timer* G4MPIstatus::timer_
private

Definition at line 73 of file G4MPIstatus.hh.

View newest version in sPHENIX GitHub at line 73 of file G4MPIstatus.hh

Referenced by G4MPIstatus(), SetStatus(), StartTimer(), StopTimer(), and ~G4MPIstatus().


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