Geant4  10.01.p03
G4MPIScorerMerger Class Reference

#include <G4MPIScorerMerger.hh>

+ Collaboration diagram for G4MPIScorerMerger:

Classes

struct  convMap_t
 

Public Member Functions

 G4MPIScorerMerger (G4ScoringManager *mgr, G4int destination=G4MPImanager::kRANK_MASTER, G4int verbosity=0)
 
virtual ~G4MPIScorerMerger ()
 
void SetDestinationRank (G4int i)
 
G4int GetDestinationRank () const
 
void SetScoringManager (G4ScoringManager *mgr)
 
G4ScoringManagerGetScoringManager () const
 
G4int GetCommSize () const
 
virtual void Merge ()
 
void SetVerbosity (G4int ver)
 
G4int GetVerbosity () const
 

Protected Member Functions

virtual convMap_tconvertMap (const G4String &mapName, G4THitsMap< double > *map) const
 
virtual void convertMesh (const G4VScoringMesh *mesh)
 
void clear ()
 
virtual void SendOneMesh ()
 
virtual void ReceiveOneMesh ()
 
virtual void MergeOneMesh ()
 

Protected Attributes

std::vector< convMap_t * > convertedMesh
 
G4int meshID
 
G4ScoringManagerscoringManager
 
G4int commSize
 
G4int destinationRank
 
MPI::Intracomm COMM_G4COMMAND_
 
G4int verbose
 

Friends

std::ostream & operator<< (std::ostream &os, const convMap_t &cnv)
 

Detailed Description

Definition at line 33 of file G4MPIScorerMerger.hh.

Constructor & Destructor Documentation

G4MPIScorerMerger::G4MPIScorerMerger ( G4ScoringManager mgr,
G4int  destination = G4MPImanager::kRANK_MASTER,
G4int  verbosity = 0 
)

Definition at line 30 of file G4MPIScorerMerger.cc.

virtual G4MPIScorerMerger::~G4MPIScorerMerger ( )
inlinevirtual

Definition at line 38 of file G4MPIScorerMerger.hh.

References clear().

+ Here is the call graph for this function:

Member Function Documentation

void G4MPIScorerMerger::clear ( void  )
protected

Definition at line 111 of file G4MPIScorerMerger.cc.

References convertedMesh.

Referenced by convertMesh(), ReceiveOneMesh(), and ~G4MPIScorerMerger().

+ Here is the caller graph for this function:

G4MPIScorerMerger::convMap_t * G4MPIScorerMerger::convertMap ( const G4String mapName,
G4THitsMap< double > *  map 
) const
protectedvirtual

Definition at line 71 of file G4MPIScorerMerger.cc.

References DMSG, G4THitsMap< T >::GetMap(), G4THitsMap< T >::GetSize(), G4MPIScorerMerger::convMap_t::indexes, mm, G4MPIScorerMerger::convMap_t::name, G4MPIScorerMerger::convMap_t::numElems, and G4MPIScorerMerger::convMap_t::values.

Referenced by convertMesh().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MPIScorerMerger::convertMesh ( const G4VScoringMesh mesh)
protectedvirtual

Definition at line 96 of file G4MPIScorerMerger.cc.

References clear(), convertedMesh, convertMap(), DMSG, and G4VScoringMesh::GetScoreMap().

Referenced by SendOneMesh().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4MPIScorerMerger::GetCommSize ( ) const
inline

Definition at line 43 of file G4MPIScorerMerger.hh.

References commSize.

G4int G4MPIScorerMerger::GetDestinationRank ( ) const
inline

Definition at line 40 of file G4MPIScorerMerger.hh.

References destinationRank.

G4ScoringManager* G4MPIScorerMerger::GetScoringManager ( ) const
inline

Definition at line 42 of file G4MPIScorerMerger.hh.

References scoringManager.

G4int G4MPIScorerMerger::GetVerbosity ( ) const
inline

Definition at line 46 of file G4MPIScorerMerger.hh.

References verbose.

void G4MPIScorerMerger::Merge ( )
virtual

Definition at line 125 of file G4MPIScorerMerger.cc.

