LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Main of the ThreadsafeScorers example. More...
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "Randomize.hh"
#include "TSDetectorConstruction.hh"
#include "TSPhysicsList.hh"
#include "TSActionInitialization.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "G4TiMemory.hh"
#include <cstdlib>
Go to the source code of this file.
Typedefs | |
typedef G4RunManager | RunManager |
Functions | |
void | message (RunManager *runmanager) |
int | main (int argc, char **argv) |
Main of the ThreadsafeScorers example.
Definition in file ts_scorers.cc.
typedef G4RunManager RunManager |
ts_scorers example shows how to use global scorers. The benefit of using global scorers in memory-savings for problems with very large amounts of scoring volumes. Additionally, the global scorers are more precise w.r.t. the serial solution because of the lack of compounding round-off error from multiple threads
In this example, the global scorers are implemented as static member variables in TSRun because TSRun is thread-local. The G4atomic class is the core of the thread-safe scorers and can be uses
Definition at line 54 of file ts_scorers.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
void message | ( | RunManager * | runmanager | ) |
Definition at line 74 of file ts_scorers.cc.
Referenced by pyG4Exception::f2_G4Exception(), art::Tracer::log_with_indent(), main(), PyG4ExceptionHandler::Notify(), art::detail::ExceptionCollector::rethrow(), G4ZMQServer::SessionStart(), and util::flags::errors::Exception::what().