ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/extended/parallel/MPI/source/include/G4MPIscorerMerger.hh>
Public Member Functions | |
G4MPIscorerMerger () | |
G4MPIscorerMerger (G4ScoringManager *mgr, G4int destination=G4MPImanager::kRANK_MASTER, G4int verbosity=0) | |
virtual | ~G4MPIscorerMerger () |
void | SetDestinationRank (G4int i) |
void | SetScoringManager (G4ScoringManager *mgr) |
void | SetVerbosity (G4int ver) |
void | Merge () |
Protected Member Functions | |
void | SetupOutputBuffer (char *buff, G4int size, G4int position) |
void | DestroyBuffer () |
void | Pack (const G4ScoringManager *) |
Pack all meshes into buffer. | |
void | UnPackAndMerge (const G4ScoringManager *) |
void | Pack (const G4VScoringMesh *) |
Pack a single mesh. | |
void | UnPackAndMerge (G4VScoringMesh *) |
void | Pack (const HitStatDoubleMap *) |
Pack a single score map. | |
HitStatDoubleMap * | UnPackHitStatDoubleMap (const G4String &detName, const G4String &colName) |
G4int | CalculatePackSize (const G4ScoringManager *) const |
G4int | CalculatePackSize (const G4VScoringMesh *) const |
G4int | CalculatePackSize (const HitStatDoubleMap *) const |
void | Send (const unsigned int destination) |
void | Receive (const unsigned int source) |
Private Attributes | |
char * | outputBuffer |
G4int | outputBufferSize |
G4int | outputBufferPosition |
long | bytesSent |
G4bool | ownsBuffer |
G4ScoringManager * | scoringManager |
unsigned int | commSize |
unsigned int | destinationRank |
MPI::Intracomm | comm |
G4int | verbose |
Definition at line 40 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 40 of file G4MPIscorerMerger.hh
G4MPIscorerMerger::G4MPIscorerMerger | ( | ) |
Definition at line 73 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 73 of file G4MPIscorerMerger.cc
G4MPIscorerMerger::G4MPIscorerMerger | ( | G4ScoringManager * | mgr, |
G4int | destination = G4MPImanager::kRANK_MASTER , |
||
G4int | verbosity = 0 |
||
) |
Definition at line 79 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 79 of file G4MPIscorerMerger.cc
|
virtual |
Definition at line 89 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 89 of file G4MPIscorerMerger.cc
References outputBuffer, and ownsBuffer.
|
protected |
Definition at line 475 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 475 of file G4MPIscorerMerger.cc
References DMSG, G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), and int().
Referenced by CalculatePackSize(), and Send().
|
protected |
Definition at line 494 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 494 of file G4MPIscorerMerger.cc
References CalculatePackSize(), DMSG, ele, G4VScoringMesh::GetScoreMap(), and int().
|
protected |
Definition at line 520 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 520 of file G4MPIscorerMerger.cc
References DMSG, G4VTHitsMap< T, Map_t >::GetSize(), and int().
|
inlineprotected |
Definition at line 62 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 62 of file G4MPIscorerMerger.hh
References outputBuffer, outputBufferPosition, outputBufferSize, and ownsBuffer.
Referenced by Merge().
void G4MPIscorerMerger::Merge | ( | ) |
Definition at line 123 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 123 of file G4MPIscorerMerger.cc
References bytesSent, comm, commSize, destinationRank, DestroyBuffer(), DMSG, G4cout, G4endl, G4MPImanager::GetActiveSize(), G4MPImanager::GetComm(), G4MPImanager::GetManager(), G4MPImanager::GetRank(), G4mpi::Merge(), Receive(), Send(), G4INCL::CrossSections::total(), and verbose.
Referenced by RunActionMaster::EndOfRunAction().
|
protected |
Pack all meshes into buffer.
Definition at line 259 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 259 of file G4MPIscorerMerger.cc
References comm, DMSG, FatalException, G4Exception(), G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), MPI_Pack(), outputBuffer, outputBufferPosition, and outputBufferSize.
Referenced by Pack(), and Send().
|
protected |
Pack a single mesh.
Definition at line 320 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 320 of file G4MPIscorerMerger.cc
References comm, field_utils::copy(), DMSG, ele, G4VScoringMesh::GetScoreMap(), MPI_Pack(), G4InuclParticleNames::nn, outputBuffer, outputBufferPosition, outputBufferSize, and Pack().
|
protected |
Pack a single score map.
Definition at line 408 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 408 of file G4MPIscorerMerger.cc
References comm, DMSG, e, G4VTHitsMap< T, Map_t >::GetMap(), G4VTHitsMap< T, Map_t >::GetSize(), G4FFGEnumerations::INT, MPI_Pack(), outputBuffer, outputBufferPosition, outputBufferSize, Acts::Test::transform, and verbose.
Definition at line 205 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 205 of file G4MPIscorerMerger.cc
References comm, DMSG, G4MPImanager::kTAG_CMDSCR, outputBuffer, outputBufferSize, ownsBuffer, scoringManager, SetupOutputBuffer(), Status(), and UnPackAndMerge().
Referenced by Merge().
Definition at line 233 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 233 of file G4MPIscorerMerger.cc
References bytesSent, CalculatePackSize(), comm, DMSG, G4MPImanager::kTAG_CMDSCR, outputBuffer, outputBufferPosition, outputBufferSize, ownsBuffer, Pack(), scoringManager, and SetupOutputBuffer().
Referenced by Merge().
Definition at line 49 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 49 of file G4MPIscorerMerger.hh
References destinationRank.
|
inline |
Definition at line 50 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 50 of file G4MPIscorerMerger.hh
References scoringManager.
|
inlineprotected |
Definition at line 57 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 57 of file G4MPIscorerMerger.hh
References outputBuffer, outputBufferPosition, outputBufferSize, and position.
Referenced by Receive(), and Send().
Definition at line 51 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 51 of file G4MPIscorerMerger.hh
References verbose.
Referenced by RunActionMaster::EndOfRunAction().
|
protected |
Definition at line 282 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 282 of file G4MPIscorerMerger.cc
References comm, FatalException, G4Exception(), G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), MPI_Unpack(), outputBuffer, outputBufferPosition, and outputBufferSize.
Referenced by Receive().
|
protected |
Definition at line 351 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 351 of file G4MPIscorerMerger.cc
References G4VScoringMesh::Accumulate(), comm, DMSG, G4VScoringMesh::GetWorldName(), MPI_Unpack(), outputBuffer, outputBufferPosition, outputBufferSize, and UnPackHitStatDoubleMap().
|
protected |
Definition at line 451 of file G4MPIscorerMerger.cc.
View newest version in sPHENIX GitHub at line 451 of file G4MPIscorerMerger.cc
References comm, DMSG, G4FFGEnumerations::INT, MPI_Unpack(), outputBuffer, outputBufferPosition, outputBufferSize, G4VTHitsMap< T, Map_t >::set(), and verbose.
Referenced by UnPackAndMerge().
|
private |
Definition at line 98 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 98 of file G4MPIscorerMerger.hh
|
private |
Definition at line 103 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 103 of file G4MPIscorerMerger.hh
Referenced by Merge(), Pack(), Receive(), Send(), UnPackAndMerge(), and UnPackHitStatDoubleMap().
|
private |
Definition at line 101 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 101 of file G4MPIscorerMerger.hh
Referenced by Merge().
|
private |
Definition at line 102 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 102 of file G4MPIscorerMerger.hh
Referenced by Merge(), and SetDestinationRank().
|
private |
Definition at line 95 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 95 of file G4MPIscorerMerger.hh
Referenced by DestroyBuffer(), Pack(), Receive(), Send(), SetupOutputBuffer(), UnPackAndMerge(), UnPackHitStatDoubleMap(), and ~G4MPIscorerMerger().
|
private |
Definition at line 97 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 97 of file G4MPIscorerMerger.hh
Referenced by DestroyBuffer(), Pack(), Send(), SetupOutputBuffer(), UnPackAndMerge(), and UnPackHitStatDoubleMap().
|
private |
Definition at line 96 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 96 of file G4MPIscorerMerger.hh
Referenced by DestroyBuffer(), Pack(), Receive(), Send(), SetupOutputBuffer(), UnPackAndMerge(), and UnPackHitStatDoubleMap().
|
private |
Definition at line 99 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 99 of file G4MPIscorerMerger.hh
Referenced by DestroyBuffer(), Receive(), Send(), and ~G4MPIscorerMerger().
|
private |
Definition at line 100 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 100 of file G4MPIscorerMerger.hh
Referenced by Receive(), Send(), and SetScoringManager().
|
private |
Definition at line 104 of file G4MPIscorerMerger.hh.
View newest version in sPHENIX GitHub at line 104 of file G4MPIscorerMerger.hh
Referenced by Merge(), Pack(), SetVerbosity(), and UnPackHitStatDoubleMap().