References COMM_G4COMMAND_, commSize, destinationRank, DMSG, G4ScoringManager::GetNumberOfMesh(), meshID, ReceiveOneMesh(), scoringManager, and SendOneMesh().

+ Here is the call graph for this function:

void G4MPIScorerMerger::MergeOneMesh ( )
protectedvirtual

Definition at line 211 of file G4MPIScorerMerger.cc.

References G4VScoringMesh::Accumulate(), convertedMesh, DMSG, FatalException, G4Exception(), G4ScoringManager::GetMesh(), G4VScoringMesh::GetScoreMap(), G4VScoringMesh::GetWorldName(), G4INCL::PhysicalConstants::hc, G4MPIScorerMerger::convMap_t::indexes, meshID, G4MPIScorerMerger::convMap_t::name, G4MPIScorerMerger::convMap_t::numElems, scoringManager, and G4MPIScorerMerger::convMap_t::values.

Referenced by ReceiveOneMesh().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MPIScorerMerger::ReceiveOneMesh ( )
protectedvirtual

Definition at line 173 of file G4MPIScorerMerger.cc.

References clear(), COMM_G4COMMAND_, commSize, convertedMesh, destinationRank, DMSG, G4FFGEnumerations::DOUBLE, G4MPIScorerMerger::convMap_t::indexes, G4FFGEnumerations::INT, G4MPImanager::kTAG_DATA, MergeOneMesh(), meshID, G4MPIScorerMerger::convMap_t::name, G4MPIScorerMerger::convMap_t::numElems, Status(), and G4MPIScorerMerger::convMap_t::values.

Referenced by Merge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MPIScorerMerger::SendOneMesh ( )
protectedvirtual

Definition at line 146 of file G4MPIScorerMerger.cc.

References COMM_G4COMMAND_, convertedMesh, convertMesh(), destinationRank, DMSG, G4FFGEnumerations::DOUBLE, G4ScoringManager::GetMesh(), G4MPIScorerMerger::convMap_t::indexes, G4FFGEnumerations::INT, G4MPImanager::kTAG_DATA, meshID, G4MPIScorerMerger::convMap_t::name, G4MPIScorerMerger::convMap_t::numElems, scoringManager, and G4MPIScorerMerger::convMap_t::values.

Referenced by Merge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4MPIScorerMerger::SetDestinationRank ( G4int  i)
inline

Definition at line 39 of file G4MPIScorerMerger.hh.

References destinationRank.

void G4MPIScorerMerger::SetScoringManager ( G4ScoringManager mgr)
inline

Definition at line 41 of file G4MPIScorerMerger.hh.

References scoringManager.

void G4MPIScorerMerger::SetVerbosity ( G4int  ver)
inline

Definition at line 45 of file G4MPIScorerMerger.hh.

References verbose.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const convMap_t cnv 
)
friend

Definition at line 38 of file G4MPIScorerMerger.cc.

Member Data Documentation

MPI::Intracomm G4MPIScorerMerger::COMM_G4COMMAND_
protected

Definition at line 67 of file G4MPIScorerMerger.hh.

Referenced by Merge(), ReceiveOneMesh(), and SendOneMesh().

G4int G4MPIScorerMerger::commSize
protected

Definition at line 65 of file G4MPIScorerMerger.hh.

Referenced by GetCommSize(), Merge(), and ReceiveOneMesh().

std::vector<convMap_t*> G4MPIScorerMerger::convertedMesh
protected

Definition at line 61 of file G4MPIScorerMerger.hh.

Referenced by clear(), convertMesh(), MergeOneMesh(), ReceiveOneMesh(), and SendOneMesh().

G4int G4MPIScorerMerger::destinationRank
protected
G4int G4MPIScorerMerger::meshID
protected

Definition at line 62 of file G4MPIScorerMerger.hh.

Referenced by Merge(), MergeOneMesh(), ReceiveOneMesh(), and SendOneMesh().

G4ScoringManager* G4MPIScorerMerger::scoringManager
protected
G4int G4MPIScorerMerger::verbose
protected

Definition at line 68 of file G4MPIScorerMerger.hh.

Referenced by GetVerbosity(), and SetVerbosity().


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