|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4VoxelisationHelper is a helper class to undertake voxelisation in parallel, aiding and off-loading the work of G4GeometryManager. More...
#include <G4VoxelisationHelper.hh>
Public Member Functions | |
| G4VoxelisationHelper () | |
| ~G4VoxelisationHelper () | |
| void | PrepareParallelOptimisation (G4bool allOpts, G4bool verbose) |
| void | UndertakeOptimisation () |
| void | ReportVoxelInfo (G4LogicalVolume *logVolume, std::ostream &os) |
| void | SetVerbosity (G4bool verbose) |
| G4bool | IsParallelOptimisationFinished () |
| G4int | CheckOptimisation () |
Static Public Member Functions | |
| static void | ReportVoxelStats (std::vector< G4SmartVoxelStat > &stats, G4double totalCpuTime, std::ostream &os=G4cout) |
G4VoxelisationHelper is a helper class to undertake voxelisation in parallel, aiding and off-loading the work of G4GeometryManager.
Definition at line 59 of file G4VoxelisationHelper.hh.
| G4VoxelisationHelper::G4VoxelisationHelper | ( | ) |
Constructor & Destructor.
Definition at line 42 of file G4VoxelisationHelper.cc.
| G4VoxelisationHelper::~G4VoxelisationHelper | ( | ) |
Definition at line 49 of file G4VoxelisationHelper.cc.
| G4int G4VoxelisationHelper::CheckOptimisation | ( | ) |
Check that volumes marked to optimise are done, and report number of those that are missing voxel header.
Definition at line 632 of file G4VoxelisationHelper.cc.
Referenced by UndertakeOptimisation().
| G4bool G4VoxelisationHelper::IsParallelOptimisationFinished | ( | ) |
Returns true if all workers are finished (or all work is done).
Definition at line 622 of file G4VoxelisationHelper.cc.
Referenced by UndertakeOptimisation().
Key method that creates a list of volumes and resets the state to prepare for the parallel optimisation.
Definition at line 154 of file G4VoxelisationHelper.cc.
| void G4VoxelisationHelper::ReportVoxelInfo | ( | G4LogicalVolume * | logVolume, |
| std::ostream & | os ) |
Definition at line 490 of file G4VoxelisationHelper.cc.
|
static |
Methods to report statistics on the voxelisation process.
Definition at line 513 of file G4VoxelisationHelper.cc.
Referenced by UndertakeOptimisation().
|
inline |
Sets verbosity mode.
Definition at line 95 of file G4VoxelisationHelper.hh.
| void G4VoxelisationHelper::UndertakeOptimisation | ( | ) |
Contributes to voxel optimisation until all work is done. To be called by a worker thread initialisation, not by the user.
Definition at line 195 of file G4VoxelisationHelper.cc.