|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
#include "GeantUtils.hh"#include <G4ParticleDefinition.hh>#include <G4RunManager.hh>#include <G4Threading.hh>#include <G4Version.hh>#include <G4MTRunManager.hh>#include "corecel/Assert.hh"#include "corecel/io/Logger.hh"Functions | |
| void | celeritas::disable_geant_signal_handler () |
| Clear Geant4's signal handlers that get installed on startup/activation. | |
| int | celeritas::get_geant_num_threads (G4RunManager const &runman) |
| Get the number of threads in a version-portable way. | |
| int | celeritas::get_geant_num_threads () |
| Get the number of threads from the global run manager. | |
| int | celeritas::get_geant_thread_id () |
| Get the Geant4 thread ID. | |
| std::ostream & | celeritas::operator<< (std::ostream &os, StreamablePD const &ppd) |
| Print a particle definition name and PDG. | |
|
inline |
Clear Geant4's signal handlers that get installed on startup/activation.
This should be called before instantiating a run manager.
|
inline |
Get the number of threads in a version-portable way.
G4RunManager::GetNumberOfThreads isn't virtual before Geant4 v10.7.0 so we need to explicitly dynamic cast to G4MTRunManager to get the number of threads.
In tasking mode, the result may be zero!